0% found this document useful (0 votes)
345 views8 pages

Computer Science XI SEE (2022-23) - MS

1) This document contains details of an annual examination for Class 11 students in the subject of Computer Science. It has 3 sections - Section A contains 10 multiple choice questions worth 1 mark each, Section B contains 5 questions worth 2 marks each, and Section C contains 2 questions worth 3 marks each. 2) The questions test concepts related to computer science like Boolean logic, operating systems, programming languages, algorithms, data structures, cyber security, open source software, and Python programming. 3) Sample questions include identifying valid/invalid identifiers, evaluating Python expressions, finding output of Python code snippets, explaining differences between various concepts, and writing Python programs to check for leap years and find largest of 3 numbers. The total marks

Uploaded by

Irͥønͣmͫan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
345 views8 pages

Computer Science XI SEE (2022-23) - MS

1) This document contains details of an annual examination for Class 11 students in the subject of Computer Science. It has 3 sections - Section A contains 10 multiple choice questions worth 1 mark each, Section B contains 5 questions worth 2 marks each, and Section C contains 2 questions worth 3 marks each. 2) The questions test concepts related to computer science like Boolean logic, operating systems, programming languages, algorithms, data structures, cyber security, open source software, and Python programming. 3) Sample questions include identifying valid/invalid identifiers, evaluating Python expressions, finding output of Python code snippets, explaining differences between various concepts, and writing Python programs to check for leap years and find largest of 3 numbers. The total marks

Uploaded by

Irͥønͣmͫan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Annual Examination (2022-23)

Class -XI
Time: 3 Hours Subject: Computer Science MM:70

MARKING SCHEME
SECTION – A
(1 mark to be awarded for every correct answer)

1. State whether TRUE or FALSE 1


If a Boolean expression is True, its dual will be False.
ANS: TRUE
2. Operating system is an example of 1
(a) Application software (b) System software (c) Utility program (d) None of
these
ANS: (b) System software
3. Which of the following is an invalid identifier? 1
(a) @Hello (b) _Hello (c) Hello_45 (d) Hello
ANS: (a) @Hello
4. Given: A = 43 & Y = 17, Now find the value of Res, if Res = A % Y. 1
(a) 2 (b) 17 (c) 43 (d) 9
ANS: (d) 9
5. Go through the following code and find how many times the word “Welcome” will be 1
printed.
CITY = "Dehradun"
A = CITY[ 1: 7: 2]
for i in A:
print("Welcome")
(a) 2 (b) 4 (c) 1 (d) 3
ANS: (d) 3
6. The _________ is a pictorial representation of step by step solution of a problem? 1
(a) Algorithm (b) Flowchart (c) Both of these (d) None of these
ANS: (b) Flowchart
7. A small file on user’s computer where visited websites store own information about a 1
user is a/an ................
(a) Mulware (b) Adware (c) Cookies (d) Spam
ANS: (c) Cookies
8. To protect yourself from hackers, you should turn on a _____________. 1
(a) Script (b) Antivirus (c) VLC (d) Firewall
ANS: (d) Firewall
9. A software which can be freely accessed and modified is called ___________. 1
(a) Open Source Software (b) Synchronous software
(c) Package software (d) Middleware
ANS: (a) Open Source Software
10. Stealing someone else’s intellectual work representing it as own, is called ______ 1
(a) Pluckism (b) Intellectual steal (c) Plagiarism (d) Pickism
ANS: (c) Plagiarism

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.

ANS: d) A is false but R is True


SECTION – B
19. The following code is having syntax errors. Rewrite the correct code and underline the 2
corrections made.
A = int("Enter the value”)
for i in range(1, 10)
if A % i = 1:
print(“Hello”)
ELSE:
print(“Welcome”)
Ans:
num = int(input("Enter the value”)) # keyword input missing
for i in range(1, 10): # colon is missing
if A% i = = -1: # double equal to be used for comparison
print(“Hello”)
else: # keyword else to be used in lowercase only
print(“Welcome”)
(1/2 marks for each correction)

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)

21 How an Interpreter is different from a Compiler. 2

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:

24. Predict the output of the Python code given below: 2


S = "PYTHON"
for i in range(len(S) -2):
print(S[ : i + 1])
ANS:
P
PY
PYT
PYTH ( ½ marks for each correct line of output)
OR
Write a program to ask the user to input a string and find the length of string without
using inbuilt function len() also print the length.
ANS
S = input("Enter String:")
r=0
for k in S:
r += 1
print("Length of string: ", r)
( ½ mark for input , 1mark for loop and length, ½ marks for printing)
25 How are tuples different from lists? 2
ANS:
1) Tuples are immutable sequences while Lists are Mutable.
2) Lists can grow or shrink while tuple cannot.
(or any other correct difference, 1 mark for each)

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)

(b) Explain any two benefits of E-Waste Recycling. 2


ANS:
• Allows for recovery of valuable precious metals: we can recover metals like
Zink, Copper, Gold etc. that can be recycled.
• Toxic waste: Mining produces toxic waste, which may cause crop devastation
& human health crisis due to water contamination.
(1 mark for each correct benefit or any other correct benefit)
27 Write a program to input a year (in 4 digits) and check it for leap year. 3
(if year is century and divisible by 400 then it will be leap year. If the year is not a
century year and it is divisible by 4 then it will be leap year.)
ANS:
Yr = int(input("Enter Year (YYYY):"))
if Yr%100==0:
if Yr%400 ==0 :
print("Century & Leap Year")
else:
print("Century but Not Leap Year")
else:
if Yr%4 ==0 :
print("Not a Century & Leap Year")
else:
print("Neither Century Nor a Leap Year")
( ½ marks for input, 1 mark for correct inner if, 1 mark for correct outer if, ½
marks for printing)
OR
Write a program (using nested if method only) to input three numbers and print the
largest of these three numbers.
ANS:
N1 = int(input("Enter N1 "))
N2 = int(input("Enter N2 "))
N3 = int(input("Enter N3 "))
if N1>N2:
if N1>N3:
big = N1
else:
4
big = N3
else:
if N2>N3:
big = N2
else:
big = N3
print("Largest Number is :",big)

( ½ marks for input, 1 mark for correct inner if, 1 mark for correct outer if, ½
marks for printing)

28 a ) Write a for loop to print integer numbers between 20 and 30. 1


ANS:
for k in range(20, 31, 2):
print( k )
(1 mark for correct for loop)
b) David has written the following code to calculate sum of first N integer numbers. 2
Now write this code by using a while loop instead of for loop:
N = int(input('Enter any number?'))
Sm = 0
for k in range(1, N+1):
Sm += k
print('Required Sum:' , Sm)

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)

29. Explain following terms: 3


a) Cyber Crime
b) Identity Theft
c) Private browsing
ANS:
a) Cyber Crime : Cybercrime refers to any crime carried out using a computer or an
electronic device, primarily via the Internet.
b) Phishing: is the practice of attempting to acquire sensitive information (such as user
name, passwords, credit card information, account data etc.) from individuals over the
internet, by means of deception.
c) Private browsing: A type of browsing wherein browser opens in incognito mode
and does not store cookies about your online activity, is called Private Browsing.
(1 mark for each correct explaination)
30. Write a program to input a list L and create two lists L1 (contains half of every even 3
elements of List L) and L2 (contains twice of every odd elements of List L)
e.g. if L = [1, 12,23, 4, 55, 16, 7] then
L1 = [6, 2, 8,] and L2 = [ 2, 46, 110, 14]
ANS:

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

City = {1:"Delhi", 2:"Mumbai"}


City[1] = "Agra"
print(City)
City[3] = "Goa"
print(City)
ANS:
{1: 'Agra', 2: 'Mumbai'}
{1: 'Agra', 2: 'Mumbai', 3: 'Goa'}
( 1 mark for each correct output)

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:

Dict = {"PenDrv":300, "UPS":2300, "DVD":50, "Speaker":790,"Projector":75000}


Stud = {"Ravi":30, "Sunny": 17, "David": 27, "Gagan": 10, "Priya": 20}
print("Name of students with age below 25: ")
for key in Stud:
if Stud[key] < 20:
print(key)
( ½ marks for correct declaration of dictionary, 1 mark for
loop, 1 mark for condition and ½ marks for printing)
OR
Write a program to create a third dictionary from two dictionaries having some
common keys, in a way so that the values of common keys are added in the third 5
dictionary.
ANS:

D1 = {"1":100, "2":200, "3":300}


D2 = {"1":300, "2":200, "5":400}
D3 =dict(D1) # Create new dictionary D3
D3.update(D2)
for i,j in D1.items():
for x,y in D2.items():
if i==x:
D3[i]=(j+y)
print("Dictionary D1:",D1)
print("Dictionary D2:",D2)
print("Dictionary D3:",D3)
(1 mark for creating D1 & D2, 1 mark for creating D3, 2
marks for nested loops, 1 marks for printing D1,D2 & D3)

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)

You might also like