Control Structures Knowledge Quiz
Test your understanding of programming control structures.
Which control structure is used to execute a block of code repeatedly while a condition is true?
*
if statement
for loop
while loop
switch statement
What keyword is used to exit a loop prematurely?
*
continue
break
exit
return
Which control structure allows multiple possible execution paths based on different conditions?
*
if-else statement
for loop
while loop
do-while loop
What does the 'continue' statement do in a loop?
*
Exits the loop
Skips the current iteration and continues with the next
Restarts the loop
Ends the program
Submit
Should be Empty: