Computer Science XI SEE (2022-23) - MS
Computer Science XI SEE (2022-23) - MS
Class -XI
Time: 3 Hours Subject: Computer Science MM:70
MARKING SCHEME
SECTION – A
(1 mark to be awarded for every correct answer)
1
11 An empty or null statement in python is _______.
(a) go (b) pass (c) semicolon (d) over
ANS: (b) pass
12 Python uses a/an _____________ to convert source code to object code 1
(a) interpreter (b) Compiler (c) both a & b (d) none of these
ANS: (a) interpreter
13. ______________ are the records and traces of individual’s online activities. 1
a) Cyber law (b) Private browsing (c) Digital footprints (d) Social media
ANS: (c) Digital footprints
14. Evaluated the following in Python. 1
print(37//5 - 5**2 + 3**2**2)
(a) 93 (b) -55 (c) 33 (d) 63
ANS: d) 63
15 Give the output of following python code: 1
T = [16,7,13,5,9,11]
print( T[ -4 : -1])
(a) [13,5,9] (b) [16,5,9,11] (c) [7,13,5] (d) [9,5,13]
ANS: (a) [13,5,9]
16. Which of following functions will return the KEY, VALUE pairs of a dictionary? 1
a) keys() (b) items() (c) values() (d) keysvalues()
ANS: (b) items()
Both 17 and 18 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 A
c) A is True but R is False
d) A is false but R is True
17. Assertion (A):- Lists are mutable objects in Python 1
Reasoning (R):- Tuples are immutable objects in Python.
ANS: b) Both A and R are true and R is not the correct explanation for A
18. Assertion (A): The pop() method removes a list from memory. 1
Reason (R): The elements of a tuple cannot be modified in place.
2
20. What do you mean by cyber crime? Write two examples of cyber crime. 2
OR
Explain open source software and give one example of OSS.
(1 mark for each for correct definition & 1 mark for correct example)
ANS:
Interpreter: it converts an HLL program into machine language line by line. It always
required in memory. (1 Mark)
Compiler: it converts an HLL program into machine language in one go. Once the
program is successfully compiled it is no more needed in the memory (1 Mark)
(or any other correct)
22 Write the full forms of following term: 2
GNU and FLOSS
ANS:
GNU: GNU’s Not Unix
FLOSS: Free Libre and Open Source Software
(1 mark for each correct expansion)
23. Design a logic circuit to realise the following : 2
Ans:
3
OR
Give the output of following code:
T = (12.3, 4, -15, 66, 22, 44)
print(T[ : 2] + T [-3 : -1])
print(max(T[ : 3]), min(T[ : 3]))
ANS:
(12.3, 4, 66, 22)
12.3 -15
( 1mark for each correct output)
SECTION – C
26 (a) Define the term E-Waste management? 1
ANS:
The management of e-waste (such as Computers, mobile phones, TV sets &
refrigerators etc.) in an effective & environment friendly manner is called e-
waste management. E-waste management involves proper recycling and
recovery of the disposed material. (1 Mark)
( ½ marks for input, 1 mark for correct inner if, 1 mark for correct outer if, ½
marks for printing)
ANS:
N = int(input('Enter any number?'))
Sm = 0
k=0
while k< N+1:
Sm += k
k=k+1
print('Required Sum:' , Sm)
( ½ marks for initialization of k, 1 mark for condition of while loop, ½ marks for
incrementing k inside while loop)
5
L = eval(input("Enter list L: "))
L1 = [ ]
L2 = [ ]
for k in L:
if k%2==0:
L1.append(k/2)
else:
L2.append(k*2)
print("L1:", L1)
print("L2:", L2)
( ½ marks for input, 2 marks for correct loop and use of append, ½ marks for print)
OR
Go through the following code carefully, and predict the output
L = [1,2,3,6]
L [max(L) - len(L)] = 99
print(L)
L.insert(1, -22)
print(L)
L.pop(-2)
print(L)
ANS:
[1, 2, 99, 6]
[1, -22, 2, 99, 6]
[1, -22, 2, 6]
(1 mark for each correct line of output)
SECTION – D
31 a) Do following conversions:
i) (89)10 = (?)2 1
ii) (1000.11)2 = (?)10 1
iii) (A2C)16 = (?)10 1
ANS:
i) (89)10 = (1011001)2
i) (1000.11)2 = (8.75)10
ii) (A2C)16 = (2604)10
b) Do following conversions:
i) (312)8 = ()2 1
ii) (11001011)2 = (?)16 1
ANS:
i) (312)8 = (011001010)2
ii) (11001011)2 = (CB)16
32. Mukesh have created a list Item =[12, 15, 5, -20, 60, 10, 66], Now he wish to perform
following operations on the list. help him to write python statement for these tasks:
a) To add a new element (99) at the end of list. 1
b) To insert a new element (22) at the beginning of list. 1
c) To delete the last element from the list. 1
d) To arrange the elements of list in descending order. 1
e) To find the reverse of list. 1
ANS:
a) Item.append(99)
6
b) Item.insert(0, 22)
c) Item.pop() or Item.pop(-1)
d) Item.sort(reverse =True)
e) Item.reverse()
(1 mark for each correct answer)
33. a) Carefully go through the following code and predict the output. 2
b) You are given a dictionary D( ItemNames as keys and Price as values)as follows:
Dict = {"PenDrv":300, "UPS":2300, "DVD":50, "Speaker":790,"Projector":75000} 3
now write a program to print a list of Items having price are more than 500..
ANS:
7
SECTION – E
34 a) What do you mean by a keyword in python? Write any two examples of keywords 2
ANS:
Keywords are the reserve words that convey some special meaning to compiler.
Examples: pass , while (or any two other correct keywords)
(1 mark for definition & ½ + ½ for examples)
b) Write a program in python to print following pattern. 2
*
**
***
****
*****
ANS:
for i in range(1,6):
print()
for j in range(1, i+1):
print("*", end="")
( ½ marks for input & ½ marks for print, ½ marks to calculate area & ½ to calculate
perimeter correctly)
35 Write a program to input a number and check whether the number is PRIME or not. 4
ANS:
N = int(input('Enter any number?'))
Flag =1
for i in range (2,N//2):
if N % i == 0:
Flag =0
break
if Flag ==1:
print("Number is Prime")
else:
print("Number is Not31 Prime")
( ½ marks for input, ½ marks for Flag initialization, 2 mark for logic of prime,
1 marks for checking & printing)
OR
Write a program to print all prime numbers between 50 and 100.
ANS:
print("List of prime numbers between 50 and 100")
for N in range(50,101):
Flag =1
for i in range (2,N//2):
if N%i == 0:
Flag =0
break
if Flag ==1:
print(N)
( 1 mark for outer loop, ½ marks for Flag initialization, 1 ½ mark inner loop, 1
marks for checking & printing)