Home / Programming MCQs / Ruby MCQs / Question

V

Vinay Kumar • 8.45K Points
Tutor III

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

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.