0% found this document useful (0 votes)
15 views2 pages

ICSE Class 9 Java Program Questions

Uploaded by

sidshah925
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

ICSE Class 9 Java Program Questions

Uploaded by

sidshah925
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ICSE Class 9 Java Programming Questions

1. Write a program to check whether a number is even or odd.

2. Write a program to find the greatest of two numbers using if-else.

3. Write a program to check whether the entered number is divisible by 5 and 11 or not.

4. Write a program to calculate the sum of digits of a 3-digit number.

5. Write a program to swap two numbers using a third variable.

6. Write a program to check whether a given year is a leap year.

7. Write a program to check if a number is positive, negative, or zero.

8. Write a program to input marks and display the corresponding grade:

- Above 90: A

- 80-89: B

- 70-79: C

- 60-69: D

- Below 60: Fail

9. Write a program to check whether a character is a vowel or consonant.

10. Write a program to check whether a number is an Armstrong number.

11. Write a program to print the multiplication table of any number.

12. Write a program to print the sum of first 10 natural numbers.

13. Write a program to display all even numbers between 1 to 100.

14. Write a program to display the factorial of a number.

15. Write a program to print the Fibonacci series up to n terms.

16. Write a program using switch to perform a calculator operation (Add, Sub, Mul, Div).

17. Write a program using switch to display the name of the day based on the number (1-7).

18. Write a program using switch to print the number of days in a month (1-12).

19. Write a program using switch to print whether a given character is a vowel or consonant.
20. Write a menu-driven program using switch for:

- 1. Area of Circle

- 2. Area of Rectangle

- 3. Area of Triangle

21. Write a program to check whether a number is a palindrome.

22. Write a program to reverse a given number.

23. Write a program to count the number of digits in a number.

24. Write a program to find the sum of even digits of a number.

25. Write a program to check whether a number is a perfect number.

You might also like