Which loop is guaranteed to execute at least once?
A
for loop
B
while loop
C
do-while loop
Correct answer
D
nested loop
Correct answer
C. do-while loop
11 views
⚔️
Challenge a friend on Computer Science FBISE Class 10
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
A do-while loop checks its condition after executing the body, so the body runs at least once. A while loop checks before, so it may never run. This is a standard exam point.
Reference
Asked in: Matric,FBISE
Doubts & discussionNot sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ The structure that allows a choice among several options is called: Next MCQ › Which language is used for creating web pages?