NIELIT O Level Exam

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

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

ऐरे की पॉप () विधि निम्नलिखित में से कौन सा कार्य करती है?

A. decrements the total length by 1 कुल लंबाई में 1 . की कमी करता है

B. increments the total length by 1 कुल लंबाई को 1 . से बढ़ाता है

C. prints the first element but no effect on the length पहला एलिमेंट प्रिंट करता है लेकिन लंबाई पर कोई इफ़ेक्ट नहीं पड़ता

D. updates the element एलिमेंट्स को अपडेट करता है




Correct Answer is :

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 2026 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