Sample Paper 3 Class XI Annual Exam CS

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Sample Paper 3 Annual Exam, 2022-23

Subject: Computer Science(083)


Time: 3:00 Hours Class 11 Max. Marks: 70
General Instructions
1. This question paper has 7 pages.
2. This question paper contains five sections, Section A to E.
3. All questions are compulsory.
4. Section A has 18 questions carrying 01 mark each.
5. Section B has 07 Very Short Answer questions carrying 02 marks each.
6. Section C has 05 Short Answer type questions carrying 03 marks each.
7. Section D has 03 Long Answer type questions carrying 05 marks each.
8. Section E has 02 questions carrying 04 marks each.
9. All programming questions are to be answered in Python Language only.

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
7. Which of the following is not a valid relational operator?
a) != c) <=
b) += d) ==
8. Identify the symbol is used to write a single line comment in python?
a) / c) //
b) % d) #
9. What will be the value of variable a when loop is terminated?
a=20
for i in range(10,-1,-2):
a-=a-2
print(a)
a) -2 c) -1
b) 0 d) 2
10. Dhyana wants to check the more than two conditions in python program.
Suggest her a control structure that helps her to accomplish her tasks.
a) Simple if c) if-elif-else
b) If-else d) nested if
11. Observe the given code and select an appropriate output:
a='Computer Science is Science of Computers'
w=a.split(‘Sci’)
print(a[1])
a) Science is c) Computer
b) ence of Computers d) ence is
12. Hriday has created a tuple in python:
T=(5,10,15)
Now he wants add an element 20 at the end of tuple next to 15. Which of
the following statement is correct for him?
a) T = T + 40 c) T=T+(40,)
b) T.append(40) d) Not possible
13. Identify incorrect python tuple declaration?
a) (1,2,3) b) 1,2,3,4 c) (1,) d) (1)

Page 2
of 7
14.The Indian IT ACT is amended in :
a) 2000 c) 2010
b) 2008 d) 2002
15. While using different apps and websites, it is asking our personal
information. What will they do with our data afterwards taking them?
a) They just save data for their records
b) It is compulsory to give information for using apps and websites
c) They are asking for reward user in future
d) Looking to run targeted advertisements on user’s computers
16. Which of the following digital footprint is created without user’s consent?
a) Active Digital Footprint c) Massive Digital Footprint
b) Passive Digital Footprint d) Inactive Digital Footprint
17 and 18 are ASSERTION AND REASONING based questions. Mark the correct
choice as
(A) Both (A) and (R) are true and (R) is the correct explanation (A)
(B) Both (A) and (R) are true and R is not the correct explanation (A)
(C) (A) is True but (R) is False
(D) (A) is false but (R) is True
17. Consider following dictionaries: xi22={‘CS’:’Mr.

Sanjay’,’IP’:’Mrs. Hemanigini’} xi23={‘IP’:’Mrs.

Hemanigini’,’CS’:’Mr. Sanjay’}

print(xi22==xi23)

Assertion(A): Print statement returns True.

Reasoning(R): Dictionaries are unorder set of key:value pairs.

18. L=[23,24,25]

L[3]=27

Assertion(A): It adds 27 to the end of list.

Reasoning(R): List value can be added using functions only not by index.

Page 3
of 7
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
24. What is eavesdropping? What is phishing?
OR
What do you mean by spam? What is WORM?
25. What is trademark? How it is used to protect the material?

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
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
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”)

i. Write a statement to import the required module to compute power


ii. Write a statement to accept floating point value for mass
iii. Write a statement to compute c as speed of light as given formula. Use
a function to compute the power.
iv. Write a statement to compute the energy as e = mc2

Page 7
of 7

You might also like