2.
What is the output of the given code?
counter = 1
until counter > 10
  puts counter
counter+=1 
  end

3.
What is the output of the given code?
counter = 0
until counter >= 10
  puts counter
counter+=1 
  end

Read More Section(Control Structures in Ruby)

Each Section contains maximum 100 MCQs question on Control Structures in Ruby. To get more questions visit other sections.