Vidyalelo
Ruby Programming · Q43

Control Structures in Ruby

Programming · Ruby Programming · question 43

Q43

What is the output of the given code? if 79>78 puts "True".upcase if 9>8 puts "True".Upcase if 7==7 puts "equal".downcase end end end

A.
True
B.
Error
C.
True,error
D.
TRUE
Undefined method 'Upcase' for String
Answer

Answer: Option D

Solution

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