Professional Documents
Culture Documents
2020-2021
CLASS : XI SUBJECT: COMPUTER SCIENCE (083)
TIME : 3 HRS. M.M.: 70
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one
line.
b. Section – II has two case studies questions. Each case study has case-based
sub-parts.
3. Part - B is Descriptive Paper.
4. Part- B has three sections
a. Section-I is short answer questions of 2 marks each .
b. Section-II is long answer questions of 3 marks each .
5. Section-III is very long answer questions of 5 marks each.
6. All programming questions are to be answered using Python or MySQL Language
only
Q. Part-A Marks
No. allocated
Section-I
Select the most appropriate option out of the options given or answer
in short for each question.
1 Identify the following logic gate. 1
2 All of the following are examples of real security and privacy threats 1
except:
a) Hackers
b) Virus
c) Spam
d) Worm
3 It is stealing ideas or creations of others. 1
a) Plagiarism
b) Intellectual Property Rights
c) Piracy
d) All of the above
(d) Specify the maximum values that can be assigned to each of the 1
variables FROM and TO.
17 Rewrite the following code in python after removing all syntax error(s). 2
Underline each correction done in the code.
#b=10
for K in range(0,#b)
IF k%4=0:
PRINT (K*4)
Othewise:
print K+3
18 Create the table Employee with the following data types: 2
Structure of the table : Employee
Field Type Null Key Defaul Extra
t
ID int(11) NO PRI
NAME varchar(20) NO
AGE int(11) NO
ADDRESS char(25) YES NULL
SALARY decimal(18,2) YES NULL
19 Which is the correct form of declaration of dictionary? 2
(i) Day={1:’monday’,2:’tuesday’,3:’wednesday’}
(ii) Day=(1;’monday’,2;’tuesday’,3;’wednesday’)
(iii) Day=[1:’monday’,2:’tuesday’,3:’wednesday’]
(iv) Day={1’monday’,2’tuesday’,3’wednesday’]
20 Which string method is used to implement the following: 2
1. To count the number of characters in the string.
2. To change the first character of the string in capital letter.
21 Differentiate between DDL and DML commands. 2
Section-II
22 Given a list 3
L1=[3,4.5,12,25.7,[2,1,0,5],88]
a) Which list slice will return [12,25.7,[2,1,0,5]
b) Which slice will return [2,1,0,5]
c) Which list slice will return[4.5,25.7,88]
23 Ms. Vidhi is a B.Tech 1st year student of IIT Mumbai and wanted to 3
develop a Binary search program in which she wants that user first enter a
list and the element to be searched and then program display “element
found”. You as a programmer help her in developing a Binary search
program.
24 Consider the following code fragment. What outputs will they produce? 3
dict={'Monalika':23.5,'Satakshi':21.5,'Vishesh':21,'Danish':19}
k="Monalika"
v=-1
if k in dict:
dict[k]=v
print(dict)
Section-III
26 Write a program in python to find sum of the following series 5
𝑥 𝑥2 𝑥3
S=1 + + + + ⋯ 𝑡𝑖𝑙𝑙 𝑛𝑡ℎ 𝑡𝑒𝑟𝑚𝑠
1 2 3
27 Write a program to find and display the sum of all the values which are 5
ending with 5 from the list . list ‘L’ should be enter by the user .
e.g list is
[35,50,5,10,70,66,13,25]
*****