LearnFrenzy
Sign in Take a free test

Control Instructions · Exercise 1 of 4

Control Instructions Control Instructions MCQ

  • 12 questions
  • Page 2 of 2
  • Answers explained
0Attempted
0Correct
0Wrong
Directions

Twelve multiple-choice questions on if-else, switch, fall-through, short-circuit evaluation, the conditional operator, goto and the C23 changes. Pick an option to check your answer instantly.

Question 11 Medium

What is the purpose of [[fallthrough]]; at the end of a case in C23?

A It works like break
B It marks a deliberate fall-through, so the compiler does not warn about it
C It jumps to default
D It makes the next case run twice
Question page & discussion
Question 12 Hard

Is a declaration directly after a case label, as in case 1: int x = 5;, valid?

A Always valid
B Invalid before C23 (a label had to be followed by a statement); valid in C23
C Never valid
D Valid only in default
Question page & discussion
Up next · Exercise 2Predict the Output12 questions

Ready to test your Programming?

Timed online tests with instant scores and explanations.

Search LearnFrenzy

Esc

Quick links