πŸ“Š Ruby
Q. What is true about while loop?
  • (A) Executes code while conditional is true
  • (B) In while loop increment is not required
  • (C) Executes code while conditional is false
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Executes code while conditional is true

Explanation: Executes code while conditional is true. A while loop`s conditional is separated from code by the reserved word do, a newline, backslash , or a semicolon.

Explanation by: Vinay Kumar
Executes code while conditional is true. A while loop`s conditional is separated from code by the reserved word do, a newline, backslash , or a semicolon.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
157
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
94%
Success Rate