NIELIT O Level Exam

The ____________ function removes the first element of a set and the last element of a list.

The ____________ function removes the first element of a set and the last element of a list.

____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।

A. remove रिमूव

B. pop पॉप

C. discard डिस्कार्ड

D. dispose डिस्पोज़




Correct Answer is :

B. pop



Explanation
The function pop removes the first element when used on a set and the last element when used to a list.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad