NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
C Programming Engineering Mastery
Control Flow
Quiz
Chapter Quiz: Control Flow
Control Flow Quiz
Complete this assessment with 100% score to master this chapter.
01
Which loop is guaranteed to execute its body at least once?
for
while
do-while
switch
02
What is the purpose of the 'break' statement in a switch case?
To end the program
To skip the next case
To prevent 'fall-through' to the next case
To return a value
03
In C, what is treated as 'true' in an if-statement?
Only the number 1
Only positive numbers
Any non-zero value
Only boolean true
04
Which statement is used to skip the rest of the current loop iteration and move to the next one?
break
continue
return
goto
05
What is the internal mechanism that makes a 'switch' statement faster than multiple 'if-else' blocks?
Binary Search
Hash Map
Jump Table
Parallel processing
Submit Answers
Back to Lesson
Next Chapter