Home / MCQ Bank / Computer
Computer Arrays, Hashes And Strings In Ruby

What does the `chomp` method do when used with strings in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Removes newline characters from the end

Related Computer Questions

______ method adds the deprecated key to the global deprecation map. Which of the following Protocol enables a hyperlink to access a file on the local file system? Which PowerPoint feature allows the user to create a simple presentation without having to spend too much time on it? Consider the fleury's algorithm given below. Which of the following best suits the blank? Graph must have 0 or 2 odd vertices if there are 0 odd vertices, start from any vertex if there are 2 odd vertices, start from any one of them follow any of the edge, always choose the ______________ repeat for all the edges of the graph Which HTML element is used to include images?