1.

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 mentionedI have been asked this question during an online exam.Origin of the question is Comments in Ruby in portion Ruby Basics of Ruby

Answer»

The CORRECT choice is (d) All of the mentioned

The explanation: Easier way to COMMENT multiple LINES.



Discussion

No Comment Found

Related InterviewSolutions