Examveda

What is the output of the the given code?
puts "My name is #{Name}"

A. Error in compilation

B. Name variable not defined earlier

C. My name is #{Name}

D. Undefined Error

Answer: Option B


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby