Paper Tayyari

Lecture 31: Switch Statement

MCQs, short and long questions from lecture 31.Lecture 31 ki MCQs, short aur long sawal.

2 MCQs · 2 MCQs from past papers2 MCQs · 2 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/2
– correctsahi
1.
★ VU quiz

In the switch statement, cases should always end with a ——-statment .

  1. ASwitch
  2. BGo
  3. CBreak
  4. DStop

Each case should end with break to avoid unintended fall-through.

2.
★ VU quiz

Switch statement is equal to ___________ statement.

  1. Aif
  2. Bif-else
  3. Cnested if
  4. Dif-else if

A switch behaves like an if-else-if chain.