Which of the following is true about the while loop in C?

2025

Which of the following is true about the while loop in C?

  1. A.

    Is used only when the number of iterations is known

  2. B.

    Does not allow break statement

  3. C.

    May never execute if the condition is false

  4. D.

    Executes at least once even if the condition is false

Attempted by 289 students.

Show answer & explanation

Correct answer: C

A while loop is an entry-controlled loop in C. This means the condition is evaluated before the loop body executes. If the condition is false at the beginning, the loop body is skipped entirely. Therefore, a while loop may execute zero times.

Explore the full course: Rssb Senior Computer Instructor