Examveda

What is the output of the given code?
 if !true
   print "False"
   elsif !true || true
   print "True"
   end

A. True

B. False

C. Syntax eroor

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