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

Tâm Tây

New member
Which of the following functions cannot be used on heterogeneous sets?
A. pop
B. remove
C. update
D. sum
 
Answer: d
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)}
 

Tìm kiếm

Back
Top