Which of the following is the correct way to start a single-line comment in Ruby?
A. //
B. /*
C. #
D. --
Answer: Option C
A. //
B. /*
C. #
D. --
Answer: Option C
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