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 10

46.
What will be the output of:
txt=”SQP2021″
if txt.isalnum()==True:
print(“Term 1 sample paper is out now”)
else:
print(“Term 1 sample paper is not out till now”)

a. Term 1 sample paper is not out till now
b. Term 1 sample paper is out now
c. SQP2021
d. Error

 

47.
What will be the output of the following
statement given:
txt=”term 1. sample paper 2021″
print(txt.capitalize())

a. term 1. sample paper 2021
b. Term 1. Sample Saper 2021
c. Term 1. sample paper 2021
d. Term 1. Sample Paper 2021

 

48.
Which of the following statement prints output as ‘B’?

a. char(66)
b. ord(‘B’)
c. char(66)
d. chr(66)

 

49.
Which of the following statement(s) is/are correct?
a. Tuples can have only integer elements.
b. Tuples can have only string elements.
c. Tuples can have various types of elements.
d. Tuples can either integer or string, but not both at once.

 

50.
Which of the following statement creates a tuple?

a. t=[1,,2,3,4]
b. t={1,2,3,4}
c. t=<1,2,3,4>
d. t=(1,2,3,4)