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

Download NCERT MCQs for : Strings, List, Tuple, Dictionary, Module

Explore reliable objective questions for Strings, List, Tuple, Dictionary, Module tailored for learners. Utilizing these multiple-choice formats ensures thorough preparation and strengthens problem-solving speed for upcoming school assessments.

Chapter-wise Objective Questions: Strings, List, Tuple, Dictionary, Module

Access the complete set of multiple-choice questions for Strings, List, Tuple, Dictionary, Module below. This focused format allows students to isolate specific topics for thorough review and uninterrupted practice alongside official NCERT textbooks.

Question. What will be the output of the following Python code?
\(x1 = \{"jack":30, "john":35\}\)
\(x2 = \{"jack":355, "john":35\}\)
\(print(x1 > x2)\)
(a) True
(b) False
(c) Error
(d) None
Answer: (c)

Question. What will be the output of the following Python code?
\(f=\{\}\)
\(print(all(f))\)
(a) { }
(b) False
(c) True
(d) An exception is thrown
Answer: (c)

Question. What will be the output of the following Python code?
\(import\ collections\)
\(f=dict()\)
\(f=collections.defaultdict(lambda: 7)\)
\(print(f[4])\)
(a) 4
(b) 0
(c) 7
(d) An exception is thrown
Answer: (c)

Question. What will be the output of the following Python code?
\(x=\{f: f*f\ for\ f\ in\ range(5)\}\)
\(print(x)\)
(a) {0: 0, 1: 1, 2: 4, 3: 9, 4: 16}
(b) {0: 0, 1: 1, 4: 4, 9: 9, 4: 16}
(c) {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
(d) Dictionary comprehension doesn’t exist
Answer: (a)

Question. What will be the output of the following Python code?
\(x=\{1:"P",2:"Q",3:"R"\}\)
\(print(x.get(7,6))\)
(a) Error, invalid syntax
(b) P
(c) 7
(d) 6
Answer: (d)

Question. Which of the following statements create a dictionary?
(a) d = {}
(b) d = {“jack”:30, “peter”:35}
(c) d = {30:”jack”, 35:”peter”}
(d) All of the mentioned
Answer: (d)

Question. What will be the output of the following Python code?
\(import\ collections\)
\(f=collections.OrderedDict((str(p),p)\ for\ p\ in\ range(3))\)
\(print(f)\)
(a) {‘2’:2, ‘0’:0, ‘1’:1}
(b) OrderedDict([('0', 0), ('1', 1), ('2', 2)])
(c) An exception is thrown
(d) ' '
Answer: (b)

Question. Which of these about a dictionary is false?
(a) The values of a dictionary can be accessed using keys
(b) The keys of a dictionary can be accessed using values
(c) Dictionaries aren’t ordered
(d) Dictionaries are mutable
Answer: (b)

Question. What will be the output of the following Python code snippet?
\(total=\{\}\)
\(def\ insert(items):\)
\(if\ items\ in\ total:\)
\(total[items]\ +=\ 1\)
\(else:\)
\(total[items]\ =\ 1\)
\(insert('Mango')\)
\(insert('Pen')\)
\(insert('Mango')\)
\(print(len(total))\)
(a) 3
(b) 2
(c) 1
(d) 0
Answer: (b)

Question. What will be the output of the following Python code snippet?
\(f = \{"peter":50, "henry":55\}\)
\(print(f["peter"])\)
(a) 55
(b) 50
(c) peter
(d) henry
Answer: (b)

Question. What will be the output of the following Python code?
\(x=\{2:6,3:4,4:5\}\)
\(print(x.pop(4,9))\)
(a) 3
(b) 5
(c) 4
(d) Too many arguments for pop() method
Answer: (b)

Question. What will be the output of the following Python code?
\(import\ collections\)
\(x=dict()\)
\(x=collections.defaultdict(int)\)
\(print(x[1])\)
(a) 1
(b) 0
(c) An exception is thrown
(d) ‘ ‘
Answer: (b)

Question. If a is a dictionary with some key-value pairs, what does a.popitem() do?
(a) Removes an arbitrary element
(b) Removes all the key-value pairs
(c) Removes the key-value pair for the key given as an argument
(d) Invalid method for dictionary
Answer: (a)

Question. What will be the output of the following Python code snippet?
\(t = \{1:'J', 2:'K', 3:'L'\}\)
\(del\ t[2]\)
\(t[2] = 'M'\)
\(del\ t[3]\)
\(print(len(t))\)
(a) Error as the key-value pair of 1:’A’ is already deleted
(b) 0
(c) 2
(d) 1
Answer: (c)

Question. What will be the output of the following Python code snippet?
\(f = \{"jack":30, "john":35\}\)
\(print(list(f.keys()))\)
(a) [“jack”:30, “john”:35]
(b) ['jack', 'john']
(c) (“jack”, “john”)
(d) (“jack”:30, “john”:35)
Answer: (b)

Question. What will be the output of the following Python code snippet?
\(d = \{"jack":30, "henry":35\}\)
\(print(d)\)
(a) “jack”, 30, 35, and “henry”
(b) {'jack': 30, 'henry': 35}
(c) “jack” and “henry”
(d) 30 and 35
Answer: (b)

Question. What will be the output of the following Python code snippet?
\(d=\{1:"X",2:"Y",3:"Z"\}\)
\(for\ a,b\ in\ d.items():\)
\(print(a,b,end="\ ")\)
(a) 1 X 2 Y 3 Z
(b) 1 2 3
(c) X Y Z
(d) 1:”X” 2:”Y” 3:”Z”
Answer: (a)

Question. Which of the following isn’t true about dictionary keys?
(a) More than one key isn’t allowed
(b) Keys must be immutable
(c) Keys must be integers
(d) When duplicate keys encountered, the last assignment wins
Answer: (c)

Question. What will be the output of the following Python code snippet?
\(F=\{1:"X",2:"Y",3:"Z"\}\)
\(print(F.get(1,4))\)
(a) 1
(b) 4
(c) X
(d) Invalid syntax for get method
Answer: (c)

Question. What will be the output of the following Python code?
\(f=\{1:"X",2:"Y",3:"Z"\}\)
\(for\ i\ in\ f:\)
\(print(i,end="\ ")\)
(a) 1 2 3
(b) ‘X’ ‘Y’ ‘Z’
(c) 1 ‘X’ 2 ‘Y’ 3 ‘Z’
(d) Error, it should be: for i in a.items():
Answer: (a)

Question. What will be the output of the following Python code?
\(x=\{1:"P",2:"Q",3:"R"\}\)
\(print(x.items())\)
(a) dict_items([(1, 'P'), (2, 'Q'), (3, 'R')])
(b) Syntax error
(c) dict_items([(1,2,3)])
(d) dict_items([(‘P’), (‘Q’), (‘R’)])
Answer: (a)

Question. Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.extend([34, 5])?
(a) [3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
(b) [1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
(c) [25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
(d) [1, 3, 4, 5, 20, 5, 25, 3, 34, 5]
Answer: (a)

Question. Let list1 = [1, 3, 2, 4, 5, 2, 1, 0], What is list1[-1]?
(a) 3
(b) 5
(c) 1
(d) 0
Answer: (d)

Question. Let list1 = [0.5 * a for a in range(0, 4)], list1 is ________
(a) [0, 1, 2, 3]
(b) [0, 1, 2, 3, 4]
(c) [0.0, 0.5, 1.0, 1.5]
(d) [0.0, 0.5, 1.0, 1.5, 2.0]
Answer: (c)

Question. Let list1 = [1, 3, 2, 4, 5, 2, 1, 0], What is list1[:-1]?
(a) 0
(b) [1, 3, 2, 4, 5, 2, 1]
(c) [1, 3, 2, 4, 5, 2]
(d) [1, 3, 2, 4, 5, 2, 1, 0]
Answer: (b)

Question. What Will be The output Of the following code snippet?
\(def\ x(value, values):\)
\(v = 1\)
\(values[0] = 33\)
\(y = 3\)
\(v = [1, 2, 3]\)
\(x(y, v)\)
\(print(y, v[0])\)
(a) 1 1
(b) 1 33
(c) 3 1
(d) 3 33
Answer: (d)

Question. Let list1 = [1, 3, 2, 4, 5, 2, 1, 0], Which of the following is correct?
(a) print(list1[0])
(b) print(list1[:2])
(c) print(list1[:-2])
(d) print(list1[4:6])
Answer: (a)

Question. list1 = [11, 2, 23] and list2 = [2, 11, 23], list1 == list2 is ________
(a) True
(b) False
Answer: (b)

Question. "Welcome to Python".split() is ________
(a) ["Welcome", "to", "Python"]
(b) ("Welcome", "to", "Python")
(c) {"Welcome", "to", "Python"}
(d) "Welcome", "to", "Python"
Answer: (a)

Question. Let list1 = [2, 3, 4], What is list1 * 2?
(a) [2, 6, 4]
(b) [2, 4, 3, 2, 4]
(c) [2, 3, 4, 2, 3, 4]
(d) [2, 3, 4, 4, 3, 2]
Answer: (c)

Question. Let list1 = [3, 4, 5, 18, 5, 22, 1, 2], what is len(list1)?
(a) 6
(b) 7
(c) 8
(d) 5
Answer: (c)

Question. __________ creates a list.
(a) list1 = list()
(b) list1 = []
(c) list1 = list([12, 4, 4])
(d) All of the mentioned
Answer: (d)

Question. What is the output when we execute list(“hello”)?
(a) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
(b) [‘hello’]
(c) [‘llo’]
(d) [‘olleh’]
Answer: (a)

Question. Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?
(a) [3, 4, 5, 20, 5, 25, 1, 3]
(b) [1, 3, 3, 4, 5, 5, 20, 25]
(c) [3, 5, 20, 5, 25, 1, 3]
(d) [1, 3, 4, 5, 20, 5, 25]
Answer: (c)

Question. To insert 5 to the third position in list1, use _______.
(a) list1.insert(3, 5)
(b) list1.insert(2, 5)
(c) list1.add(3, 5)
Answer: (b)

Download Chapter MCQs: Strings, List, Tuple, Dictionary, Module

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

Explore reliable practice questions for Strings, List, Tuple, Dictionary, Module tailored for learners. Use these multiple-choice formats to evaluate preparedness and strengthen problem-solving skills.

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

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

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

You can get most exhaustive Python Strings, List, Tuple, Dictionary, Module MCQs with Answers Set 06 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 06 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 06, 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 06?

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 06 on StudiesToday.com as they provide instant answers and score to help you track your progress in .