Which of the following is a Non-modifying Sequence Operation?

a) swap()
b) transform()
c) remove()
d) search()

1 thought on “Which of the following is a Non-modifying Sequence Operation?”

  1. d
    Explanation: search() is Non-modifying sequence operation because while searching we never change anything whereas swapping, transforming and removing involves modifying the sequence in some way.

Leave a Comment