SAMPLE PAPER-I
PRIODIC TEST –I
CLASS XI
SUBJECT –COMPUTER SCIENCE
MM 50 Time 1:30 Hrs.
All questions are compulsory
Programming Language: Python
Q 1 a) Convert 8MB to equivalent KB. [1]
b) What do you mean by ASCII code. [1]
c) Differentiate between RAM and ROM [2]
d) Convert the Following as Directed [2 X 4=8]
(i) (53)10=()2 (ii) (A4)16=()10
(iii) (79)8=()10 (iv) (11011)2=()10
e) Find out the Addition of the Following [3]
(10011)2+(11001)2=(?)2
f) Explain the Principal of Duality ,with Example. [2]
g) Draw the logic circuit from the following expression [2]
AB+A’C
h) Prove the following [2]
A+A’B=A+B
i) Minimise the following [2]
A+{A.(B.C)}
Q 2 a) What are the supported data types in Python? [2]
b) What are the key features of Python? [3]
c) How can the ternary operators be used in python? [2]
d) Which one of these is floor division? [1]
i) /
ii) //
iii) %
iv) None of the mentioned
e) What is the maximum possible length of an identifier? [1]
f) How will you convert a string to an integer in python? [1]
3 a) Write a program in Python to find out the Middle number among three numbers
[4]
b) Write a Program in Python to obtain the Grade of a student based on the following
criteria
[4]
Marks obtain Grade
Less than 33 D
33 to 44 C
45 to 59 B
60 and above A
c) Write a Program to Find out the Simple Interest (SI) [3]
d) Find out the output of the Following – [1.5X2=3]
x=20
x=x+5
x=x-10
print (x)
x,y=x-1,50
print (x,y)
e) Find out Errors (if any) from the following code and write corrected statement
[3]
if '1' != 1:
raise "someError"
else:
print("someError has not occured")
except "someError":
print ("someError has occured")
*****************************