Q. Which loop is guaranteed to execute at least once?

  • (A) for loop
  • (B) while loop
  • (C) do-while loop
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) do-while loop
Explanation: 'do-while' loop checks the condition after execution, so it always runs at least once.
Explanation by: Mr. Dubey
'do-while' loop checks the condition after execution, so it always runs at least once.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate