Professional Documents
Culture Documents
XI CS Question
XI CS Question
XI CS Question
CLASS XI
COMPUTER SCIENCE
OR
Write a program that takes an input from user and checks whether the number is prime
or not? (4)
( Fibonacci series : 0 1 1 2 3 5)
D. Consider the following code and find the errors: (2)
lower = 900
upper = 1000
print("Prime numbers between",lower,"and",upper,"are:")
for num in range(lower,upper + 1):
if num > 1
for i in range(2,num):
if (num % i) == 0:
break()
else:
print(num)
3) A. What are endless / Infinite Loops? Give an Example. (2)
B. Write a program to find sum of the series:
2 3 4 n
s=1+ x + x + x + x …..+ x (4)
C. What is the difference between identifiers and keywords? (3)
D. How to create multiline string in python. Example. (1)
E. Write down the difference between Compiler and Interpreter. (2)
4) A. Find the output of the following code: (3)
num = 12
for i in range(1, 11):
print(num,'x',i,'=',num*i)
B. Find the error/Errors from the following code: (4)