NIELIT O Level Exam

Which of the following functions cannot be used on heterogeneous sets?

Which of the following functions cannot be used on heterogeneous sets?

निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?

A. pop पॉप

B. remove रिमूव

C. update अपडेट

D. sum सम




Correct Answer is :

D. sum



Explanation
The functions sum, min and max cannot be used on mixed type (heterogeneous) sets. The functions pop, remove, update etc can be used on homogenous as well as heterogeneous sets. An example of heterogeneous sets is: {‘abc’, 4, (1, 2)}
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