ICSE practical sample paper
Design a menu driven program, that accepts an integer and displays the following menu :
Design a menu driven program, that accepts an integer and displays the following menu :
- displays the reverse of the number
- displays whether the number is a prime number or not
- exit
Example 1:
INPUT
Enter number
1
Enter the number to reverse
125
OUTPUT:
521
Example 2:
INPUT
Enter number
2
Enter the number to check for prime number
13
OUTPUT:
It is a prime number
- Write a program to make these patterns
<tbody>
*
* *
* * *
* * * *
* * * * *
12345
1234
123
12
1
</tbody>
- Design a program to create an array of integers, size should be entered by the user(between 5 to 20). And sort the array in ascending order. with any sorting technique [Bubble sort or selection sort]
Example 1:
INPUT
Enter number between 5 to 20
5
Enter numbers
23, 4, 58,32, 100
OUTPUT:
Array before sorting
23, 4, 58, 32, 100
Array after sorting
4,23,32,58,100
Example 2:
INPUT
Enter number between 5 to 20
32
OUTPUT:
Invalid Input.
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.