213k views
3 votes
Where does append add the new elements?

To the end of an array.
To the middle of an array.
To the beginning of an array.
In alphabetical/numerical order.

User Idan E
by
5.2k points

1 Answer

3 votes

Answer:

"Option 1: To the end of an array." is the correct answer.

Step-by-step explanation:

The word "Append" means adding to the end of a document.

Appending means whatever new content is added, it is added at the end of the document or data structure.

Similarly,

Appending an array means adding new elements to the end of the array.

Hence,

"Option 1: To the end of an array." is the correct answer.

User Tom McClure
by
6.1k points