Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01

Multiple Choice Questions (MCQs) for : Strings, List, Tuple, Dictionary, Module

Access targeted multiple-choice questions for Strings, List, Tuple, Dictionary, Module designed to align with the latest NCERT academic syllabus for . These objective practice sets help students evaluate their conceptual understanding and improve exam readiness.

Practice Strings, List, Tuple, Dictionary, Module MCQs for

Navigate directly to the 50 objective questions for Strings, List, Tuple, Dictionary, Module using the digital viewer below. Each practice set includes verified answer keys, allowing students to instantly cross-check their work and identify areas requiring further revision.

 

Question. What will be the output of the following Python code?
str1 = 'python'
str2 = ','
str3 = 'string'
str1[-1:]

(a) nthopy
(b) python
(c) h
(d) n
Answer: (d)

Question. What will be the output of the following Python statement?(python 3.xx)
print(format("Python", "10s"), end = '#')
print(format(100, "4d"), end = '#')
print(format(900.666, "3.2f"))

(a) Python# 100#900.66
(b) Python#100# 900.67
(c) Python # 100#900.67
(d) Python#100#900.67
Answer: (c)

Question. What will be the output of the following Python code?
print("mnopqr".find("op"))

(a) True
(b) 2
(c) 3
(d) None of the mentioned
Answer: (b)

Question. What will be the output of the following Python code?
print('pqrstv'.partition('rs'))

(a) (‘pq’, ‘tv’)
(b) (‘pqtv’)
(c) ('pq', 'rs', 'tv')
(d) 2
Answer: (c)

Question. What will be the output of the following Python code?
print('pqqrppqpqq'.lstrip('pqq'))

(a) error
(b) rppqpqq
(c) r
(d) pqr
Answer: (b)

Question. What will be the output of the following Python code?
example = "world"
example.find("d")

(a) Error
(b) -1
(c) 4
(d) 0
Answer: (c)

Question. What will be the output of the following Python code?
print("xyz. PQR".capitalize())

(a) xyz. PQR
(b) XYZ. PQR
(c) Xyz. pqr
(d) Xyz. Pqr
Answer: (c)

Question. What will be the output of the following Python code?
print("Python {0[0]} and {0[1]}".format(('fff', 'bbb'))).

(a) Python fff and bbb
(b) Python (‘fff’, ‘bbb’) and (‘fff’, ‘bbb’)
(c) Error
(d) None of the mentioned
Answer: (a)

Question. The format function, when applied on a string returns ________
(a) Error
(b) int
(c) bool
(d) str
Answer: (d)

Question. What will be the output of the following Python code?
print('pqqpqqrqrpq'.lstrip('pqq'))

(a) rppq
(b) rq
(c) rppqrqrp
(d) none of the mentioned
Answer: (a)

Question. What will be the output of the following Python code?
print('xyz'.encode())

(a) xyz
(b) 'xyz'
(c) b’xyz’
(d) h’xyz’
Answer: (c)

Question. What will be the output of the following Python code?
print("Python {name1} and {name2}".format('fff', 'bin'))

(a) Python fff and bin
(b) Python {name1} and {name2}
(c) Error
(d) Python and
Answer: (c)

Question. What will be the output of the following Python code?
print("pq\trs\ttu".expandtabs(4))

(a) pq rs tu
(b) pqrstu
(c) pq\trs\ttu
(d) pq rs tu
Answer: (a)

Question. What will be the output of the following Python code?
print("Python {0} and {1}".format('fff', 'bin'))

(a) Python fff and bin
(b) Python {0} and {1} fff bin
(c) Error
(d) Python 0 and 1
Answer: (a)

Question. What will be the output of the following Python code?
print("pqqrpqrprpqq".count('qq', 1))

(a) 2
(b) 0
(c) 1
(d) none of the mentioned
Answer: (a)

Question. What will be the output of the following Python code?
print('xy,14'.isalnum())

(a) True
(b) False
(c) None
(d) Error
Answer: (b)

Question. What will be the output of the following Python code snippet?
print('abbabbababaab'.replace('ab', '10', 0))

(a) abbabbababaab
(b) 10b10b1010a10
(c) 12babbababaab
(d) babbababaab12
Answer: (a)

Question. What will be displayed by print(ord('b') - ord('a'));?
(a) 1
(b) 0
(c) -1
(d) 2
Answer: (a)

Question. Suppose y is 345.3546, what is format(y, “10.3f”) (_ indicates space).
(a) __345.355
(b) ___345.355
(c) ____345.355
(d) _____345.354
Answer: (b)

Question. What will be the output of the following Python code?
x={f: 'X' + str(f) for f in range(5)}
print(x)

(a) An exception is thrown
(b) {0: 'X0', 1: 'X1', 2: 'X2', 3: 'X3', 4: 'X4'}
(c) {0: ‘X’, 1: ‘X’, 2: ‘X’, 3: ‘X’, 4: ‘X’}
(d) {0: ‘0’, 1: ‘1’, 2: ‘2’, 3: ‘3’, 4: ‘4’}
Answer: (b)

Question. What will be the output of the following Python code snippet?
x = {"jack":40, "henry":45}
print("jack" in x)

(a) True
(b) False
(c) None
(d) Error
Answer: (a)

Question. What will be the output of the following Python code?
x={"x":1,"y":2,"z":3}
y=dict(zip(x.values(),x.keys()))
print(y)

(a) {1: 'x', 2: 'y', 3: 'z'}
(b) An exception is thrown
(c) {‘x’: ‘y’: ‘z’: }
(d) {1: ‘x’, 2: ‘y’, 3: ‘z’}
Answer: (a)

Question. What will be the output of the following Python code snippet?
import collections
x=collections.Counter([3,3,4,4,4,5])
y=collections.Counter([3,3,4,5,5])
print(x|y)

(a) Counter({4: 4, 3: 3, 5: 3})
(b) Counter({4: 3, 3: 2, 5: 2})
(c) Counter({4: 3})
(d) Counter({5: 3})
Answer: (b)

Question. What will be the output of the following Python code snippet?
x={}
x['x']=2
x['y']=[3,4,5]
print(x)

(a) {'x': 2, 'y': [3, 4, 5]}
(b) Exception is thrown
(c) {‘x’: [2], ‘y’: 3}
(d) {‘y’: [2], ‘x’: [3]}
Answer: (a)

Question. What will be the output of the following Python code snippet?
t = {1:'J', 2:'K', 3:'L'}
t = {}
print(len(t))

(a) 0
(b) None
(c) An exception is thrown
(d) 3
Answer: (a)

Question. What will be the output of the following Python code?
f={}
print(f.fromkeys([2,3,4],"check"))

(a) Syntax error
(b) “check”
(c) {2: 'check', 3: 'check', 4: 'check'}
(d) {2:None,3:None,4:None}
Answer: (c)

Question. What will be the output of the following Python code?
x={1:"P",2:"Q",3:"R"}
x.clear()
print(x)

(a) None
(b) { None:None, None:None, None:None}
(c) {1:None, 2:None, 3:None}
(d) { }
Answer: (d)

Question. If b is a dictionary, what does any(b) do?
(a) Returns True if any key of the dictionary is true
(b) Returns False if dictionary is empty
(c) Returns True if all keys of the dictionary are true
(d) Method any() doesn’t exist for dictionary
Answer: (a)

Question. What will be the output of the following Python code snippet?
import collections
x=collections.Counter([2,2,3,4])
y=collections.Counter([2,3,3,4,4,4])
print(x&y)

(a) Counter({2: 15, 4: 1, 3: 1})
(b) Counter({2: 1, 3: 1, 4: 1})
(c) Counter({4: 2})
(d) Counter({4: 1})
Answer: (b)

Question. What will be the output of the following Python code snippet?
x = {}
x[1] = 1
x['1'] = 2
x[1]=x[1]+1
count = 0
for f in x:
    count += x[f]
print(count)

(a) 1
(b) 2
(c) 4
(d) Error, the keys can’t be a mixture of letters and numbers
Answer: (c)

Question. What will be the output of the following Python code snippet?
x = {}
x[2] = 2
x['2'] = 3
x[2.0]=5
count = 0
for f in x:
    count += x[f]
print(count)

(a) 8
(b) 6
(c) 5
(d) An exception is thrown
Answer: (a)

Question. What will be the output of the following Python code snippet?
x={1:"P",2:"Q",3:"R"}
del x

(a) method del doesn’t exist for the dictionary
(b) del deletes the values in the dictionary
(c) del deletes the entire dictionary
(d) del deletes the keys in the dictionary
Answer: (c)

Question. What will be the output of the following Python code snippet?
import collections
y=collections.Counter([3,3,4,5,5,5])
print(y.most_common(2))

(a) Counter({5: 4, 4: 4, 3: 2})
(b) {3:2}
(c) [(5, 3), (3, 2)]
(d) {4:3}
Answer: (c)

Question. What will be the output of the following Python code?
count={}
count[(2,3,5)] = 6
count[(5,3,2)] = 8
count[(2,3)] = 7
count[(5,3,2)] = 3
tot = 0
for f in count:
    tot=tot+count[f]
print(len(count)+tot)

(a) 25
(b) 17
(c) 19
(d) Tuples can’t be made keys of a dictionary
Answer: (c)

Question. What will be the output of the following Python code?
x={1:"P",2:"Q",3:"R"}
y={4:"S",5:"T"}
x.update(y)
print(x)

(a) {1: 'P', 2: 'Q', 3: 'R', 4: 'S', 5: 'T'}
(b) Method update() doesn’t exist for dictionaries
(c) {1: ‘P’, 2: ‘Q’, 3: ‘R’}
(d) {4: ‘S’, 5: ‘T’}
Answer: (a)

Question. What will be the output of the following Python code snippet?
numbers = {}
letters = {}
comb = {}
numbers[2] = 90
numbers[3] = 9
letters[5] = 'A'
comb['Numbers'] = numbers
comb['Letters'] = letters
print(comb)

(a) Error, dictionary in a dictionary can’t exist
(b) ‘Numbers’: {2: 90, 3: 9}
(c) {'Numbers': {2: 90, 3: 9}, 'Letters': {5: 'A'}}
(d) {‘Numbers’: {2: 90}, ‘Letters’: {5: ‘A’}}
Answer: (c)

Question. What will be the output of the following Python code?
x={}
x[3]=2
x[2]=[3,4,5]
print(x[2][2])

(a) [3,4,5]
(b) 5
(c) 3
(d) An exception is thrown
Answer: (b)

Question. What will be the output of the following Python code snippet?
import collections
x=collections.Counter([2,2,3,4,4,5,5,5])
print(x)

(a) {2,3,4,5}
(b) Counter({5, 4, 3, 2})
(c) Counter({5: 3, 2: 2, 4: 2, 3: 1})
(d) {5: 3, 2: 2, 4: 2, 3: 1}
Answer: (c)

Question. What will be the output of the following Python code?
f=dict()
f[1]

(a) An exception is thrown since the dictionary is empty
(b) ‘ ‘
(c) 1
(d) Error
Answer: (d)

Question. What will be the output of the following Python code snippet?
f={1:"X",2:"Y",3:"Z"}
print(f.setdefault(3))

(a) {1: ‘X’, 2: ‘Y’, 3: ‘Z’}
(b) Z
(c) {1: 3, 2: 3, 3: 3}
(d) No method called setdefault() exists for dictionary
Answer: (b)

Question. Which of the following is not a declaration of the dictionary?
(a) {1: ‘A’, 2: ‘B’}
(b) dict([[1,”A”],[2,”B”]])
(c) {1,”A”,2”B”}
(d) { }
Answer: (c)

Question. Suppose x = {“jack”:30, “henry”:35}. To obtain the number of entries in dictionary which command do we use?
(a) x.size()
(b) len(x)
(c) size(x)
(d) x.len()
Answer: (b)

Question. What will be the output of the following Python code?
x={2:6,3:4,4:5}
x.pop(3)
print(x)

(a) {2: 6}
(b) {2: 6, 4: 5}
(c) Error, syntax error for pop() method
(d) {2: 6, 3: 4}
Answer: (b)

Question. What will be the output of the following Python code snippet?
x1 = {"jack":30, "john":35}
x2 = {"jack":355, "john":35}
print(x1 == x2)

(a) True
(b) False
(c) None
(d) Error
Answer: (b)

Question. Suppose x = {“jack”:30, “henry”:35}, to delete the entry for “jack” what command do we use?
(a) x.delete(“jack”:30)
(b) x.delete(“jack”)
(c) del x[“jack”]
(d) del x(“jack”:30)
Answer: (c)

Question. Which of the statements about dictionary values if false?
(a) More than one key can have the same value
(b) The values of the dictionary can be accessed as dict[key]
(c) Values of a dictionary must be unique
(d) Values of a dictionary can be a mixture of letters and numbers
Answer: (c)

Question. What will be the output of the following Python code?
x={'Y':3,'X':5,'Z':7}
print(sorted(x))

(a) ['X', 'Y', 'Z']
(b) [‘Y’,’Z’,’X’]
(c) [3,5,7]
(d) [7,5,3]
Answer: (a)

Question. What will be the output of the following Python code snippet?
f={1:"P",2:"Q",3:"R"}
f.setdefault(4,"S")
print(f)

(a) {1: 'P', 2: 'Q', 3: 'R', 4: 'S'}
(b) Error
(c) None
(d) [1,2,3,4]
Answer: (a)

Question. What will be the output of the following Python code?
x={1:"P",2:"Q",3:"R"}
y=x.copy()
y[2]="S"
print(x)

(a) {1: 'P', 2: 'Q', 3: 'R'}
(b) {1: ‘P’, 2: ‘S’, 3: ‘R’}
(c) Error, copy() method doesn’t exist for dictionaries
(d) “None” is printed
Answer: (a)

Practice MCQs for Strings, List, Tuple, Dictionary, Module

Download Multiple Choice Questions: Strings, List, Tuple, Dictionary, Module ( )

Test your conceptual understanding of Strings, List, Tuple, Dictionary, Module with these targeted multiple-choice questions. Designed in alignment with the latest NCERT curriculum for , these problem sets build accuracy and prepare students for objective exams.

Concept Clarification for Strings, List, Tuple, Dictionary, Module

Each question includes structured solution keys mapped directly to standard NCERT textbooks, helping students evaluate their reasoning and correct mistakes early in their revision.

Additional Study Resources for

Explore our broader library of printable assignments, chapter notes, and mock tests designed to support continuous revision and secure higher marks in NCERT assessments.

FAQs

Where can I access latest Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01?

You can get most exhaustive Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01 for free on StudiesToday.com. These MCQs for are updated for the 2026-27 academic session as per examination standards.

Are Assertion-Reasoning and Case-Study MCQs included in the [current-page:node:field_subject] [current-page:node:field_class] material?

Yes, our Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01 include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the paper is now competency-based.

How do practicing [current-page:node:field_subject] MCQs help in scoring full marks in [current-page:node:field_class] exams?

By solving our Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01, students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the .

Do you provide answers and explanations for Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01?

Yes, MCQs for have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused exams.

Can I practice these [current-page:node:field_subject] [current-page:node:field_class] MCQs online?

Yes, you can also access online interactive tests for Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 01 on StudiesToday.com as they provide instant answers and score to help you track your progress in .