Examveda

What is the output of the following?
if 1<2
   print "one is less than two"
   end

A. One is less than two

B. Syntax error

C. 1<2

D. None of the mentioned

Answer: Option A


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

Join The Discussion

Related Questions on Control Structures in Ruby