A

Admin • 833K Points
Coach

Q. What will be output for the following code?

Code:
val1 = ""This is variable one""
puts ""val1""
  • (A) This is variable one
  • (B) VAL1
  • (C) This is variable one val1
  • (D) val1
  • Correct Answer - Option(D)
  • Views: 29
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin

val1 is the correct output for the following code.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.