Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

The pop() method of the array does which of the following task?

a) decrements the total length by 1
b) increments the total length by 1
c) prints the first element but no effect on the length
d) updates the element

Answer: a
Explanation: pop() function pops out that is delete the last element from the array. Hence pop() method (it works with push()) reduces the length of an array by 1.

Join The Discussion