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 9

41.
Which of the following statement is true for extend() list method?

a. adds element at last
b. adds multiple elements at last
c. adds element at specified index
d. adds elements at random index

 

42.
The statement del l[1:3] do which of the following task?

a. deletes elements 2 to 4 elements from the list
b. deletes 2nd and 3rd element from the list
c. deletes 1st and 3rd element from the list
d. deletes 1st, 2nd and 3rd element from the list

 

43.
If l=[11,22,33,44], then output of print(len(l)) will be

a. 4
b. 3
c. 8
d. 6

 

44.
Which of the following method is used to delete element from the list?

a. del()
b. delete()
c. pop()
d. All of these

 

45.
What will be the output of following code:
txt=”Term 1″
print(txt*2)

a. Term 1 Term 2
b. Term 1Term 1
c. Term 1 2
d. TTeerrmm 11