Solved

Which of the Following Statements Is True in Regard to the Following

Question 11

Multiple Choice

Which of the following statements is true in regard to the following example? if "Welcome the USA!." =~ /USA|America/ then puts "We have a match!" end


A) A pattern search has been set up to search the source string for either the words USA or America. A match occurs if either string is found.
B) A pattern search has been set up to search the source string for both the words USA and America. A match occurs only if both strings are found.
C) A case-insensitive search has been set up that searches the source string for either the words USA or America. A match occurs is either string is found.
D) None of the above.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions