Class 12 : Review Of Python Basics

Home Page class 12 @ Python

Class 12 : Python

Python Basics
Data Types
String
List
Tuple
Dictionary
Flow of Execution
Mutable and Immutable Types
Type Casting

Class 12 : Python Revision MCQs

Revision Tour MCQs

CBSE Class 12 Revision Tour MCQs 12

56.
What will be output of following code:
t=(4,5,6,7,8,9,3,2,1)
print(t[5:-1])

a. (8,9,3,2,1)
b. (9,3,2)
c. (4,5,6,7)
d. (2,3,9)

 

57.
Dictionaries are also known as ________.

a. mappings
b. hashes
c. associatve arrays
d. all of the above

 

58.
Dictionaries are _________ type of python.

a. Mutable
b. Immutable
c. simple
d. complex

 

59.
Mr. Suboth is working with a dictionary in python for his project. He wants to display the key, value pair but confuse out of these statments, choose the correct statememt for him:

a. dict.values()
b. disct.keys()
c. dict.keysvalues()
d. dict.items()

 

60.
The fromkeys() method assigns ________ value to key in dictionary by default.

a. 0
b. None
c. Empty
d. Blank