Bird
0
0

Which statement best describes the flow of a while loop in C?

easy📝 Conceptual Q1 of 15
C - Loops
Which statement best describes the flow of a while loop in C?
AThe loop executes the body a fixed number of times regardless of condition.
BThe loop executes the body once before checking the condition.
CThe loop checks the condition before executing the loop body each time.
DThe loop condition is checked only after the loop finishes.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the while loop behavior

    The while loop first checks the condition before running the loop body.
  2. Step 2: Compare with other loop types

    Unlike do-while, while may not run the body if the condition is false initially.
  3. Final Answer:

    The loop checks the condition before executing the loop body each time. -> Option C
  4. Quick Check:

    Loop flow = Condition checked first [OK]
Quick Trick: While loops check condition before running body [OK]
Common Mistakes:
  • Confusing while with do-while loop
  • Thinking loop always runs once
  • Assuming fixed iteration count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes