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

  • (A) do...while
  • (B) for
  • (C) while
  • (D) foreach
πŸ’¬ Discuss
βœ… Correct Answer: (A) do...while
Explanation: do...while runs the loop body once before checking the condition.
Explanation by: Mr. Dubey
do...while runs the loop body once before checking the condition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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