ICSE Computer Mock 2
ICSE Computer Mock 2
= 100 Marks
1. Choose the correct answer and write the correct option ( 1 x 20 = 20)
2. [2]
[2]
[2]
[2]
[2]
[2]
(vii) [2]
(viii) [2]
[2]
(ix)
(x) [2]
2.
3.
4.
5. Write a java program which entered a string by user and count the occurrence of
number of characters present in the string.
Input String : HELLO
Output : The character E has occurred for 1 time
The character H has occurred for 1 time
The character L has occurred for 2 time
The character O has occurred for 1 time
6. Write a program in java to check whether a number is tech number or not. If the number
is split in two equal halves, then the square of sum of these halves is equal to the number
itself.