Which of the following method is used to add a new item to the end of the array?

26. Which of the following method is used to add a new item to the end of the array?

  1. Add()
  2. Insert()
  3. Push()
  4. Add_end()

Answer: C) Push()

Explanation:

The push() method is used to add a new item to the end of the array.

Comments and Discussions!

Load comments ↻






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