Professional Documents
Culture Documents
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='#')
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='#')
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
_________ # 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