Practice MCQs for Strings, List, Tuple, Dictionary, Module
Review structured MCQ sets for Strings, List, Tuple, Dictionary, Module. Built according to official NCERT guidelines, these downloadable questions support daily revision and core concept reinforcement.
Access Strings, List, Tuple, Dictionary, Module Questions and Solutions
View or download the dedicated Strings, List, Tuple, Dictionary, Module MCQ resource below. Practicing these 50 objective questions regularly builds familiarity with standard exam patterns and helps secure higher marks in final evaluations.
Question. What will be the output of the following Python statement?
"x"+"yz"
(a) x
(b) yz
(c) yzx
(d) xyz
Answer: (d)
Question. What will be the output of the following Python code snippet?
print('0pq'.isdigit())
(a) True
(b) False
(c) None
(d) Error
Answer: (b)
Question. What will be the output of the following Python code?
print("mn\top\tqr".expandtabs())
(a) mn op qr
(b) mnopqr
(c) mn\top\tqr
(d) mn op qr
Answer: (a)
Question. What will be the output of the following Python code snippet?
print('xyz'.islower())
(a) True
(b) False
(c) None
(d) Error
Answer: (a)
Question. Given a string example=”hello” what is the output of example.count(‘l’)?
(a) 2
(b) 1
(c) None
(d) 0
Answer: (a)
Question. What will be the output of the following Python code?
print("pqrpqrprpqq".endswith("pqq", 0, 2))
(a) 0
(b) 1
(c) True
(d) False
Answer: (d)
Question. Say s=”hello” what will be the return value of type(s)?
(a) int
(b) bool
(c) str
(d) String
Answer: (c)
Question. What will be the output of the following Python code snippet?
print('{:,}'.format('3334445556'))
(a) 3,334,445,556
(b) 333,444,555,6
(c) 3334445556
(d) Error
Answer: (d)
Question. What will be the output of the following Python code?
print('x Y'.isalpha())
(a) True
(b) False
(c) None
(d) Error
Answer: (b)
Question. What will be the output of the following Python code?
print("mnopqr".center(0))
(a) op
(b) mnopqr
(c) error
(d) none of the mentioned
Answer: (b)
Question. To check whether string s1 contains another string s2, use _______
(a) s1.__contains__(s2)
(b) s2 in s1
(c) s1.contains(s2)
(d) si.in(s2)
Answer: (a)
Question. What will be the output of the following Python code?
print("Python {0} and {1}".format(('faa', 'bin')))
(a) Python faa and bin
(b) Python (‘faa’, ‘bin’) and (‘faa’, ‘bin’)
(c) Error
(d) None of the mentioned
Answer: (c)
Question. What will be the output of the following Python code?
print("pqqrpqrprpqq".count('pqq', 0, 100))
(a) 2
(b) 0
(c) 1
(d) error
Answer: (a)
Question. Suppose s is “\t\tWorld\n”, what is s.strip()?
(a) \t\tworld\n
(b) \t\tWorld\n
(c) \t\tWORLD\n
(d) World
Answer: (d)
Question. What will be the output of the following Python code snippet?
print('pqrtvs'.replace('rs', '10'))
(a) pq1tvo
(b) pqrtvs
(c) pq1tvs
(d) pq12ts2
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('xy'.zfill(4))
(a) 00xy
(b) x00y
(c) xy00
(d) x0y0
Answer: (a)
Question. What will be the output of the following Python code snippet?
print('pqtv'.replace('rs', '10'))
(a) pqtv
(b) 10
(c) error
(d) none of the mentioned
Answer: (a)
Question. What will be the output of the following Python code?
example = "python"
example.rfind("n")
(a) 4
(b) 3
(c) 5
(d) 0
Answer: (c)
Question. What will be the output of the following Python code?
print("pqr XYZ".capitalize())
(a) pqr xyz
(b) PQR XYZ
(c) Pqr xyz
(d) Pqr Xyz
Answer: (c)
Question. What will be the output of the following Python code snippet?
print('mnopqropstop'.split('op', 2))
(a) ['mn', 'qr', 'stop']
(b) [‘mn’, ‘qropstop’]
(c) [‘qropstop’,‘mn’ ]
(d) none of the mentioned
Answer: (a)
Question. What will be the output of the following Python code snippet?
print('pqrs'.translate({'p': '2', 'q': '3', 'r': '4', 's': '5'}))
(a) pqrs
(b) 2345
(c) error
(d) none of the mentioned
Answer: (a)
Question. What will be the output of the following Python code?
print("Python {} and {}".format('fbb', 'bin'))
(a) Python {} and {}
(b) Python fbb and bin
(c) Error
(d) Python and
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('wxyz'.translate('w'.maketrans('wxy', 'xyz')))
(a) xyzz
(b) wxyz
(c) xzyz
(d) zxyz
Answer: (a)
Question. What will be the output of the following Python code?
print("S", end = ' ')
print("R", end = ' ')
print("Q", end = ' ')
print("P", end = ' ')
(a) SRQP
(b) S R Q P
(c) P Q R S
(d) p q r s
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('rs'.partition('rs'))
(a) ('rs')
(b) (")
(c) ('rs', ", ")
(d) ('', 'rs', '')
Answer: (d)
Question. What will be the output of the following Python code?
print('{0:.2}'.format(2/3))
(a) 0.677777
(b) 0.67
(c) 0.6777:.2
(d) Error
Answer: (b)
Question. What will be the output of the following Python code?
class Name:
def __init__(self, firstName, mi, lastName):
self.firstName = firstName
self.mi = mi
self.lastName = lastName
firstName = "Robin"
name = Name(firstName, 'F', "Smith")
firstName = "Jack"
name.lastName = "Roy"
print(name.firstName, name.lastName)
(a) Jack Roy
(b) Robin Roy
(c) Jack Smith
(d) Robin Smith
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('mnopqropstop'.split('op', -1))
(a) [‘mn’, ‘qr’, ‘st’]
(b) ['mn', 'qr', 'st', '']
(c) ('mn', 'qr', 'st',)
(d) ['mn', 'qr', 'st']
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('pen'.isidentifier())
(a) True
(b) False
(c) None
(d) Error
Answer: (a)
Question. What will be the output of the following Python code?
print("pqrstv".center())
(a) rs
(b) pqrstv
(c) error
(d) none of the mentioned
Answer: (c)
Question. What will be the output of the following Python statement?
print('black' 'berry')
(a) Error
(b) Output equivalent to print ‘black\berry’
(c) blackberry
(d) black berry
Answer: (c)
Question. What will be the output of the following Python code?
print("Python {name1} and {name2}".format(name1='faa', name2='bin'))
(a) Python faa and bin
(b) Python {name1} and {name2}
(c) Error
(d) Python and
Answer: (a)
Question. What will be the output of the following Python code?
print("abbcabcacabb".count('bb', 2))
(a) 2
(b) 0
(c) 1
(d) none of the mentioned
Answer: (c)
Question. What will be the output of the following Python code?
print('zyx'.maketrans('xyz', '234'))
(a) {120: 50, 121: 51, 122: 52}
(b) {97: 49, 98: 50, 99: 51}
(c) {100: 50, 101: 51, 102: 52}
(d) 234
Answer: (a)
Question. What will be the output of the following Python code?
print("efghij".find("gh") == "gh" in "efghij")
(a) True
(b) False
(c) Error
(d) None of the mentioned
Answer: (b)
Question. Suppose x is 6 and y is 4, x + y is same as ________
(a) x.__add(y)
(b) x.__add__(y)
(c) x.__Add(y)
(d) x.__ADD(y)
Answer: (b)
Question. What arithmetic operators cannot be used with strings?
(a) +
(b) -
(c) All of the mentioned
(d) *
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('{:$}'.format(2223334445))
(a) 2,223,334,445
(b) 222,333,444,5
(c) 2223334445
(d) Error
Answer: (d)
Question. What will be the output of the following Python code?
print("pqrpqrprpqq".endswith("pqq"))
(a) 1
(b) True
(c) 3
(d) 2
Answer: (b)
Question. What function do you use to read a string?
(a) input(“Enter a string”)
(b) eval(input(“Enter a string”))
(c) enter(“Enter a string”)
(d) eval(enter(“Enter a string”))
Answer: (a)
Question. What will be the output of the following Python code snippet?
print('{:#}'.format(3334445556))
(a) 3,334,445,556
(b) 333,444,555,6
(c) 3334445556
(d) Error
Answer: (c)
Question. What will be the output of the following Python code snippet?
print('PythonExercises'.istitle())
(a) True
(b) False
(c) None
(d) Error
Answer: (a)
Question. What will be the output of the following Python code snippet?
print('15'.isnumeric())
(a) True
(b) False
(c) None
(d) Error
Answer: (a)
Question. What will be the output of the following Python code?
class X:
def __init__(self, param):
self.o1 = param
class Y(X):
def __init__(self, param):
self.o2 = param
obj = Y(22)
print("%d %d" % (obj.o1, obj.o2))
(a) None None
(b) None 22
(c) 22 None
(d) Error is generated
Answer: (d)
Question. What will be the output of the following Python code?
example = "hello world"
print("%s" % example[4:7])
(a) w
(b) world
(c) he
(d) rl
Answer: (d)
Question. What will be the output of the following Python statement?
chr(ord('P'))
(a) P
(b) p
(c) Error
(d) b
Answer: (a)
Question. What will be the output of the following Python code snippet?
print('\f'.isspace())
(a) True
(b) False
(c) None
(d) Error
Answer: (a)
Question. What will be the output of the following Python code?
print("pqrstv".center(7, 1))
(a) 1pqrstv
(b) pqrstv1
(c) pqrstv
(d) error
Answer: (d)
Question. What will be the output of the following Python code?
class test:
def __init__(self, id):
self.id = str(id)
id = "144"
x = test(12)
print(x.id)
(a) 224
(b) Error
(c) 12
(d) None
Answer: (c)
Question. What will be the output of the following Python code?
print("pq\trs\ttv".expandtabs('+'))
(a) pq+rs+tv
(b) pq++++++++rs++++++++tv
(c) pq rs tv
(d) None of the mentioned
Answer: (d)
Question. What will be the output of the following Python code?
print('mnopqrstop'.partition('op'))
(a) (‘mn’, ‘op’, ‘qr’, ‘st’, ‘uv’)
(b) ('mn', 'op', 'qrstuv')
(c) (‘mnopqr’, ‘st, ‘uv’)
(d) error
Answer: (b)
Question. What will be the output of the following Python code?
print("xxyxyyxy".find("x"))
(a) 4
(b) 0
(c) Error
(d) True
Answer: (b)
Question. What will be the output of the following Python code snippet?
print('y@ 2'.islower())
(a) True
(b) False
(c) None
(d) Error
Answer: (a)
Question. If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
(a) obj.__str__()
(b) str(obj)
(c) print obj
(d) all of the mentioned
Answer: (d)
Question. What will be the output of the following Python statement?
chr(ord('p')+1)
(a) a
(b) q
(c) r
(d) Q
Answer: (b)
Question. What will be the output of the following Python code?
print("Python {1} and {0}".format('bin', 'fab'))
(a) Python bin and fab
(b) Python fab and bin
(c) Error
(d) None of the mentioned
Answer: (b)
Multiple Choice Questions (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
Cross-reference your completed choices with comprehensive NCERT solutions for to ensure absolute clarity across all sub-topics in this chapter.
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
You can get most exhaustive Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 02 for free on StudiesToday.com. These MCQs for are updated for the 2026-27 academic session as per examination standards.
Yes, our Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 02 include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the paper is now competency-based.
By solving our Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 02, students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the .
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.
Yes, you can also access online interactive tests for Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 02 on StudiesToday.com as they provide instant answers and score to help you track your progress in .