Class 12 Computer Science Sample Paper Set 11
Class 12 Computer Science Sample Paper Set 11
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
Section A
1. State true or false: [1]
An if statement can either have elif clause or else clause.
2. Which is the subset of SQL commands used to manipulate database structures, including tables? [1]
a) Error b) [3,6,9,[4,8,12,[5,10,15]]]
c) [[3,6,9],[4,8,12],[5,10,15]] d) [3,6,9,4,8,12,5,10,15]
4. Suppose there is a list such that: l = [2, 3, 4]. [1]
If we want to print this list in reverse order, which of the following methods should be used?
a) reversed(I) b) list(reversed(I))
c) list(reverse[(I)]) d) reverse(I)
5. Write the output of the Python code given below: [1]
g=0
def fun1(x,y):
global g
g=x+y
return g
def fun2(m,n):
global g
g=m-n
return g
k=fun1(2,3)
fun2(k,7)
print(g)
a) writefullline( ) b) writeline( )
c) writestatement( ) d) writelines( )
8. Which of the following is a procedural language? [1]
a) INSERT b) DELETE
c) ALTER d) UPDATE
10. Given a file "mine.txt" as shown below: [1]
I am line 1
I am line 3
What would be the output of following code?
print(file("mine.txt").readlines())
11. State true or false: [1]
The first line of function definition that begins with keyword def and ends with a colon ( : ), is also known as function
header.
12. Which of the following is/are not applications of stacks? [1]
a) PAN b) LAN
c) WAN d) MAN
15. What is the output of the following code? [1]
a) (50,70) b) (50,)
a) accepted b) resend
a) Routes to use for forwarding data to its b) Port Assignments to network devices.
destination.
a) Both A and R are true and R is the correct b) Both A and R are true but R is not the correct
explanation of A. 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 correct
explanation of A. 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 correct
explanation of A. explanation of A.
P1 RISHABH 52
P2 HUSSAIN 45
P3 ARNOLD 23
P4 ARNAV 18
P5 GURSHARAN 52
a. Identify and write the name of the Candidate Keys in the given table BATSMEN.
b. How many tuples are there in the given table BATSMEN?
OR
a. Consider the following tables Student and Sport:
Table : Student
1100 MEENA X
1101 VANI XI
Table : Sport
ADMNO GAME
1100 CRICKET
1103 FOOTBALL
b. Write the output of the queries (i) to (iv) based on the table, GARMENT given below:
TABLE : GARMENT
ii. SELECT FCODE, COUNT(*), MIN(PRICE) FROM GARMENT GROUP BY FCODE HAVING COUNT(*)>1;
iii. SELECT TYPE FROM GARMENT WHERE ODR_DATE >'2021-02-01' AND PRICE <1500;
Table: CUSTOMER
Table : COACH
2 Ravinder 1008
3 Janila 1001
4 Naaz 1003
Conference Finance 80
Block Computers
Finance 25
Conference 60
i. What will the most appropriate block, where TUC should plan to install their server?
ii. Draw a block to block cable layout to connect all the buildings in the most appropriate manner for efficient
communication.
iii. What will be the best possible connectivity out of the following, you will suggest to connect the new setup of offices
in Bengalore with its London based office?
Infrared
Satellite Link
Ethernet Cable
iv. Which of the following devices will be suggested by you to connect each computer in each of the buildings?
Gateway
Switch
Modem
v. Company is planning to connect its Block in Hyderabad which is more than 20 km. Which type of network will be
formed?
37. Write queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables [5]
Table: VEHICLE
V05 SUV 30
V04 CAR 18
Table: TRAVEL
Note:
• PERKM is Freight Charges per kilometre.
• Km is kilometres Travelled
• NOP is number of passengers travelled in vehicle.
i. To display CNO, CNAME, TRAVELDATE from the table TRAVEL in descending order of CNO
ii. To display the CNAME of all customers from the table TRAVEL who are travelling by vehicle with code V01 or V02
iii. To display the CNO and CNAME of those customers from the table TRAVEL who travelled between 2015-12- 31 and
2015-05-01
iv. To display all the details from table TRAVEL for the customers, who have travel distance more than 120 KM in
ascending order of NOP
v. SELECT COUNT (*), VCODE FROM TRAVEL GROUP BY VCODE HAVING COUNT (*) > 1
vi. SELECT DISTINCT VCODE FROM TRAVEL
vii. SELECT A.VCODE, CNAME, VEHICLETYPE FROM TRAVEL A, VEHICLE B WHERE A. VCODE = B.
VCODE and KM < 90
viii. SELECT CNAME, KM*PERKM FROM TRAVEL A, VEHICLE B WHERE A.VCODE = B.VCODE AND A.
VCODE 'V05'
OR
Consider the following tables ACTIVITY and COACH. Write SQL commands for the following statements
Table: ACTIVITY
Table: COACH
2 Ravinder 1008
3 Janila 1001
4 Naaz 1003
i. To display the names of all activities with their Acodes in descending order.
ii. To display sum of PrizeMoney for the Activities played in each of the Stadium separately.
iii. To display the coach's names and Acodes in ascending order of Acode from the table COACH.
iv. To display the content of all activities for which ScheduleDate is earlier than 01-01-2004 in ascending order of
ParticipantsNum.