You are on page 1of 6

ANNUAL EXAMINATION 2021-22

QUESTION PAPER
Subject: Computer Science (083) Grade: XI
Marks: 40 Time: 1.5 Hrs.
Name: ___________ Date: 01-02-2022

GENERAL INSTRUCTIONS:
• This question paper contains two parts - A and B. Each part is compulsory.
• Both Part A and Part B have internal choices.
• Part-A has 2 sections:
o Section – I comprises short answer questions, to be answered in one word or one line, attempt any
10 out of the 12 questions given.
o Section – II has one case study-based question and one question has an internal choice.
• Part-B comprises descriptive type questions.
• Part-B has three sections:
o Section – I comprises short answer questions of 2 marks each, in which two questions have internal
choice.
o Section – II comprises long answer questions of 3 marks each, in which one question has an internal
choice.
o Section – III comprises a very long answer type question of 5 marks and it has an internal choice.
• All programming questions are to be answered using Python Language only.
Part A
Section I
Attempt any 10 questions from Question Nos. 1 to 12
Select the most appropriate option out of the options given for each question.
1 Which of the following is a valid membership operator in Python? [1]
a) and
b) not
c) is
d) in
2 Predict the output of the following code: [1]
print("corona virus" [2: 5:3])
a) on
b) ra
c) rn
d) r
3 __________ refers to an email that appears to have originated from one source, though it was sent from another [1]
source.
a) Email Bombing
b) Email Spoofing
c) Email Spamming
d) Email scanning
4 Which function should be used to change ‘health is wealth’ to ‘Health Is Wealth’? [1]
a) capitalize()
b) title()
c) upper()
d) lower()
Page 1 of 6
5 Predict the output of the following Python statements: [1]
out=""
x=-5
while x<0:
x=x+1
out=out+str(x)+" "
print(out)
a) -4 -3 -2 -1 0
b) 5 4 3 2 1
c) -5 -4 -3 -2 -1
d) No output, as it is an infinite loop.
6 Which of the given statement will not get printed while running the following code? [1]
for letter in "Python":
if letter=='h':
continue
print("Current Letter: "+letter)
a) Current Letter : P
b) Current Letter : t
c) Current Letter : o
d) Current Letter : h
7 Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop (1)? [1]
a) [3, 4, 5, 20, 5, 25, 1, 3]
b) [1, 3, 3, 4, 5, 5, 20, 25]
c) [3, 5, 20, 5, 25, 1, 3]
d) [1, 3, 4, 5, 20, 5, 25]
8 What is the value of the following expressions? [1]
>>> 8/4/2 , 8/(4/2)
a) (1.0, 1.0)
b) (4.0, 1.0)
c) (1.0, 4.0)
d) (4.0, 4.0)
9 Which among the following is not an abnormal symptom that is observed, when you click on any malicious [1]
software?
a) Automatic opening of new tabs in the browser
b) Automatic update of antivirus
c) Changes in the home page of a website
d) Popping up of new search engines on your browser
10 The find(‘J’) function over a string ‘I love my India’ will return___________. [1]
a) 0
b) False
c) None
d) -1
11 Predict the output of the following Python statements: [1]
L = [“Hello”, ”and”, ”Bye”]
print(L[-1][-1])

a) [Bye]
b) [e]
c) e
d) None of the above

Page 2 of 6
12 Choose the correct option for the following statements: [1]
Statement 1: Intellectual Property (IP) is a category of property that includes intangible creations of the human
intellect.
Statement 2: Intellectual Property Right (IPR) does not include trade secrets and moral rights.
a) Both statements 1 and 2 are correct
b) Both statements 1 and 2 are incorrect
c) Statement 1 is correct, but 2 is incorrect
d) Statement 2 is correct, but 1 is incorrect
Section II
13 A school offers wireless facility (WiFi) to the Computer Science students of class XI. For online communication,
the network security staff of the school has a registered URL – “schoolwifi.edu”.
The following email was circulated to all the Computer Science students on 17 th September, 2021. The email
claimed that the password of the students was about to expire. Instructions were given to go to the URL and to
renew their password within 24 hours. Observe the email carefully and answer the given questions:

(i) Do you find any discrepancy in this email? Mention, if any. [1]
(ii) What will happen if the student clicks on the given URL? [1]
(iii) Is the email an example of cybercrime? If yes, then specify which type of cybercrime. Justify your
answer. [1]
(iv) Stealing of a password could lead to another type of cybercrime. Identify the same and explain. [1]

14 Identify the following: [1]

A person who purposely posts derogatory messages, sarcastic or insulting comments with the aim of targeting
people online.
OR
The act of harassing, demeaning, embarrassing or defaming someone using modern technologies, like internet,
cell phones, instant messages or social networks.
Part B
Section I
15 Predict the output of the following code: [2]
(i) T=(12,31,4,67,45)
T=40,
print(sum(T),max(T))

(ii) K=((3+4)-2)**2<=0
print(K)
16 Differentiate between Eavesdropping and Phishing. [2]
OR
Define the following:
(i) Super Cookies
(ii) User Agent

Page 3 of 6
17 Write a Python program to merge two Python dictionaries. [2]
Expected output
a={‘a’:100,’b’:20} # dict 1
b={‘x’:30, ‘y’:20} # dict 2
c={‘a’:100,’b’:20, ‘x’:30, ‘y’:20} # merged dictionary

OR

Write a Python program to obtain the tuple from the user and display the element with the highest value and its
index. (Note: Use eval method to accept elements in tuple)
Expected Output
Enter a tuple: 34,5,6,-3,9.5,20
The element with the highest value in tuple 34 is present at index 0

18 Krishna is looking for his dream job and has some conditions. His priority location is Mumbai. If the location of [2]
the job is Mumbai, then he is ready to take up the job immediately. He loves Delhi and would take a job there, if
he is paid over ₹40,000 a month. He hates Chennai and demands at least ₹1,00,000 to work there. In any other
location, he is willing to work for a minimum of ₹60,000 a month. The following code shows his basic strategy for
evaluating a job offer:
Code:

On the basis of the above code, choose the right statement which will be executed when different inputs for pay
and location are given.
(i) Input: location = "Chennai”, pay = 50000
a) Statement 1
b) Statement 2
c) Statement 3
d) Statement 4
(ii) Input location = "Delhi", pay = 50000
a) Statement 6
b) Statement 5
c) Statement 4
d) Statement 3

19 Write the differences between the sort () and the sorted () function, with examples. [2]

Page 4 of 6
20 Predict the output of the following: [2]
Find the output
x = “hello world”
y = ”good morning”
print(x[:2], x[-2:])
print(x[2:-3], x[-4:-2])

21 A given code is expected to run till the value of variable ‘i’ is less than the variable ‘x’ and to display the new [2]
value of ‘i’ every time. Observe the code given below and find the logical/syntax errors (if any). Correct the code
by re-writing the code and underlining the corrections:
x=5
i == 1
while (i< = x) :
i =+ 2
print(“Output is”, ”ï”)

SECTION II
22 Write a program to print the following pattern [3]
*
**
***
****
*****
****
***
**
*
OR
Write a program to print the following pattern
A
BC
DEF
GHIJ
KLMNO

23 Shyam and Sania are working with dictionaries in Python. They came across this code based on Python [3]
dictionary. Can you help them by traversing the code and finding the output of the statements 1 - 6.
d={ 1: 'Amit',2:'Sumit',5: 'Kavita'}
print(len(d)) #1
print(d.get(2)) #2
d.pop(5)
print(d) #3
d.clear()
print(d) #4
a=list(d.items())
print(a) #5
print(len(a)) #6

SECTION III

24 Write a program to read the email IDs of ‘n’ number of students and store them in a tuple. Create two new [5]
tuples, one to store only the usernames from the email IDs and the second to store domain names from the
email ids. Print the original, as well as both the two new tuples, at the end of the program. [Hint: You may use
the function split()]
Sample Input:
How many email ids you want to enter?:2

Page 5 of 6
Enter the valid email ID: reshu.goyal@thekalyanischool.com
Enter the valid email ID: pooja.arora@thekalyanischool.com
Expected Output:
The email ids in the original tuple are:
('reshu.goyal@thekalyanischool.com', 'pooja.arora@thekalyanischool.com')

The username in the email ids are:


('reshu.goyal', 'pooja.arora')

The domain name in the email ids are:


('thekalyanischool.com', 'thekalyanischool.com')

OR
Write a Python program to sort the list of words, according to their number of characters, in descending order.

Sample input:
txt=” computers and mathematics are very easy and interesting subjects for me”

Expected output:
['interesting', 'mathematics', 'computers', 'subjects', 'very', 'easy', 'for', 'are', 'and', 'and', 'me']

__________________________________________________

Page 6 of 6

You might also like