Which sequence can be used to substitute the value of any ruby expression in a string?
A. #(expr)
B. #{expr}
C. #expr
D. None of the mentioned
Answer: Option B
A. #(expr)
B. #{expr}
C. #expr
D. None of the mentioned
Answer: Option B
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user
Join The Discussion