ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Python MCQ Practice Questions SET 9
2
3
Sr. No.QuestionOption 1Option 2Option 3Option 4Correct Option
4
81What does the len() function return when applied to a tuple?Length of the tupleSum of all elements in the tupleTotal number of occurrences of all elements in the tupleMaximum value in the tupleA
5
82Which method is used to sort the elements of a tuple?sort()sorted()sort_tuple()sorted_tuple()B
6
83What does the max() function return when applied to a tuple?Maximum value in the tupleMinimum value in the tupleAverage value of all elements in the tupleTotal number of elements in the tupleA
7
84What is the main difference between a tuple and a list?Tuple is mutable, list is immutableTuple is ordered and immutable, list is unordered and mutableTuple is unordered and mutable, list is ordered and immutableTuple can contain duplicate elements, list cannotB
8
85Which method is used to count the occurrences of a specific element in a tuple?sum()count()total()find()B
9
86Which function is used to find the minimum value in a tuple?minimum()min()find_min()smallest()B
10
87What does the + operator do in Python?Concatenates stringsPerforms additionRaises to powerBoth A and BD
11
88What does the % operator do in Python?Performs modulusRaises to powerPerforms divisionPerforms multiplicationA
12
89What is the result of 10 // 3 in Python?33.3343A
13
90What is the result of 5 ** 2 in Python?1025750B
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100