Control Structures MCQs
Practice free Control Structures multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 155 questions — no login required.
Question 10medium
In C, which control structure is used to iterate through a collection of items, such as an array or a list?
Question 11easy
What is the purpose of the 'if' control structure in C?
Question 12easy
What is the result of the expression 10 % 3 in C?
Advertisement
Question 13medium
In C, what happens if the 'break' statement is used outside of a loop or switch statement?
Question 14medium
Which control structure in C is used to perform a repetitive task while a condition is true?
Question 15easy
What is the result of the expression `7 || 0` in C?
Advertisement
Question 16easy
In C, what is the purpose of the 'goto' statement?
Question 17easy
What does the 'default' case in a 'switch' statement do in C?
Question 18easy
How can you create an infinite loop in C?