1.

For getting an input from the user which method is used?(a) get(b) gets.chomp(c) get-s(d) chompThe question was asked during an interview.This is a very interesting question from Library Functions topic in chapter Ruby Basics of Ruby

Answer» CORRECT answer is (b) gets.chomp

To explain I would say: The METHOD gets.chomp TAKES the INPUT from the USER.


Discussion

No Comment Found

Related InterviewSolutions