A

Admin • 802.91K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.