Examveda
Examveda

What is the output of the following code snippet?
x = 10
unless x > 15
  puts "Hello"
end

A. Hello

B. No output

C. Error

D. nil

Answer: Option A


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

Join The Discussion

Related Questions on Control Structures in Ruby