Icse Important Questions
Icse Important Questions
2.
3.
4.
Number of consonants
5.
6.
Q 12. The single dimensional arrays A and B are sorted in ascending order. Create an array C to combine them into a
descending order.(10)
1.
Q 13. Primorial(p#) is defined to be a product of prime numbers less than or equal to p. (15)
For eg. 3# =2*3=6 5# =2*3*5=30 Design a class primo_numb with two methods
1.
2.
Q 13. Write a prog to input a string and two words and replace first word with second word as in sample example:
Input: hot plate with hot egg
Word 1: hot
Word2: cold
Output: cold plate with cold egg
Q 14. WAP to input a name and print its initials as
Input Subhas Chandra Bose
Output:
(i) S.C.Bose
(ii) Bose, S.C.
(iii) S.C.B.
Q 15. WAP to input name and total marks of 50 students and now input a name and check whether this name exist in
list or not , if it is exist then print this name and marks in the given format otherwise print a suitable message to show
that name does not exist.
Name :- xxxxxx
Marks obtained - ******** ( X and stars denote values of the variables).
Q 16. Write a program in java to input a sentence and find out how many palindromes are there in the sentence also
print the palindromes.
Q 17. Write a program in java to input a sentence and find out the sum of the ASCII values of the characters.
Q 18. Write a program in java create function area() to find
i) area of circle
ii) area of rectangle
ii) area of trangle().
Q 19. Write a program in java create function reverse() to
i) reverse a number
ii) reverse a string.
Q 20 Write a program in java to input a sentence and replace each vowel with its nextg letter.
Computer will be Cpmpvtfr(o-p, u-v, e f)