Report Bug

QusThe pop() method of the array does which of the following task? Qusऐरे की पॉप () विधि निम्नलिखित में से कौन सा कार्य करती है?


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


Solution
A. decrements the total length by 1



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.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad