CBSE Class 11 Computer Science Question 30 of 91

String Manipulation — Question 20

Back to all questions
20
Question

Question 20

Which of the following functions will raise an error if the given substring is not found in the string?

  1. find()
  2. index() ✓
  3. replace()
  4. all of these
Answer