Vidyalelo
Ruby Programming · Q21

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 21

Q21

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

A.
Checks if a substring exists in the string
B.
Checks if a character exists in the string
C.
Checks if the string includes another string
Answer
D.
Error

Answer: Option C

Solution

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