Vidyalelo
Ruby Programming · Q109

Control Structures in Ruby

Programming · Ruby Programming · question 109

Q109

What is the output of the given code? m=0 loop do puts 101 m+=1 break if m==5 end

A.
101 101 101 101 101
Answer
B.
10 20 30 40 50
C.
Error
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board