Professional Documents
Culture Documents
cs23 - Grade 11-Python I
cs23 - Grade 11-Python I
CLASS: XI MARKS: 30
SUBJECT: COMPUTER SCIENCE
I. Answer the following (5*1 =5)
x = 10
y=5
for i in range(x-y * 2):
print (" % ", i)
11.Predict the output of the following code fragments:
c=0
for x in range(10):
for y in range(5):
c += 1
print (c)
IV. Answer the Following (2*5=10)
12.Write a program to print one of the words negative, zero, or positive, according to
whether variable x is less than zero, zero, or greater than zero, respectively.
13.Write a program that returns True if the input number is an even number, False
otherwise.