Quiz Space

Programming in C · End Term · 13 Apr 2025 · January 2025 term · Set 1

Question 14: Which of the following statements is/are true about the …

Question 14

+4 marksOne or more correct options

Which of the following statements is/are true about the switch statement in C?

Select all that apply.

  1. A

    The break statement is compulsory to use with switch statement.

  2. B

    The default statement is compulsory to use with switch statement.

  3. C

    The default statement is optional with switch statement.

  4. D

    Multiple case labels can be used with switch statement.

Show answer

Correct answers

  • C

    The default statement is optional with switch statement.

  • D

    Multiple case labels can be used with switch statement.

Question 14 of 20 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 13 Apr 2025, in the January 2025 term (IIT M ES REATTEMPT AN EXAM QEQ1 13 Apr). It carries 4 marks.

This question was also asked in

More questions from this paper

  1. Q1Figure question
  2. Q2Which of the following is true about recursion?
  3. Q3A 32-bit integer 0x12345678 is stored in memory starting at address 0x3000 on a little-endian system. Which of the foll…
  4. Q4Which of the following statements correctly declares a pointer variable ptr to hold the address of a character variable…
  5. Q5In C programming, which memory region is typically used for dynamic memory allocation?
  6. Q6What does the #define directive do in C preprocessor?
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Figure question
  12. Q12Figure question
  13. Q13Which of the following is not a valid storage class in C language?
  14. Q15Which of the following statements about pointers is/are true?
  15. Q16Figure question
  16. Q17Figure question
  17. Q18Figure question
  18. Q19Figure question
  19. Q20Figure question