Array Methods & Properties Interview Questions – Array Methods & Properties Online Quiz

Question 1:  Which method adds one or more elements to the end of an array and returns the new length of the array?

Question 2:  Which method removes the last element from an array and returns that element?

Question 3:  Which property returns the number of elements in an array?

Question 4:  Which method creates a new array with all elements that pass a test implemented by a provided function?

Question 5:  Which method executes a function once for each array element?

Question 6:  Which method joins two or more arrays and returns a new array?

Question 7:  Which method returns the first index at which a given element is found in an array?

Question 8:  Which method removes the first element from an array and returns that removed element?

Question 9:  Which method returns true if an array includes a certain element?

Question 10:  Which method sorts the elements of an array in place and returns the sorted array?

Leave a Reply