C# Conditional Statement Practice Questions
Easy Level Questions
1. Check if a number is positive.
2. Check if a number is even or odd.
3. Check if a number is divisible by 5 and 11.
4. Find the greatest of two numbers.
5. Find the greatest among three numbers.
6. Check whether a character is a vowel or consonant.
7. Check if a number is a multiple of 3 or 7.
8. Determine whether a year is a leap year.
9. Check if a person is eligible to vote.
10. Check if a number is zero, positive or negative.
11. Compare three floating-point numbers and display the smallest.
12. Check if a character is uppercase or lowercase.
13. Print 'Pass' if marks > 40.
14. Check if the triangle sides form a valid triangle.
15. Identify if input is a letter, digit or special character.
16. Check blood donation eligibility (age + weight).
17. Check if a number is in range 1-100.
18. Use ternary to check even/odd.
19. Use switch to get weekday name (1-7).
20. Use ternary to print 'Pass' or 'Fail'.
Medium Level Questions
21. Write a calculator using switch.
22. Use switch to print month name (1-12).
23. Vowel checking using switch.
24. Print number of days in month using switch.
25. Print season using month number (switch).
26. Assign grades using switch.
27. Menu-based calculator using switch.
C# Conditional Statement Practice Questions
28. Traffic light message using switch.
29. Zodiac sign using month (switch).
30. Ternary to find greatest of two numbers.
31. Nested ternary to find smallest of three numbers.
32. Check character: if letter, then check vowel.
33. Number divisible by both 3 and 5, or only one.
34. Age category: child, teen, adult, senior.
35. Classify triangle (scalene, isosceles, equilateral).
36. Century year check (e.g. 1900, 2000).
37. Password validation: check length >= 6.
38. Use if-else to show letter grade (A-F) based on score.
39. Check if two numbers are equal using ternary.
40. Leap year check using ternary operator.
Hard Level Questions
41. ATM withdrawal: check if balance is enough.
42. Login system: check username and password.
43. Electricity bill calculator based on usage slabs.
44. Attendance + marks check for exam eligibility.
45. Suggest clothing based on temperature.
46. Quiz program: check correct answer.
47. Discount system: apply tiered discounts.
48. Prime number check.
49. Armstrong number check.
50. Password validator: length + digit + uppercase check.