Vidyalelo
Ruby Programming · Q47

Basic Syntax in Ruby

Programming · Ruby Programming · question 47

Q47

What does the 'chomp' method do in Ruby?

A.
Removes trailing whitespace
Answer
B.
Converts to integer
C.
Reads input from user
D.
Splits a string

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board