11-COMPUTER SCIENCE-SEE-2024_unlocked
11-COMPUTER SCIENCE-SEE-2024_unlocked
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.One internal choice is given in
Q30.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q35
8. All programming questions are to be answered using Python Language only.
Q. No SECTION A Marks
1 State True or False: 1
Primary Memory is a section of computer memory that the CPU can access directly. Primary
Memory has a faster access time than secondary memory.
import math
print(math.ceil(3.956)+math.floor(3.956))
3 _______________ is the trail of data we leave behind when we visit any website (or use any 1
online application or portal) to fill-in data or perform any transaction.
4 Satwik, Bhabani and Abhas went to Amar’s High Speed Internet gaming internet cafe, and they 1
used the computers and left the place after 3 hours but forgot to sign off from their email
accounts. Later, Amar started using those same computers. He is now logged into their email
accounts and sends inflammatory email messages to some other persons using the email
accounts of Bhabani and Satwik. Amar’s activity is an example of which of the following
cybercrime?
(a) Hacking (b) Identity theft & Cyber bullying (c)IPR Issue (d) Plagiarism
p.t.o.
Page 1 of 5
6 Which of the following is not a valid operator used in python? 1
7 __________ is all about an ideal pattern of behavior for Internet users, guidelines about what 1
is acceptable in an online medium for personal and professional use.
9 If x=100 and y=10 find the correct value of z as per the following code: 1
z=x>y+90
10 Which data type in Python is used to represent the absence of a value? Which is not same as 1
not the same as 0, False, or an empty string.
11 The equivalent statement for the following math expression in python is: 1
12 1
What will be the value of p after the execution of the following code:
p,n=0,5
while True:
n-=2
p=p+1
if n>1:
break
print(p)
Page 2 of 5
13 Which of the following is a mutable data type in Python? 1
(a) Tuple (b) List (c) String (d) Integer
14 Which logic gate returns true only if exactly one input is true? 1
15 Which open-source software license allows users to freely use, modify, and distribute the 1
software, provided they grant the same freedoms to others?
Q.16 and 17 are assertion and reasoning based questions . Mark the correct choice as
(a) both A and R are true and R is correct explanation of A.
(b) both A and R are true but R is not the correct explanation of A.
(c) A is True but R is False
(d) A is False but R is True
16 Assertion (A) : String is a mutable data type in python. 1
Reason(R) : String once created we cannot change its contents.
17 Assertion (A): Dictionary in Python holds data items in key-value pairs. Items in a dictionary are 1
enclosed in curly brackets { }. Every key is separated from its value using a colon (:) sign.
Dictionary can be accessed using the key.
Reason(R): D={1:"Farhad",2:"Amar"} # the code is an example of dictionary.
D[1]='Farhad Hussain' # used to access and modify the dictionary.
20 The following python code is having syntax errors. Rewrite the correct code and underline the 2
corrections made.
n=INT(input("Enter any No.:"))
primeFlag=True
if n < 2:
primeFlag=False
for i in range(2, int(n**0.5) + 1)
if n % i = 0:
primeFlag=False
if primeFlag:
print(n, " is a prime number.")
Else:
print(n, " is not a prime number.")
Page 3 of 5
21 Explain the similarities and differences between compiler and interpreter? 2
24 Draw a flowchart that will accept any two integers, subtract the small value from the greater 2
value, and print the subtraction result.
25 Write the following code using for loop in python programming language. 2
num = 0
while num <=10:
print(num)
num += 2
28 Write a Python program to print the following patterns using nested loops: 3
54321
4321
321
21
1
29 Define cyber safety and outline the essential measures required to ensure it effectively. 3
Write the output of the following codes as per the values in the above list L1 and L2:
(a) print( L2[3]*L1[-1])
(b) Print(L2[0:4:2])
(c) print(L1[len(L1)-1])
(d) print(L2[2][1])
(e) L2.pop()
33 Go through the following python code and answer the question: [2 marks] 5
import random
L= [1,2,3,4,5,6,7];
START = random.randint(1,3)
END= random.randint(2,4)
for k in range(START, END+1):
print(L[k], end = "#")
(a) What possible output are expected to be displayed on the screen when the above
program is executed?
i) 1#2#3# ii) 4#5#6#
iii) 5#6#7# iv) 2#3#4#
(b)Go through the following python code and write the output : [3 marks]
T1=(10,20,30,20)
T2=(50,60)
Write the output of the following codes as per the values in the above Tuples:
(a) print(T1.count(20))
(b) print(T1+T2)
(c) print(T1.index(20))
(d) print(T1[::-1])
35 (a) Write a python program that will accept N elements from the user to a List and print the 4
sum of all the odd element in the list. [2 marks]
OR
Write a Python program that prompts the user to enter a tuple of numbers and counts and
print how many of those numbers have digit 5 in its units place.
(b) Write a Python program that prompts the user to enter a string and counts and displays
the number of vowels and digits in it. [2 marks]
- END -
Page 5 of 5