You are on page 1of 6

KAMAL PUBLIC SR.SEC.

SCHOOL

Annual Examination, 2020 - 2021


Computer Science (083)

Class -XI
Time:3 Hrs M.M: 70

General Instructions:

1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line. Attempt any 15
questions.
b. Section – II has two case studies questions. Each case study has 4 case-based subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
a. Section-I is short answer questions of 2 marks each in which two questions internal options
have.
b. Section-II is long answer questions of 3 marks each in which two questions have internal
options.
c. Section-III is very long answer questions of 5 marks each in which one question has internal
option.
6. All programming questions are to be answered using Python Language only

Question Part-A Marks


No. allocated
Section - I
Select the most appropriate option out of the options given for each question
or to be answered in one word or one line. Each question carries 1 mark. (15x1=15)

1 Which of the following can be used as valid variable identifier(s) in Python? 1

New.file, _amount, For, 2numbers,Symbols#

2 IDLE is the abbreviation of . 1

3 Identify and write the name of the module to which the following functions belong: 1

(i) ceil() (ii) randint()

4 Find the output from the following Python code: 1

>>>List1 = list ('Welcome')

>>>print(List1)

Page 1 of
5
5 The _____function can append a list of elements to a list 1

6 Which of the following function will always return a list? 1


a) max()
b) min()
c) sort()
d) sorted()
7 Write the output of the given python code : 1
tpl1 =(10, 12, 14, 20, 22, 24, 30, 32, 34 )
seq= tpl1[3:7]
print(seq)

Find the identity operator from the following:


8 1
(iv) ==
(i) % (ii) is (iii) in
Identify the valid declaration of L:
9 1
L = [1, 23, „hi‟, 6].
(i) list (ii) dictionary (iii) array (iv) tuple

Which is the correct form of declaration of dictionary?


10 1
(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‟]

11 are pre-defined words that have a special meaning in Python. 1

Find the output of the following:


12 1
for i in range(5,3,-1):
print(i)
Write the type of tokens from the following:
13 1
(i) if (ii) roll_no
Find the output of the following: for i in 'initial':
14 1
if(i == 'i'):
pass

else:
print(i)

15 Which of the following is not a relational operator in Python: 1

(i) < (ii) > (iii) ^ (iv) ==

Page 2 of
5
What will be the value of b after the execution of the following code?
16 1
a) >>> a=50
b) >>> b=a+20
c) >>> b=a+35
d) >>> b-=a
e) >>> print(a,b)
Which of the following is False regarding tuple in Python? 1
17
a) tuples are enclosing the elements in parentheses (())
b) tuples are mutable
c) Elements of the tuple must have a defined order.
d) tuples are immutable.

Which of the following is used to hold the running program instructions? 1


18
(i) Primary Storage (ii) Virtual Storage
(iii) Internal Storage (iv) Minor Device
Which of the following are not valid string in Python? 1
19
(i) “Hello” (ii) „Hello‟
(iii) “Hello‟ (iv) {Hello}
Boolean expression Y+YZ =? 1
20
(i) Y (ii) Z (iii) 1 (iv) 0

What will be the output of below Python code? 1


21
list1=[1,2,3,5,4,6,2]
list1.pop(2)
print(sum(list1))
Section - II
4x2=8
Each case study has 4 case-based subparts.

22
You got the below shown SMS from your bank querying a recent transaction.
Bank has noticed that your ATM card was recently used at XYZ online store
26 Nov,2018 at 1:00 pm for Rs 2000. If the transaction was not carried by
you,urgently give your pin number 0n 0313336665.
Answer the following
a) a) Will you SMS your pin number to the given contact number.
b) b) Will you call the bank helpline number to recheck the validity of the SMS
received
c) c) Define Phishing.Give examples of phishing.
d) d) Define cyber bullying.

23 The record of a student (Name, Roll No., Marks in five subjects and percentage of
marks) is stored in the following list:

stRecord = ['Raman','A-36',[56,98,99,72,69], 78.8]

Write Python statements to retrieve the following information from the list stRecord.
a) Percentage of the student

Page 3 of
5
b) Marks in the fifth subject

Maximum marks of the student


c)

Roll no. of the student


d)
PART-B
SECTION-1
What are the basic function of an operating system? 2
24
What do you mean by memory devices? Explain RAM and ROM. 2
25
Find and write the output of the following Python program code : 2
26
>>>print (3**2 + 18/9 - 3**4+1)
>>>print (12%5*3+(2*6) // 4)
Differentiate between Compiler and Interpreter 2
27
What is the difference between a keyword and an identifier? 2
28
OR
Name the Primitive data types in python. Explain mutable and immutable data types in
python
1x4=4
29 Convert the following base of number system:
(i) (1010100)2 )10=(…..)2

(ii) (3674)8 (…….)2

(iii) (266)10= (……)8

(iv) (9F2)16 = (… )2
Predict the output of following code snippet: 2
30
(i) x, y=20,60 (ii) a, b=12,13
y, x, y=x, y-10, x+10 c, b=a*2,a/2
print(x, y) print(a, b, c)
Write the corresponding python expression for the following mathematical expression 2
31 a) a2+b2+c2
b) 2-ye2y+4y
Which list built in function is best suited for the following operations? 2
32 a. Arrange the numbers in a list
b. Delete an element from a particular position in the list.
PART-B
SECTION-II

Rewrite the following program after finding and correcting syntactical errors and 2
33 underlining it.
a) a, b = 0
if (a = b)
a +b = c
print z
else
print b

Define Iterative and conditional statements 1


b)
Page 4 of
5
Convert the following for loop into while loop: 3
34 x=1
for i in range(20,10,-2):
if i%5==0:
x=x+10
else:
x=x+5
print(x)
3
35 Fin Find and write the output of the following Python code: 2
def display():
s="EXAM20@ccom")
l = len(s)
m=""
for i in range(0,l):
if s[i].isupper():
m=m+s[i].lower()
elif s[i].isalpha():
m=m+s[i].upper()
elif s[i].isdigit():
m=m+"$"
else:
m=m+"*"
print(m)
display()

Write a program to display the following series by using for loop.


36
a) 1,3,5,7,9….till N nos 3
b) 2,4,6,8,10…till N nos
PART-B
SECTION-III
Write a program to accept 10 numbers in a list and do the following:
37 5
a) Search a particular number
b) Find out the largest number(Without using In built in function)
xyz shop deals with Garments. Write a program to input the amount and calculate total
38 amount paid by the customer after levying the GST. 5
Total amount to be paid=amount+Gst
amount GST Rate
amount<= 10000 5%
amount>30000 15%
amount>40000 20%
amount>50000 25%

39 Write a function that checks whether an input number is a palindrome or not. [Note: A
number or a string is called palindrome if it appears same when written in reverse order
also. For example, 12321 is a palindrome while 123421 is not a palindrome] 5
OR
Write a program to store Employee information like Ecode,Name and Salary in a dictionary
and display the information on the basis of Ecode.
Page 5 of
5
Page 6 of
5

You might also like