ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
For getting an input from the user which method is used?
get
gets.chomp
get-s
chomp
Correct Answer: B — gets.chomp
The method gets.chomp takes the input from the user.