Important Notice:
M3-R5.1 — Set Data Type MCQ
25 Questions  •  M3-R5.1
20:00
← Back
1
A set in Python stores?
2
A set is created using?
3
{1, 2, 2, 3} creates a set with how many elements?
4
To add an element to a set?
5
set.remove(x) raises an error if?
6
set.discard(x) does NOT raise error if?
7
Union of {1,2} and {2,3} is?
8
Intersection of {1,2,3} and {2,3,4} is?
9
A frozenset is?
10
Sets support which operations?
11
Set in Python is created with?
12
Set elements can be?
13
set.add(x) does?
14
set.remove(x) does?
15
set.discard(x) vs remove(x)?
16
Union of two sets combines?
17
Intersection of two sets returns?
18
Difference A-B returns?
19
Sets are?
20
Can set contain a list?
21
frozenset is?
22
set.clear() does?
23
len({1,2,3,3,4}) returns?
24
set.issubset(other) checks?
25
Symmetric difference returns?
Answered: 0 / 25