Vidyalelo
Ruby Programming · Q65

Basic Syntax in Ruby

Programming · Ruby Programming · question 65

Q65

What is the output of the given code? Ans=Ruby puts "#Ans is an oop language" puts "It is very efficient langauge" puts "#expr is used on rails platform"

A.
Error, no output
B.
Ruby is an oop language
It is very efficient langauge
undefined local variable
Answer
C.
Ruby is an oop language
It is very efficient langauge
#{expr} is used on rails platform
D.
None of the mentioned

Answer: Option B

Solution

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