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

String Methods in Java for ICSE Class 10: 25 Output Questions with Answers
ICSE Class 10 Computer Applications practice on String class methods: length, charAt, indexOf, lastIndexOf, substring, replace, trim, compareTo, equals and more, with 25 board-style output questions and step-by-step answers.

Special Number Programs in Java for ICSE: Armstrong, Spy, Neon, Disarium, Pronic and More
Every special number asked in ICSE Computer Applications – prime, perfect, Armstrong, palindrome, automorphic, neon, spy, Niven, duck, buzz, Disarium, special and pronic numbers – with definitions, examples and one complete Java program that checks them all.

Math Library Methods in Java for ICSE Class 9 (with Outputs)
ICSE Class 9 Computer Applications notes on the Java Math class: sqrt, cbrt, pow, abs, max, min, ceil, floor, round, rint and random, with return types, tricky negative-number outputs and Java expressions for formulas.