Examveda

What is the output of the given code?
if 1>2
   puts "false"
   else
   puts "True"

A. False

B. True

C. Syntax error

D. None of the mentioned

Answer: Option C


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

Join The Discussion

Related Questions on Control Structures in Ruby