Vidyalelo
Ruby Programming · Q84

Basic Syntax in Ruby

Programming · Ruby Programming · question 84

Q84

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

A.
Error in compilation
B.
Name variable not defined earlier
Answer
C.
My name is #{Name}
D.
Undefined Error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board