You are on page 1of 12

29/07/2022 Core Java Test Papers Day 4 Praveen.

Q1. Description: Write Java program to allow the user to input his/her
age. Then the program will show if the person is eligible to vote. A person
who is eligible to vote must be older than or equal 1 to 18 years old.
Q2. Description: Write a program to find even or odd number
Q3. Description: Write a program to print even number from 1 to 100
Q4. Write a program to print the sum of all odd numbers between 1 to
100.

Q5. Count of even number between 1 to 100.


Q6. Write a program to find the factorial of a number.

Q7. Description: Write a program to print the fibonacci series of a


number 1 to 100.
Q8. Find Prime number or not.

Q9. Print the patters given using for loop:


Q10. Find Armstrong number or not.
Armstrong number means sum of the powers of each digit with total
number of digits in a number gives the number itself as answer. Eg: 153
has 3 digits. (1*1*1)+(5*5*5)+(3*3*3) = 1+125+27 = 153.
Q11. Reverse the number

Q12. Count of digits in an input number.


Q13. Write a program to find the sum of digits in user given number
Q14. Check Palindrome number. Palindrome numbers are the ones which
give same number even if reversed. Eg: 141, 1221, 1001 all give same result
even if reversed.

You might also like