ICSE class ix computer practice test 4
ICSE Class 9 computer practice test 4: ICSE Class 9 Computer Applications practice test with important questions to revise before the computer exam.
ICSE class ix computer practice test
Oops concepts
- Write a program to ask the user to enter any number from 1-7, print day of the week based on the input [HINT: If the number is 1 then print Sunday if it is 2 then print Monday… etc] (Use switch-case only)
- Write a program to accept a number given by the user and check and print if the number is odd or even
- Write a program to accept a number from the user and print whether the number is prime or not. (A prime number is a number that has only two factors 1 and the number itself)
- Write a program to print the sum of the following series. Sum= 2^2+4^2+6^2+……..+n^2
- Solve the following patterns
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
& &&&&
&&&&
&&&
&&
&
Watch Java videos
Related Posts
Continue learning with these related articles
Sum of First n Natural Numbers in Java (Loop and Formula)
Find the sum of the first n natural numbers in Java with a for loop, a while loop and the formula n(n + 1)/2, with a dry run and the sums of even numbers, odd numbers, squares and cubes.
Prime Number Program in Java: Check a Number and Print Primes in a Range
Check whether a number is prime in Java by counting its factors, a faster square-root method with isPrime(), and a program that prints all prime numbers in a range.

Encapsulation, Access Specifiers and Scope of Variables in Java for ICSE Class 10
ICSE Class 10 Computer Applications notes on encapsulation: private, default, protected and public access, data hiding with getter and setter methods, instance vs static (class) variables, local variables and scope, with a solved BankAccount program.