Vidyalelo
Python · Q18

Python Sets MCQs: Exam

Programming · Python · question 18

Q18

What is the purpose of the clear() method for sets?

A.
Removes all elements from the set
Answer
B.
Adds an element to the set
C.
Removes the last element
D.
Deletes the set

Answer: Option A

Solution

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