Vidyalelo
Python · Q56

Python Sets MCQs: Exam

Programming · Python · question 56

Q56

If we have two sets, s1 and s2, and we want to check if all the elements of s1 are present in s2 or not, we can use the function:

A.
s2.issubset(s1)
B.
s2.issuperset(s1)
Answer
C.
s1.issuperset(s2)
D.
s1.isset(s2)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board