Vidyalelo
Ruby Programming · Q32

Data Types and Variables in Ruby

Programming · Ruby Programming · question 32

Q32

What is the method used to check if a string contains a specific substring in Ruby?

A.
.contains
B.
.exist
C.
.include?
Answer
D.
.hasSubstring

Answer: Option C

Solution

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