Why do we use =begin and =end?
A. To mark the start and end of multiline comment
B. To comment multiple lines
C. To avoid the use of # again and again
D. All of the mentioned
Answer: Option D
Related Questions on Basic Syntax in Ruby
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