Multiple choice

What would be the most suitable option to write a program (using conditional constructs) to write the names of months in the year?

  1. If else statement

  2. Switch case statement

  3. Both 1 and 2

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Explanation:  Switch Case would be most appropriate because if we use if else then we will have to write 12 if else statements.