Sample Paper 3 Class XI Annual Exam CS
Sample Paper 3 Class XI Annual Exam CS
Sample Paper 3 Class XI Annual Exam CS
com
Section –A
1. OMR stands for
a) Optical Mark Reader c) Optical Mark Reviewer
b) Optical Mark Recognition d) Optical Mark Representation
2. Which of the following is base of octal number system?
a) 7 c) 8
b) 2 d) 10
3. Which of the following is gate returns output as only 1 if all inputs are 1?
a) AND c) OR
b) EXOR d) NOR
4. ________ is an integrated tool with Anaconda allows to create a program
along with explanation and runs on browser.
a) Python Notebook c) PyCharm Editor
b) Jupyter Notebook d) Spyder Editor
5. Which of the following python distribution is designed by and for scientist,
engineers and data analysts?
a) Jupyter Notebook c) Spyder IDE
b) Python IDLE d) PyCharm IDE
6. Dhruv wants to compute power of n. Select appropriate statement for him:
a) n^2 b) n*2 c) n^^2 d) n**2
Page 1 of 7
Downloaded from www.tutorialaicsip.com
Page 2 of 7
Downloaded from www.tutorialaicsip.com
print(xi22==xi23)
18. L=[23,24,25]
L[3]=27
Reasoning(R): List value can be added using functions only not by index.
Page 3 of 7
Downloaded from www.tutorialaicsip.com
Section B
19. Convert the following binary numbers to as directed:
a) (1011011)16 c) (1010101)16
b) (11110011)8 d) (10010011)8
20. Prepare a truth table for the following equation:
a) (A+B)’C b) A’+B’C’
21. Pranjal has given following symbols and word to identify which types of
tokens are they, help her to identify them:
i. if iii. and
ii. r_no iv. ‘True’
22. Predict the output of following code:
NUMBER= [15,12,19,26,18]
for i in range (3,0,-1):
A=NUMBER[i]
print(A,end='#')
B=NUMBER[i-1]
print(B,end='@')
OR
Rewrite the following code after removing all syntax errors. Underline each
correction you have done in the code:
a=10
for v in range(a)
if v%10=0:
print(v//10)
else if v%8==0:
print(v//8)
else:
print(v//2)
23. Predict the output of the following code:
d={ }
d[1]=1
d['1']=2
d[1.0]=3
d.setdefault('1.0',4)
print(d)
Page 4 of 7
Downloaded from www.tutorialaicsip.com
Section C
26. Tejas is preparing for an interview for software developer. Help him by
explaining categories of different application software by supporting
examples.
27. Evaluate the expressions:
a) 5+5*10**2//4
b) 3*5-4**2
c) not (10<5) and (13>9) or (5==6)
OR
Write a program to enter a string and replace every occurrence of space
with #.
28. Write a program to create a list of 5 students and display the student
names ends with ‘e’.
Example:
L=[‘Dhruvee’,’Hetvee’,’Kane’,’Rakesh’]
The output will be: ‘Dhruvee’, ‘Hetvee’, ‘Kane’
OR
What do you mean by packing and unpacking of tuples? Illustrate answer
with example.
29. Write any three restrictions that needs be to keep in mind while creating a
dictionary.
30. Write any three points should be taken care while sitting for work in front
of computers.
Section D
31. Write algorithm and draw flow chart to check whether number is positive,
negative or zero.
Page 5 of 7
Downloaded from www.tutorialaicsip.com
OR
Write a program to program to enter a number until user press ‘n’ from
keyboard. Display the average of entered numbers after loop termination.
32. Write a program to create a list [‘a’,’bb’,’ccc’,…] and continues up to z.
OR
Write a python program to create a dictionary of having keys as product
name and price as values. Compute the bill and display the bill with required
details.
33. Explain following:
a) Software License b) GNU GPL c) CC d) FOSS e) Software Piracy
Section E
34. Observe the code given below to display binary equivalent number for
entered value. Complete the code by filling the gaps:
n=int(input("enter a three digit number:"))
b=0
i=0
____________ #Statement 1
___________ #Statement 2
___________ #Statement 3
___________ #Statement 4
i=i+1
print(“Binary Equivalent of ”,n,” is”,b) #Statement 5
i. Write Statement to start the iteration 1 – Statement 1 1
ii. Write a statement to get remainder for base value required for converting
number into binary – Statement 2 1
iii. Write a statement to add remainder multiplied by power of position of the
number - Statement 3 1
OR
Write the statement to get the value dividing by 2 – Statement 4
iv. Write print statement to print the message and equivalent binary number
as “Binary Equivalent of 3 is 0011” 1
Page 6 of 7
Downloaded from www.tutorialaicsip.com
35. Consider the code given below to compute energy through mass m
multiplied by the speed of light (c=3*108). Fill in the gaps as given in
statements.
import ___________ #Statement 1
m=_________________ #Statement 2
c= _____________ #Statement 3
e=_______________ #Statement 4
print(“Energy:”, e ,” Joule”)
Page 7 of 7