Examveda

What is the output of the given code?
l=9
case l
print "ruby" when l==9
print "language" when l==10
end

A. l==9

B. l==10

C. Syntax error

D. Ruby

Answer: Option C


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

Join The Discussion

Related Questions on Control Structures in Ruby