Examveda
Examveda

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

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


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

Join The Discussion

Related Questions on Basic Syntax in Ruby