Examveda

What is the output of the given code?
counter = true
while counter !=false
  puts counter
end

A. True

B. False

C. Syntax error

D. Infinite loop

Answer: Option D


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby