Topic Practice · Control Flow
If…Else problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Even or Odd
4 test casesEasy✓2. Largest of Three
4 test casesEasy✓3. Positive, Negative or Zero
4 test casesEasy✓4. Can Vote?
4 test casesEasy✓5. Larger of Two
4 test casesEasy✓6. Divisible?
4 test casesEasy✓7. Vowel or Consonant
5 test casesEasy✓8. Absolute Value
4 test casesEasy✓9. Day of the Week
5 test casesEasy✓10. Pass or Fail
4 test casesEasy✓11. Sign of a Product
4 test casesEasy✓12. Smaller One First
4 test casesEasy✓13. What to Wear
5 test casesEasy✓14. Even or Odd
4 test casesEasy✓15. Largest of Three
4 test casesEasy✓16. Teenager?
4 test casesEasy✓17. Letter Grade
5 test casesEasy✓18. Hot or Cold
5 test casesEasy✓19. Same Number?
4 test casesEasy✓20. Discount Over 1000
4 test casesEasy✓21. Capital Letter?
4 test casesEasy✓22. Child, Adult or Senior
5 test casesEasy✓23. Leap Year
4 test casesMedium✓24. Grade Calculator
6 test casesMedium✓25. Ticket Price
7 test casesMedium✓26. Triangle Type
6 test casesMedium✓27. Which Quadrant?
4 test casesMedium✓28. Electricity Bill
6 test casesMedium✓29. Middle Value
4 test casesMedium✓30. Password Check
5 test casesMedium✓31. Mini Calculator
5 test casesMedium✓32. BMI Category
4 test casesMedium✓33. Can It Be a Triangle?
4 test casesMedium✓34. Shipping Cost
5 test casesMedium✓35. Cinema Ticket
4 test casesMedium✓36. How Many Real Roots?
4 test casesMedium✓37. How Many Are Equal?
4 test casesMedium✓38. Sort Three Numbers
4 test casesMedium✓39. Inside the Rectangle?
5 test casesMedium✓40. Greeting by the Hour
5 test casesMedium✓41. Days in a Month
6 test casesHard✓42. Rock Paper Scissors
5 test casesHard✓43. Is This a Real Date?
6 test casesHard✓44. Income Tax Slabs
4 test casesHard✓45. Tomorrow's Date
6 test casesHard✓46. Acute, Right or Obtuse?
7 test casesHard✓47. Name the Dice Hand
8 test casesHard✓48. Is the Chess Move Legal?
7 test casesHard✓49. 24-Hour to 12-Hour Time
5 test casesHard✓50. How Do Two Intervals Meet?
6 test casesHard
4 test casesEasy✓2. Largest of Three
4 test casesEasy✓3. Positive, Negative or Zero
4 test casesEasy✓4. Can Vote?
4 test casesEasy✓5. Larger of Two
4 test casesEasy✓6. Divisible?
4 test casesEasy✓7. Vowel or Consonant
5 test casesEasy✓8. Absolute Value
4 test casesEasy✓9. Day of the Week
5 test casesEasy✓10. Pass or Fail
4 test casesEasy✓11. Sign of a Product
4 test casesEasy✓12. Smaller One First
4 test casesEasy✓13. What to Wear
5 test casesEasy✓14. Even or Odd
4 test casesEasy✓15. Largest of Three
4 test casesEasy✓16. Teenager?
4 test casesEasy✓17. Letter Grade
5 test casesEasy✓18. Hot or Cold
5 test casesEasy✓19. Same Number?
4 test casesEasy✓20. Discount Over 1000
4 test casesEasy✓21. Capital Letter?
4 test casesEasy✓22. Child, Adult or Senior
5 test casesEasy✓23. Leap Year
4 test casesMedium✓24. Grade Calculator
6 test casesMedium✓25. Ticket Price
7 test casesMedium✓26. Triangle Type
6 test casesMedium✓27. Which Quadrant?
4 test casesMedium✓28. Electricity Bill
6 test casesMedium✓29. Middle Value
4 test casesMedium✓30. Password Check
5 test casesMedium✓31. Mini Calculator
5 test casesMedium✓32. BMI Category
4 test casesMedium✓33. Can It Be a Triangle?
4 test casesMedium✓34. Shipping Cost
5 test casesMedium✓35. Cinema Ticket
4 test casesMedium✓36. How Many Real Roots?
4 test casesMedium✓37. How Many Are Equal?
4 test casesMedium✓38. Sort Three Numbers
4 test casesMedium✓39. Inside the Rectangle?
5 test casesMedium✓40. Greeting by the Hour
5 test casesMedium✓41. Days in a Month
6 test casesHard✓42. Rock Paper Scissors
5 test casesHard✓43. Is This a Real Date?
6 test casesHard✓44. Income Tax Slabs
4 test casesHard✓45. Tomorrow's Date
6 test casesHard✓46. Acute, Right or Obtuse?
7 test casesHard✓47. Name the Dice Hand
8 test casesHard✓48. Is the Chess Move Legal?
7 test casesHard✓49. 24-Hour to 12-Hour Time
5 test casesHard✓50. How Do Two Intervals Meet?
6 test casesHard