Vidyalelo
Python · Q35

Python Sets MCQs: Exam

Programming · Python · question 35

Q35

What will be the output of the following Python code? a=set('abc') b=set('def') b.intersection_update(a) a b

A.
set()
(‘e’, ‘d’, ‘f’}
B.
{}
{}
C.
{‘b’, ‘c’, ‘a’}
set()
Answer
D.
set()
set()

Answer: Option C

Solution

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