Single Choice Easy

QWhat is the purpose of the "do-while" loop?

ID: #15977 C Language Loop Control 133 views
Question Info
#15977Q ID
EasyDifficulty
C Language Loop ControlTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A To execute code based on a condition
  • B To execute code repeatedly until a condition is false
  • C To execute code at least once and then based on a condition
  • D To execute code based on multiple conditions
Correct Answer

Explanation

The "do-while" loop ensures that the code block is executed at least once before checking the loop condition for further execution.

Share This Question

Challenge a friend or share with your study group.