If an IndexofAny method is passed an array of characters it:

  1. finds the first occurrence of each letter in the string

  2. searches for the first occurrence of any of the characters in the string

  3. will search for the first occurrence of the sequence of characters

  4. generates an error


Correct Option: B

Find more quizzes: