Professional Documents
Culture Documents
SAMPLE PAPER-V Class XI (Computer Science) Periodic Test-I
SAMPLE PAPER-V Class XI (Computer Science) Periodic Test-I
Computer Science
Periodic Test - 1
Topics covered: getting started with python, python fundamentals, data handling
Max marks: 50 Time: 90 mins
1) What are the limitations of python programming language? Or what are the
minus points of python programming language? 2m
2) What is the difference between interactive mode and script mode in Python? 2m
3) Which of the following is not valid strings in Python? 2m
(a) “Hello” (b) 'Hello' (c) “Hello' (d) 'Hello” (e){Hello}
4) What is the difference between a keyword and an identifier? 2m
5) What is None literal in Python? 2m
6) What are literal in Python? How many literals are allowed in Python? 2m
7) Identify the errors and rewrite the corrected code 2m
Name =”Rehman’
Print (“Greetings!!!’)
print(“Hello”, name)
(1) √a2+b2+c2
(2) P+ q/(r+s)4
(3) |e2-x|
(4) 2-ye2y+4y
12) What will be the output produced by these? 2m
(A) 14//14
(B) 14%4
(C) 14.0/4
(D) 14.0//4
13) What will be the output of the following? 2m
print(Len(str(17//4)))
print(Len(str(17/4)))
14) What will be the output of the following code? Explain the reason behind output
of every line. 4m
A) 5 < 10 or 5
B) 5 < (10 or 5)
C) 5 < (5 or 10)
D) 5 < 5 or 10
15) WAP to read base, width and height of a parallelogram and calculate it’s area and
perimeter. 4m
16) What are immutable and an mutable typed? List immutable and mutable types of
python. 4m
17) Identify the types of following literals? 2m
(1) 23.789
(2) 23789
(3) True
(4) ‘True’
18) What do you understand by block/ code block/ suite in Python? 2m
Periodic test – 1
Answer Key/ Marking scheme
1) What are the limitations of python programming language? Or what are the
minus points of python programming language? 2m
Ans: following are the limitations of python programming language
a) It is not fastest Programming Language
b) It has lesser libraries than C, Java, Perl
c) It is not strong on type-binding
d) Not easily convertible
2) What is the difference between interactive mode and script mode in Python? 2m
Ans: In Interactive mode, instructions are given in front of Python prompt
(e.g. >>> or IN[ ]: Prompts) in python shell. Python carries out the given instruction
and shows the result there itself.
In script mode, instructions are stored in a file generally with .py extension and are
executed together in one go as a unit. The saved instructions are known as Python
Script or python program.
3) Which of the following is not valid strings in Python? 2m
(a) “Hello” (b) 'Hello' (c) “Hello' (d) 'Hello” (e){Hello}