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.
Latest Current Affairs 2024 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