Important Notice:
|| CCC Result Nov 2025 ||
|| CCC Marksheet Aug 2025 ||
|| O Level Jul 2026 Reg. Form Last Date: 30/04/2026 ||
|| CCC Mar 2026 Exam Postponed ||
|| CCC/ O Level Exam Full Form ||
|| CCC Result Nov 2025 ||
|| CCC Marksheet Aug 2025 ||
|| O Level Jul 2026 Reg. Form Last Date: 30/04/2026 ||
|| CCC Mar 2026 Exam Postponed ||
|| CCC/ O Level Exam Full Form ||
O Level
Notes
Follow us:
OLevelNotes
Home
O Level Notes
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
CCC
CCC Chapter Wise Notes
CCC Chapter Wise MCQ
CCC Modal Paper
CCC Previous Paper
CCC Assignment
CCC Online Test/Real Portal
Chapter Wise MCQ
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Model Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
O Level Real Test Portal
Old Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Practical Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Assignment
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Contact Us
ADCA Course
Introduction To Computer
Introduction To OS
MS Office
Tally Prime
Graphic Design
Web Design
Programming Language
Learn Typing
Typing Tutor
Typing Test
KCIT Student
Student Login
KCIT Student
M3-R5.1 — Set Data Type MCQ
25 Questions • M3-R5.1
20:00
← Back
1
A set in Python stores?
A
Ordered with duplicates
B
Unordered unique elements
C
Key-value pairs
D
Indexed elements
2
A set is created using?
A
[]
B
()
C
{} or set()
D
<>
3
{1, 2, 2, 3} creates a set with how many elements?
A
4
B
3
C
2
D
1
4
To add an element to a set?
A
set.add()
B
set.append()
C
set.insert()
D
set.push()
5
set.remove(x) raises an error if?
A
Set is empty
B
x is not in set
C
Set has duplicates
D
x is a string
6
set.discard(x) does NOT raise error if?
A
x is in set
B
x is not in set (silently does nothing)
C
Set is full
D
x is 0
7
Union of {1,2} and {2,3} is?
A
{1,2,2,3}
B
{1,2,3}
C
{2}
D
{1,3}
8
Intersection of {1,2,3} and {2,3,4} is?
A
{1,2,3,4}
B
{2,3}
C
{1,4}
D
{2}
9
A frozenset is?
A
Mutable set
B
Immutable set
C
Sorted set
D
Keyed set
10
Sets support which operations?
A
Indexing
B
Slicing
C
Mathematical set operations (union, intersection)
D
Key lookup
11
Set in Python is created with?
A
[]
B
()
C
{}
D
<>
12
Set elements can be?
A
Duplicated
B
Only unique
C
Only strings
D
Only numbers
13
set.add(x) does?
A
Removes x
B
Adds x to set
C
Replaces set
D
Sorts set
14
set.remove(x) does?
A
Adds x
B
Removes x, raises error if not found
C
Removes all
D
Returns x
15
set.discard(x) vs remove(x)?
A
Same behavior
B
discard does not raise error if x not found
C
remove is faster
D
discard is not available
16
Union of two sets combines?
A
Common elements only
B
All unique elements from both sets
C
First set only
D
Second set only
17
Intersection of two sets returns?
A
All elements
B
Common elements only
C
Unique to first
D
Unique to second
18
Difference A-B returns?
A
Elements in A but not in B
B
Elements in B but not in A
C
Common elements
D
All elements
19
Sets are?
A
Ordered
B
Unordered collection
C
Sorted
D
Indexed
20
Can set contain a list?
A
Yes
B
No — sets can only contain immutable items
C
Sometimes
D
Only empty list
21
frozenset is?
A
Mutable set
B
Immutable set
C
Empty set
D
Sorted set
22
set.clear() does?
A
Deletes set
B
Empties the set
C
Sorts set
D
Copies set
23
len({1,2,3,3,4}) returns?
A
5
B
4
C
3
D
2
24
set.issubset(other) checks?
A
If sets are equal
B
If all elements of set are in other
C
If sets are different
D
If set is empty
25
Symmetric difference returns?
A
Common elements
B
Elements in either set but not both
C
All elements
D
Empty set
📋 Question Navigator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Answered
Not Answered
ℹ️ Quiz Info
Total Questions:
25
Time Limit:
20 min
Subject:
M3-R5.1
Passing:
60%
Attempt all questions before submitting. You can review your answers using the navigator above.
Answered:
0
/ 25
Submit Quiz