0% found this document useful (0 votes)
2 views1 page

Java IfElse Switch Questions

The document lists various Java programming questions focused on using if-else and switch-case statements. It includes tasks such as checking even or odd numbers, finding the largest of three numbers, and simulating a traffic light. The questions are designed to test fundamental programming skills in Java.

Uploaded by

ANIK DUTTA
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)
2 views1 page

Java IfElse Switch Questions

The document lists various Java programming questions focused on using if-else and switch-case statements. It includes tasks such as checking even or odd numbers, finding the largest of three numbers, and simulating a traffic light. The questions are designed to test fundamental programming skills in Java.

Uploaded by

ANIK DUTTA
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/ 1

Java Programming Questions Based on if-else and switch-case

1. Check Even or Odd using if-else.

2. Find the Largest of Three Numbers using if-else-if.

3. Check Positive, Negative, or Zero using if-else.

4. Check Leap Year using if-else.

5. Student Grade Calculator using if-else.

6. Simple Calculator using switch-case.

7. Days in a Week using switch-case.

8. Vowel or Consonant Checker using switch-case.

9. Month Days (1-12) using switch-case.

10. Traffic Light Simulation using switch-case.

11. Check if Character is Alphabet, Digit, or Symbol using if-else.

12. Check Eligibility to Vote using if-else.

13. Electricity Bill Calculator using if-else.

14. Triangle Validity Checker using if-else.

15. Check if Number is Divisible by 3 and 5 using if-else.

16. Arithmetic Operation on Two Numbers using switch-case.

17. Menu-driven Area Calculator using switch-case.

18. Number to Word Converter (0-9) using switch-case.

19. Grade Description using switch-case.

20. Weekday vs Weekend using switch-case.

You might also like