0% found this document useful (0 votes)
16 views

CH - 1 - Class Test - Python Revision Tour

1) The document is a class test paper for Computer Science with one mark, two mark, and three mark questions. 2) It contains 6 one mark questions testing concepts like identifiers, operators, tuples, dictionaries, and loops. 3) The two mark questions ask about tokens and keywords in Python, the difference between del and pop functions, and output of a while loop. 4) The three mark questions ask the student to write a program to print a letter pattern and capitalize the first letter of each word in a string.

Uploaded by

Baraca Lona
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

CH - 1 - Class Test - Python Revision Tour

1) The document is a class test paper for Computer Science with one mark, two mark, and three mark questions. 2) It contains 6 one mark questions testing concepts like identifiers, operators, tuples, dictionaries, and loops. 3) The two mark questions ask about tokens and keywords in Python, the difference between del and pop functions, and output of a while loop. 4) The three mark questions ask the student to write a program to print a letter pattern and capitalize the first letter of each word in a string.

Uploaded by

Baraca Lona
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PODAR INTERNATIONAL SCHOOL

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.

Q. No. Questions Marks


I. One mark questions.
Q1 Find the invalid identifier from the following: 1
a) MyName 
b) True 
c) Name2 
d) My_Name
Q2 Identify the valid arithmetic operator in Python from the following.  1
a) ? 
b) < 
c) ** 
d) and
Q3 Suppose a tuple T is declared as T = (10, 12, 43, 39), which of the 1
following is incorrect? 
a) print(T[1]) 
b) T[2] = -29 
c) print(max(T)) 
d) print(len(T))
Q4 Which of these about a dictionary is false?  1
a) The values of a dictionary can be accessed using keys 
b) The keys of a dictionary can be accessed using values 
c) Dictionaries aren’t ordered 
d) Dictionaries are mutable
Q5 Identify the output of the following Python statements. 1
x = [[10.0, 11.0, 12.0],[13.0, 14.0, 15.0]]
y = x[1][2]
print(y)

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

You might also like