Q84
What is the output of the given code? string = gets.chomp case string when string = "a" print "alphabet a" when string = "b" print "alphabet b" when string = "c" print "alphabet c" else print "some other alphabet" end
A.
alphabet a
B.
b
alphabet b
Answeralphabet b
C.
alphabet c
D.
Syntax error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board