πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) val1

Explanation: val1 is the correct output for the following code.

Explanation by: Mr. Dubey
val1 is the correct output for the following code.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
212
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate