CH - 1 - Class Test - Python Revision Tour
CH - 1 - Class Test - Python Revision Tour
CLASS TEST
Subject: Computer Science M.M. 20
Std: XII Time: 40 Minutes
General Instructions:
1. The Class test paper comprises one mark, two marks and three marks questions.
2. Attempt all questions.
a. 12.0
b. 13.0
c. 14.0
d. 15.0
CBSE/CT/XII/2223
Q6 Write the output of following: 1
x = "abcdef"
i = "a"
while i in x:
print(i, end = " ")
a. abcdef
b. abcde
c. bcde
d. infinite loop
II. Two marks questions.
Q1 What are tokens in python? How many types of tokens are allowed in 2
python? Exemplify your answer.
Q2 How are keywords different from identifiers? 2
Q3 What is the difference between del statement and pop ( )function. 2
Q4 Write the output of the following: 2
a=5
while a>0:
print (a)
a=a-1
III. Three marks questions.
Q1 Write a program to print the following pattern. 3
A
B C
D E F
G H I J
Q2 Write a program to accept a string and display string with capital 3
letter of each word. For example, if input string is: welcome to my
blog. Output string: Welcome To My Blog.
CBSE/CT/XII/2223