Edzy
AI TutorResourcesToolsCompareBuy
SearchDownload AppLogin
Edzy

Edzy for Classes 6-12

Edzy is a personal AI tutor for CBSE and State Board students, with curriculum-aligned guidance, practice, revision, and study plans that adapt to each learner.

  • Email: always@edzy.ai
  • Phone: +91 96256 68472
  • WhatsApp: +91 96256 68472
  • Address: Sector 63, Gurgaon, Haryana

Follow Edzy

Browse by Class

  • CBSE Class 6
  • CBSE Class 7
  • CBSE Class 8
  • CBSE Class 9
  • CBSE Class 10
  • CBSE Class 11
  • CBSE Class 12
Explore the CBSE resource hub

Explore Edzy

  • Study Resources
  • Free Study Tools
  • Best Apps for Board Exams
  • Edzy vs ChatGPT
  • About Us
  • Why We Built Edzy
  • Blog
  • CBSE AI Tutor

Support & Legal

  • Help & FAQs
  • Accessibility
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Cookie Policy
  • Site Directory

© 2026 Edzy. All rights reserved.

Curriculum-aligned learning paths for students in Classes 6-12.

CBSE
Class 11
Computer Science
Computer Science
Tuples and Dictionaries

Question Bank

Practice Hub

Question Bank: Tuples and Dictionaries

This chapter covers Tuples and Dictionaries, important data structures in Python that help in organizing and storing data.

Structured practice
Question Practice

Practice chapter questions in a cleaner, exam-ready flow

Start with curated question sets, move into full module views when needed, and keep discovering related practice without losing your place in the chapter.

Question Bank - Tuples and Dictionaries

View all (121)
Q1.

What is a tuple in Python?

Single Answer MCQ
Q-00068022
View explanation
Q2.

How are elements in a tuple accessed?

Single Answer MCQ
Q-00068024
View explanation
Q3.

What will be the output of the following code: (10, 20, 30)[1]?

Single Answer MCQ
Q-00068026
View explanation
Q4.

Which of the following statements about tuples is true?

Single Answer MCQ
Q-00068028
View explanation
Q5.

What must be done to create a single-element tuple?

Single Answer MCQ
Q-00068030
View explanation
Q6.

What type of error will occur if you try to change an element in a tuple?

Single Answer MCQ
Q-00068032
View explanation
Q7.

Given the tuple: tuple1 = (1, 2, 3), what will tuple1[2] return?

Single Answer MCQ
Q-00068034
View explanation
Q8.

How can multiple values be assigned to a tuple within one statement?

Single Answer MCQ
Q-00068035
View explanation
Q9.

Which of the following will correctly create an empty tuple?

Single Answer MCQ
Q-00068036
View explanation
Q10.

What will the output be of the following code: tuple = (1, 2, 3); print(type(tuple))?

Single Answer MCQ
Q-00068037
View explanation
Q11.

What does the expression (1, 2) + (3, 4) return?

Single Answer MCQ
Q-00068038
View explanation
Q12.

Which function will give the number of elements in a tuple?

Single Answer MCQ
Q-00068039
View explanation
Q13.

How would you represent a nested tuple in Python?

Single Answer MCQ
Q-00068040
View explanation
Q14.

Can a tuple contain another tuple as an element?

Single Answer MCQ
Q-00068041
View explanation
Q15.

What keyword is used to define a tuple in Python?

Single Answer MCQ
Q-00068042
View explanation
Q16.

Which method can check if an element exists in a tuple?

Single Answer MCQ
Q-00068043
View explanation
Q17.

What is the correct way to create a tuple with a single element?

Single Answer MCQ
Q-00068044
View explanation
Q18.

How do you access the third element in the tuple (5, 10, 15, 20)?

Single Answer MCQ
Q-00068045
View explanation
Q19.

What will happen if you try to change an item in the tuple (1, 2, 3)?

Single Answer MCQ
Q-00068046
View explanation
Q20.

What is the result of the expression (1, 2) + (3, 4)?

Single Answer MCQ
Q-00068047
View explanation
Q21.

Which of the following statements is true about tuples?

Single Answer MCQ
Q-00068048
View explanation
Q22.

What does the expression (10, 20, 30)[-1] return?

Single Answer MCQ
Q-00068049
View explanation
Q23.

Given the tuple (1, 2, 3, [4, 5]), what will be the result after executing this code: tuple[3][1] = 10?

Single Answer MCQ
Q-00068050
View explanation
Q24.

What will happen if a tuple is defined as seq = 1, 2, 3?

Single Answer MCQ
Q-00068051
View explanation
Q25.

Which of the following indicates the concatenation of multiple tuples correctly?

Single Answer MCQ
Q-00068052
View explanation
Q26.

What will be the output of the expression len((1, 2, 3))?

Single Answer MCQ
Q-00068053
View explanation
Q27.

What will happen if you attempt to use the slice operation tuple[0:2] on the tuple (5, 6, 7, 8)?

Single Answer MCQ
Q-00068054
View explanation
Q28.

How do you check the data type of a tuple variable named my_tuple?

Single Answer MCQ
Q-00068055
View explanation
Q29.

Which of the following operations on tuples is not allowed?

Single Answer MCQ
Q-00068056
View explanation
Q30.

What will the following code snippet output? tuple1 = (1, 2); tuple1 += (3, 4); print(tuple1)

Single Answer MCQ
Q-00068057
View explanation
Q31.

How do you correctly assign a single element to a tuple?

Single Answer MCQ
Q-00068058
View explanation
Q32.

What will 'seq = 1, 2, 3' create in Python?

Single Answer MCQ
Q-00068059
View explanation
Q33.

Which command is used to access the third element in the tuple 'my_tuple = (10, 20, 30, 40)'?

Single Answer MCQ
Q-00068060
View explanation
Q34.

What happens if you attempt to change an element of a tuple?

Single Answer MCQ
Q-00068061
View explanation
Q35.

What is the correct syntax to assign values from a tuple to multiple variables?

Single Answer MCQ
Q-00068062
View explanation
Q36.

Given the tuple 'data = (5, 10, 15)', what will happen if you try to execute 'data[0] = 20'?

Single Answer MCQ
Q-00068063
View explanation
Q37.

If you have the tuple (1, 2, 3) and you want to swap two variables, how would you do it?

Single Answer MCQ
Q-00068064
View explanation
Q38.

When creating a tuple, which of the following is NOT a valid tuple?

Single Answer MCQ
Q-00068065
View explanation
Q39.

How can you combine two tuples '(a, b)' and '(c, d)' in Python?

Single Answer MCQ
Q-00068066
View explanation
Q40.

What will be the output of 'print((5, 15, 25)[1])'?

Single Answer MCQ
Q-00068067
View explanation
Q41.

If 'mixed = (1, 'hello', 3.14)' what would 'mixed[1]' return?

Single Answer MCQ
Q-00068068
View explanation
Q42.

What will happen if you execute 'my_tuple = (1, 2, 3); print(my_tuple[5])'?

Single Answer MCQ
Q-00068069
View explanation
Q43.

Which of the following statements about tuples is false?

Single Answer MCQ
Q-00068070
View explanation
Q44.

What will be the result of the expression 't = (1, 2, 3) * 2'?

Single Answer MCQ
Q-00068071
View explanation
Q45.

What is the output of the following code snippet: 'print(len((1, 2, 3, 4)))'?

Single Answer MCQ
Q-00068072
View explanation
Q46.

Given the tuple 'numbers = (10, 20, 30)', what is the result of 'sum(numbers)'?

Single Answer MCQ
Q-00068073
View explanation
Q47.

What is a nested tuple?

Single Answer MCQ
Q-00068074
View explanation
Q48.

How do you access the second element of a nested tuple?

Single Answer MCQ
Q-00068075
View explanation
Q49.

Which of the following is an example of a valid nested tuple?

Single Answer MCQ
Q-00068076
View explanation
Q50.

How can you determine the number of elements in a nested tuple?

Single Answer MCQ
Q-00068077
View explanation
Q51.

What does the len() function return when applied to a tuple?

Single Answer MCQ
Q-00068078
View explanation
Q52.

What will happen if you try to modify an element inside a nested tuple?

Single Answer MCQ
Q-00068079
View explanation
Q53.

Which built-in function would you use to find the largest element in a tuple?

Single Answer MCQ
Q-00068080
View explanation
Q54.

Given the tuple st = ((101, 'Aman', 98), (102, 'Geet', 95), (103, 'Sahil', 87), (104, 'Pawan', 79)), what is st[1][1]?

Single Answer MCQ
Q-00068081
View explanation
Q55.

What is the result of tuple([1, 2, 3])?

Single Answer MCQ
Q-00068082
View explanation
Q56.

What is the type of a nested tuple?

Single Answer MCQ
Q-00068083
View explanation
Q57.

If you have tuple1 = (1, 2, 3, 4, 5), what does tuple1[1:4] return?

Single Answer MCQ
Q-00068084
View explanation
Q58.

What will be the output of the following code snippet? st = ((1, 2), (3, 4)); print(st[0])

Single Answer MCQ
Q-00068085
View explanation
Q59.

Which method can you use to count the occurrences of an element in a tuple?

Single Answer MCQ
Q-00068086
View explanation
Q60.

Identify what will be the result of 'len(((1, 2), (3, 4), (5, 6)))'.

Single Answer MCQ
Q-00068087
View explanation
Q61.

What will tuple1.index(10) return if tuple1 = (1, 2, 10, 3)?

Single Answer MCQ
Q-00068088
View explanation
Q62.

If you have a tuple (1, 2, (3, 4)), what would be the result of accessing (1, 2, (3, 4))[2][1]?

Single Answer MCQ
Q-00068089
View explanation
Q63.

Which of the following statements will create an empty tuple?

Single Answer MCQ
Q-00068090
View explanation
Q64.

Which operation can you NOT perform on tuples?

Single Answer MCQ
Q-00068091
View explanation
Q65.

Which function would you use to sort the elements of a tuple into a list?

Single Answer MCQ
Q-00068092
View explanation
Q66.

In a nested tuple, how would you add an additional tuple as an element?

Single Answer MCQ
Q-00068093
View explanation
Q67.

Can the elements of a tuple be changed after its creation?

Single Answer MCQ
Q-00068094
View explanation
Q68.

In the tuple st = ((1, 2), (3, 4)), what does st[1][0] return?

Single Answer MCQ
Q-00068095
View explanation
Q69.

What will the expression tuple('Python') result in?

Single Answer MCQ
Q-00068096
View explanation
Q70.

What is the result of executing this code: tuple1 = ((1, 'a'), (2, 'b')); print(tuple1[0][1])?

Single Answer MCQ
Q-00068097
View explanation
Q71.

Using the statement seq = 1, 2, 3, what data type is seq treated as?

Single Answer MCQ
Q-00068098
View explanation
Q72.

Which of the following can be an element of a nested tuple?

Single Answer MCQ
Q-00068099
View explanation
Q73.

If you have tuple1 = (10, 20, 30, 40) and execute tuple1[::-1], what is the output?

Single Answer MCQ
Q-00068100
View explanation
Q74.

What will the following code print? tuple1 = (1, 'text', 3.4), print(tuple1.count('text'))?

Single Answer MCQ
Q-00068101
View explanation
Q75.

What is the primary data structure used to store key-value pairs in Python?

Single Answer MCQ
Q-00068102
View explanation
Q76.

Which of the following statements correctly creates a dictionary?

Single Answer MCQ
Q-00068103
View explanation
Q77.

What will be the output of dict = {'A': 1, 'B': 2}; dict['B']?

Single Answer MCQ
Q-00068104
View explanation
Q78.

Which of the following types can be used as a key in a dictionary?

Single Answer MCQ
Q-00068105
View explanation
Q79.

Which method can be used to retrieve all keys from a dictionary in Python?

Single Answer MCQ
Q-00068106
View explanation
Q80.

If you attempt to access a key that does not exist in a dictionary, what error will it raise?

Single Answer MCQ
Q-00068107
View explanation
Q81.

How can you add a new key-value pair to an existing dictionary?

Single Answer MCQ
Q-00068108
View explanation
Q82.

What is the result of the following code: dict = {'X': 10, 'Y': 20}; dict.get('Z', 0)?

Single Answer MCQ
Q-00068109
View explanation
Q83.

In Python, dictionaries maintain the order of items. What property ensures this?

Single Answer MCQ
Q-00068110
View explanation
Q84.

Which of the following can be a value in a dictionary?

Single Answer MCQ
Q-00068111
View explanation
Q85.

What will happen if you try to add a duplicate key to a dictionary?

Single Answer MCQ
Q-00068112
View explanation
Q86.

How do you remove a key-value pair from a dictionary?

Single Answer MCQ
Q-00068113
View explanation
Q87.

Which of the following statements about dictionary keys is true?

Single Answer MCQ
Q-00068114
View explanation
Q88.

What does the update() method do in a dictionary?

Single Answer MCQ
Q-00068115
View explanation
Q89.

How can you obtain a list of all the values in a dictionary?

Single Answer MCQ
Q-00068116
View explanation
Q90.

What is the syntax to create a tuple containing a single element?

Single Answer MCQ
Q-00068117
View explanation
Q91.

How can you access the first element of a tuple named 'data'?

Single Answer MCQ
Q-00068118
View explanation
Q92.

What will 'tuple1 = (1, 2, 3) + (4, 5)' evaluate to?

Single Answer MCQ
Q-00068119
View explanation
Q93.

Which statement is true about tuples?

Single Answer MCQ
Q-00068120
View explanation
Q94.

What error occurs when accessing an index that is out of range in a tuple?

Single Answer MCQ
Q-00068121
View explanation
Q95.

What is the output of 'my_tuple = (1, 2, (3, 4))' and 'print(my_tuple[2][0])'?

Single Answer MCQ
Q-00068122
View explanation
Q96.

How do you create a tuple from a comma-separated sequence without using parentheses?

Single Answer MCQ
Q-00068123
View explanation
Q97.

What will happen if you try to modify an element of a tuple directly, like 'tuple1[0] = 10'?

Single Answer MCQ
Q-00068124
View explanation
Q98.

How can you swap two variables using a tuple in a single statement?

Single Answer MCQ
Q-00068125
View explanation
Q99.

Which built-in function returns the number of elements in a tuple?

Single Answer MCQ
Q-00068126
View explanation
Q100.

In which scenario would you prefer using a tuple over a list?

Single Answer MCQ
Q-00068127
View explanation
Q101.

What would the result of 'print((1, 2) * 2)' be?

Single Answer MCQ
Q-00068128
View explanation
Q102.

If 'nested_tuple = ((1, 2), (3, 4))', how would you access the element '4'?

Single Answer MCQ
Q-00068129
View explanation
Q103.

How might you convert a list to a tuple?

Single Answer MCQ
Q-00068130
View explanation
Q104.

What is the outcome of 'tuple1 = (1, 2, 3) * 0'?

Single Answer MCQ
Q-00068131
View explanation
Q105.

What does it mean when we say dictionaries are mutable?

Single Answer MCQ
Q-00068145
View explanation
Q106.

Which of the following methods correctly adds a new item to an existing dictionary?

Single Answer MCQ
Q-00068146
View explanation
Q107.

When trying to modify an existing item's value in a dictionary, which line will successfully update a value?

Single Answer MCQ
Q-00068147
View explanation
Q108.

What will happen if you attempt to access a non-existent key in a dictionary?

Single Answer MCQ
Q-00068148
View explanation
Q109.

Which of the following is a correct way to check if a key exists in a dictionary?

Single Answer MCQ
Q-00068149
View explanation
Q110.

What is the effect of the command dict1['A'] = 1 if 'A' not in dict1 else dict1['A']?

Single Answer MCQ
Q-00068150
View explanation
Q111.

What will be the output of print(dict1.get('B', 0)) if 'B' is not a key in dict1?

Single Answer MCQ
Q-00068151
View explanation
Q112.

How can you remove an item from a dictionary by key?

Single Answer MCQ
Q-00068152
View explanation
Q113.

What will be printed after executing the following code: dict1 = {'X': 10}; print(dict1.get('Y', 5))?

Single Answer MCQ
Q-00068153
View explanation
Q114.

In Python dictionaries, how are the keys stored?

Single Answer MCQ
Q-00068154
View explanation
Q115.

If you print dict1.keys(), what do you get?

Single Answer MCQ
Q-00068155
View explanation
Q116.

Which statement is true regarding the 'in' operator for dictionaries?

Single Answer MCQ
Q-00068156
View explanation
Q117.

Which of the following methods is used to remove all items from a dictionary?

Single Answer MCQ
Q-00068157
View explanation
Q118.

What type of data structure is returned by dict1.items()?

Single Answer MCQ
Q-00068158
View explanation
Q119.

Why would you use a dictionary instead of a list?

Single Answer MCQ
Q-00068159
View explanation
Q120.

What would happen if you assign dict1['A'] = None and then print dict1?

Single Answer MCQ
Q-00068160
View explanation
Q121.

What is the output of dict1['B'] if dict1 is defined as dict1 = {'A': 1, 'B': 2}?

Single Answer MCQ
Q-00068161
View explanation
Learn Better On The App
One app for the full journey

The NCERT Companion

From planning to practice to revision, keep your full study workflow in one place.

Planning to practice
Everything connected

Faster access to practice, revision, and daily study flow.

Edzy mobile app preview