Q. Which loop will always execute at least once?

  • (A) for
  • (B) while
  • (C) do-while
  • (D) foreach
πŸ’¬ Discuss
βœ… Correct Answer: (C) do-while
Explanation: do-while executes the block before checking the condition.
Explanation by: Rati Dubey
do-while executes the block before checking the condition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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