You are on page 1of 6

EXCEL PUBLIC SCHOOL, MYSURU

ANNUAL EXAMINATION – FEBRUARY/MARCH 2024

Class: XI Marks: 70
SUBJECT: COMPUTER SCIENCE (083) TIME: 3 HOURS

General Instructions:
 Please check This Question Paper contains 35 questions.
 The paper is divided into 5 Sections- A, B, C, D and E.
 Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
 Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
 Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
 Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
 Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
 All programming questions are to be answered using Python Language only.

Ques Marks
Question
No
SECTION A
1. State True or False: 1
Software is a set of instructions written to achieve the desired tasks and are
mainly categorised as system software, programming tools and application
software.
2. _________ is used to increase the speed of CPU. 1
a. RAM b. ROM c. CACHE d. BIOS
3. A software that has been developed specifically for a single person, company, 1
or organization.
a. Utility software c. Application Software
b. System software d. Tailor-Made Software
4. Find the invalid identifier from the following. 1
a. Std11 b. _11Std c. Std_11 d. 11_Std
5. The octal equivalent of 1110101100 is 1
a. 7260 b. 1654 c. 1652 d. 7264
6. The base values of binary, octal and hexadecimal are 1
a. 1, o and X respectively.
b. 4, 8 and 16 respectively.
c. 2, 8 and 16 respectively.
d. 1, 8 and 16 respectively.
7. Which of the following methods cannot be performed on Tuples data type in 1
Python?
a. Slicing.
b. Iteration.
c. Unpacking and packing.
d. Update.

Page 1 of 6
8. Which one of the following is correct? 1
a. In python, a dictionary can have two same keys with different values.
b. In python, a dictionary can have two same values with different keys
c. In python, a dictionary can have two same keys or same values but
cannot have two same key-value pair
d. In python, a dictionary can neither have two same keys nor two same
values.
9. What possible outputs(s) are expected to be displayed on screen at the time of 1
execution of the program from the following code? Also specify the maximum
values that can be assigned to each of the variables Lower and Upper.

import random
AR=[20,30,40,50,60,70]
Lower =random.randint(1,3)
Upper =random.randint(2,4)
for K in range(Lower, Upper +1):
print (AR[K],end='#')

a. 40#50#60# b. 30#40#50# c. 20#40#50#60# d. 30#40#50#60#


10. Which gate is known as the universal gate? 1
a. NAND b. OR c. AND d. NOR
11. Identify the output of the following Python statements. 1
y=1
for x in range(1, 10, 2):
y += x + 2
print(y)
a. 36 b. 30 c. 25 d. 40
12. break and continue, both are jump statements in Python. (True / False) 1
13. Which function can increase the number of elements of a list by more than one? 1
a. append() b. extend() c. insert() d. pop ()
14. SAAS stands for __________. 1
b. System as a Solution c. Software as a solution.
c. System as a Service d. Software as a Service.
15. ___________ is a kind of cyber-crime where the attacker gains access to the 1
computer and blocks the user from accessing, usually by encrypting the data.
a. Ransomware c. Hacking
b. Phishing d. Identity Theft
16. Cookies is a kind of a virus. (True /False) 1
17. ___________ mode of the browser won't save your browsing history, cookies, 1
and site data on the device.
a. Incognito b. VPN c. Private d. Safe
18. Information Technology Act, 2000 and Indian Penal Code, 1860 provides 1
protection from ____________.
a. child protection c. child safety
b. information protection d. child pornography protection

Page 2 of 6
SECTION B
19. Identify the category (system, application, programming tool) of the following 2
software:
a. Compiler
b. Assembler
c. Ubuntu
d. Text editor
20. What are tokens in python? 2
21. Write the output for the below code. 2
t = 'I love python'
for ch in t[2:7]:
print ('Welcome')
22. Give the output of the following. 2
a. num1 = 24 // 4 // 2
print(num1)
b. print(10 != 9 and 20 >= 20)
c. num1 = 4, num2 = 3, num3 = 2
num1 += num2 + num3
print (num1)
d. print(int('3.142'))
23. You are planning to go for a vacation. You surfed the Internet to get 2
information for the following queries:
a) Weather conditions
b) Availability of air tickets and fares
c) Places to visit
d) Best hotel deals
Which of your above mentioned actions might have created a digital footprint
and How?

24. What possible outputs(s) are expected to be displayed on screen at the time of 2
execution of the program from the following code? Also specify the maximum
values that can be assigned to each of the variables Lower and Upper.

import random
AR=[20,30,40,50,60,70]
Lower =random.randint(1,3)
Upper =random.randint(2,4)
for K in range(Lower, Upper +1):
print (AR[K],end='#')

40#50#60# b. 30#40#50# c. 20#40#50#60# d. 30#40#50#60#


25. Write the difference between for loop and while loop. Give syntax and example 2
for each.

Page 3 of 6
SECTION C
26. Expand the following. 3
a. FOSS
b. IPR
c. CCL
d. FSF
e. OSI
f. OSS
27. Figure out problem with the following code and correct the code to get a proper 3
output from line 1 to 8. Justify your answer.

1. s1='Hello'
2. s2='Learning Python'
3. n1=100
4. n2=2
5. print(s1+s2)
6. print(s2*n2)
7. print(s1+n1)
8. print(s2*s1)

28. Rewrite the following code in Python after removing all syntax error(s). Underline 3
each correction done in the code.
value=30
for VAL in range(0,Value)
If val%4==0:
print (VAL*4)
Elseif val%5==0:
print (VAL+3)
else print(VAL+10)

29. Write a program with a user defined function to count the number of times a 3
character (passed as an argument) occurs in the given string.

30. a. _______usually granted for inventions. When granted, the owner gets an 3
exclusive right to prevent others from using, selling, or distributing the
protected invention.
b. ___________includes any visual symbol, word, name, design, slogan, label,
etc.,
c. _________ grants legal rights to creators for their original works like
writing, photograph, audio recordings, video, sculptures, architectural
works, computer software, and other creative works like literary and artistic
work.

Page 4 of 6
SECTION D
31. Write a Python program to accept percentage of a student and display its grade 4
accordingly as per the marks mentioned below.
Marks Grade
>=90 A
>=75 B
>=60 C
>=35 D
<35 E

32. Consider a tuple, color=('red','blue','yellow','orange','green'). 1+1+2


a. Write the output for print(max(color)).
b. Method to sort the tuple color.
c. Replace ‘blue’ with ‘cyan’.
SECTION E
33. a. What is cyber safety? 5
b. What rights does copyright give the owner?
c. Name any four common social networking sites.
d. What is cyber stalking?
e. List at least five social issues created by computer.
34. a. What are the core data types in Python? Explain with a block diagram. 3+2
b. What are the similarities and differences between string and a list?
35. Anita works as a receptionist at a school. She has to note down the number of 5
visitors visiting to school every day. She decided to write a program to keep a
log of names with their contact number and pretty print the details whenever
required.
Help her in completing her code by filling in the blanks from #a to #e.

_________ # a
contacts={}
a=1
while a==1:
print('Enter 1 to add new contact')
print('Enter 2 to view all contacts')
print()
opt=int(input('Enter option 1 to add, 2 to view and 3 to exit'))
if opt ==1:
N=_______________ # b
C=_______________ # c
contacts[ ____ ] _____ # d

if opt ==2:
print(json.______(contacts,indent=5)) # e

if opt ==3:
break

Page 5 of 6
Page 6 of 6

You might also like