Grade 11 CS Term 2 QP 2024-25
Grade 11 CS Term 2 QP 2024-25
Date – Friday
Date-– February 21 ,2025
Grade -11 Time –3 Hours
Subject – COMPUTER SCIENCE Marks – 70
Subject Code – 065 No. of Pages –8
General Instructions:
1. Please check this question paper contains 37 questions.
2. All questions are compulsory. However, internal choices have been provided in some questions.
Attempt only one of the choices in such questions
3. The paper is divided into 5 Sections- A, B, C, D and E.
4. Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
5. Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
6. Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
7. Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
8. Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
9. All programming questions are to be answered using Python Language only.
10. In case of MCQ, text of the correct answer should also be written.
SECTION A
1
5 Evaluate the following expression and identify the correct answer. 1
16 - (5 - 2) * 3 + 2**3 * 2
a) 0
b) 47
c) 23
d) 20
11 If s="board Exam" 1
s.capitalize() = ____________________
2
12 Which of the following can add only one value to a list? 1
a) append()
b) extend()
c) add()
d) none of these
a) D
b) C
c) E
d) F
14 Anuj wrote the following code. How many times is the word 1
“Welcome” printed in the following code?
t = “i love python”
for ch in t[2:7]:
print (“Welcome”)
16 What could be the minimum and maximum possible outcomes for the 1
following?
import random
print( random.randrange( 20,30) * 2)
3
What
18 can happen when you give your personal data (email, address, photos 1
you post…) in exchange for free apps and services?
Q20 and 21 are ASSERTION AND REASONING based questions. Mark the
correct choice as
a) Both A and R are true and R is the correct explanation for A
b) Both A and R are true and R is not the correct explanation for
c) A is True but R is False
d) A is false but R is True
20 Assertion (A) : Comments are non-executable statements that enable 1
the users to understand the program logic.
Reason (R) : They are basically statements used to put remarks. The
comments are used to explain the code and to make it more informative
for the users.
21 D1= {‘A’: ‘CS’, ‘B’ : ‘IP’} 1
D2= { ‘b’ : ‘IP’, ‘a’ : ‘CS’}
Assertion: Output of print (D1==D2) is True.
Reason: Dictionary is a collection of key-value pairs. It is not a
sequence.
4
SECTION B
22 Ms. Reema will be teaching her students some techniques for 2
problem solving today. Name these techniques. Which of these is
a pictorial technique and which one is closer to a HLL program?
str= “Program@PROGRAM@program”
print(str.split(“@”))
print(str.count(“program”))
print(str.find(‘@’))
print(str.isalnum( ))
28 What are cookies? How are they used by websites to track you? 2
SECTION C
29 Draw a flowchart to generate the Fibonacci Series as 0,1, 1, 2, 3, 5, 3
8…. Upto N terms.
Where N is the number of terms given by the user.
5
30 i) Predict Output: 3
L=[6,12,18,24,30]
for i in L:
for j in range(1,i%5):
print(j,'#',end='')
print()
OR
ii)Predict Output:
values = [[3, 4, 5, 1 ], [33, 6, 1, 2]]
for row in values:
row.sort()
for element in row:
print(element, end = " ")
print()
SECTION D
33 1. A data analyst needs to clean up user input by removing any 2+2
extra spaces at the beginning and end of each entry. Which
Python string function should they use?
2. A programmer is developing a password validation system. They
need to check if the password contains only alphabets and
numbers. Which function should they use?
3. The bookstore needs to remove sold-out books from the
inventory. Which function removes an item from a list by its
value?
6
4. The bookstore wants to arrange books alphabetically. Which list
method would you use to sort the inventory list in ascending
order?
SECTION E
35 1. Write program using nested loop to display the following 3+2
pattern.
1
13
135
1357
a) (11100.1010)2 to ( )8
b) (10AF) 16 to ( )2
2. Draw the symbol of NAND gate and write down truth table for
this.
7
37 Write a program to create a dictionary with Bookid, Bookname, 5
and Price of n books. Data stored in dictionary is as follows
Accept a Bookid from user and display the details of that book.
Delete the details of a particular book with the given book id.