Class 12 Computer Science Sample Paper Set 14
Class 12 Computer Science Sample Paper Set 14
Join School of Educators' exclusive WhatsApp, Telegram, and Signal groups for FREE access
to a vast range of educational resources designed to help you achieve 100/100 in exams!
Separate groups for teachers and students are available, packed with valuable content to
boost your performance.
Additionally, benefit from expert tips, practical advice, and study hacks designed to enhance
performance in both CBSE exams and competitive entrance tests.
Don’t miss out—join today and take the first step toward academic excellence!
COMPUTER SCIENCE
All questions are compulsory. However, internal choices have been provided in some questions. Attempt only one
of the choices in such questions.
Section A
1. State true or false: [1]
Mathematical operations can be performed on a string.
2. What is the full form of DDL? [1]
c) DDL d) DML
4. What is the default return value for a function that does not return any value explicitly? [1]
a) double b) None
c) null d) int
5. What is the output of the following? [1]
i=9
while True:
if (i + 1)%4 == 0:
break
print(i, end = ' ')
i += 1
6. In computer, process of superimposing a low frequency signal over a high frequency signal is called [1]
c) modulation d) demodulation
7. Which of the following option is the correct Python statement to read and display the first 10 characters of a text [1]
file "Notes.txt"?
a) F = open('Notes.txt'); b) F = open('Notes.txt');
print(F.read(10)) print(F.write (10))
a) table b) resultset
c) sqlresult d) result
9. Which of the following commands in SQL is used to add a new record into a table? [1]
a) ADD b) NEW
c) UPDATE d) INSERT
10. How is method write() different from writelines() in python? [1]
11. State true or false: [1]
You can combine a numeric value and a string by using the + symbol.
12. ________ form of access is used to add/remove nodes from a stack. [1]
c) LIFO d) Weighted
13. What is relation? Define the relational data model. [1]
14. A ________ is a network point that acts as an entrance to another network. [1]
a) Hub b) Repeater
c) Gateway d) Bridge
15. What is the output of following code? [1]
bool('False')
bool()
a) False b) True
True True
c) Attribute d) Degree
17. The checksum of 1111 and 1111 is ________. [1]
a) 0000 b) 1111
c) 1110 d) 0111
18. Which command is used for finding the IP address and default gateway of your network? [1]
a) netstat b) ping
c) ipconfig d) ifconfig
19. Assertion (A): The tuple items cannot be deleted by using the del keyword. [1]
Reason (R): To delete an entire tuple, we can use the del keyword with the tuple name.
a) Both A and R are true and R is the correct b) Both A and R are true but R is not the
explanation of A. correct explanation of A.
a) Both A and R are true and R is the correct b) Both A and R are true but R is not the
explanation of A. correct explanation of A.
a) Both A and R are true and R is the correct b) Both A and R are true but R is not the
explanation of A. correct explanation of A.
a = 2*3 // 4 + 4 // 4 + 8 - 2 + 5 // 8
25. Given below is a table Item in database Inventory. [2]
102 XYZ 7 70
103 PQR 8 65
104 XYZ 12 55
Riya created this table but forget to add column ManufacturingDate. Can she add this column after creation of
table? If yes, write the code where user’s name and password are system and test respectively.
26. Which of the following are invalid names and why? [2]
i. PaidInterest
ii. S-num
iii. Percent
iv. 123
v. abc km
vi. elif
OR
Write the definition of a function AddPrev(A, N) in Python, which should add every previous value of list A to the
next value and assign the sum at the index of the next value. The list A contains N number of integers. The function
should finally display the entire content of the changed list.
Example: If the list A contains the following 10 elements (i.e. for N=10).
24 13 4 11 8 4 14 8 4 13
Section C
29. Write a function that takes a number n and then returns a randomly generated number having exactly n digits [3]
(not starting with zero) e.g., if n is 2 then the function can randomly return a number 10-99 but 07, 02, etc., are
not valid two-digit numbers.
OR
Write the definition of a function Sum3(L) in Python, which accepts a list L of integers and displays the sum of all
such integers from the list L which end with the digit 3.
For example, if the list L is passed
[123, 10, 13, 15, 23]
then the function should display the sum of 123, 13, 23, i.e. 159 as follows:
Sum of integers ending with digit 3 = 159
30. Consider the following tables STORE and SUPPLIERS and answer the following parts of this question : [3]
Table: STORE
Table : SUPPLIERS
Scode Sname
21 Premium Stationers
23 Soft Plastics
22 Tetra Supply
Table: CUSTOMER
From To Distance
In continuation of the above, the company experts have planned to install the following number of
computers in each of their offices
Back Office 79
Development Unit 90
Corporate Unit 51
i. Suggest the type of network required (out of LAN, MAN, WAN) for connecting each of the following office
units.
Research Lab and Back Office
Research Lab and Development Unit.
ii. Which one of the following device, will you suggest for connecting all the computers with in each of their
office units?
Switch/Hub
Modem
Telephone.
iii. Which of the following communication medium, will you suggest to be procured by the company for
connecting their local office units in Pondicherry for very effective (high speed) communication?
Telephone cable
Optical fibre
Ethernet cable.
iv. Suggest a cable/wiring layout for connecting the company’s local office units located in Pondicherry. Also,
suggest an effective method/technology for connecting the company's office unit located in Mumbai.
v. Which building is suitable to install the server with suitable reason?
37. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables: [5]
TABLE: BOOK
TABLE: MEMBER