MCQ Answer

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.

____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।
Topic : Sequence data types in python

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 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz