Which of the following method is used to eliminate the last item from the arrays and returns it?

28. Which of the following method is used to eliminate the last item from the arrays and returns it?

  1. Del()
  2. Pop()
  3. Delete()
  4. Remove()

Answer: B) Pop()

Explanation:

The pop() method is used to eliminate the last item from the arrays and returns it.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.