Q. When the condition of the do-while loop is false, how many times will it execute the code?

  • (A) 0
  • (B) 1
  • (C) Infinite
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1
Explanation: The do-while loop is an exit-controlled loop, hence it will run at least once, even if the condition becomes false.
Explanation by: Chandani
The do-while loop is an exit-controlled loop, hence it will run at least once, even if the condition becomes false.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
373
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
98%
Success Rate