MCQ Single Best Answer Moderate

QHow many times is the code inside a do-while loop guaranteed to execute?

ID: #24865 Control flow in programming 3 views
Question Info
#24865Q ID
ModerateDifficulty
Control flow in programmingTopic

Choose the Best Option

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

  • A 0 times
  • B At least once
  • C At least twice
  • D Infinite times
Correct Answer: Option B

Explanation

Correct Answer:

(b) At least once

Explanation:

do-while runs the code first and checks the condition later.

Share This Question

Challenge a friend or share with your study group.