Q. What will be the output of the given code?
Code:counter = true while counter !=false puts counter end
β
Correct Answer: (D)
Infinite Loop
Explanation: Counter value is true in all cases hence true will be printed infinite times.