Q86
What is the output of the given code? length=gets.chomp case length.length when length=4 print "length is 4" when length=5 print "length is 5" end
A.
ruby
length is 4
Answerlength is 4
B.
ruby
length is 5
length is 5
C.
abc
length is 4
length is 4
D.
syntax error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board