1.

This the right way to comment a single line.(a) “Ruby”.length # I’m a single line comment!(b) True(c) FalseThis question was addressed to me in final exam.My question comes from Comments in Ruby in portion Ruby Basics of Ruby

Answer» RIGHT OPTION is (a) “RUBY”.length # I’m a single line comment!

To EXPLAIN: We use # in a single line comment.


Discussion

No Comment Found

Related InterviewSolutions