Class 12 Computer Science Sample Paper Set 6
Class 12 Computer Science Sample Paper Set 6
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]
A given object may appear in a list more than once.
2. Consider the following query : [1]
SELECT name, instructor name, course_id FROM instructor;
To display the field heading course with a different heading as id, which keyword must be used here to rename
the field name?
a) From b) Join
c) As d) Rename
3. Which method returns the next row from the result set as tuple? [1]
a) fetchone() b) rowcount
c) fetchall() d) fetchmany()
4. What is the output of the functions shown below? [1]
float('-infinity')
float('inf')
a) 2# b) 7#
c) 3#4# d) 2#4#
8. l1 = [1,2,3,4,5] [1]
l1.append([5,6,[7,8,[9,10])
What will be the final length of l1?
a) 10 b) 5
c) 8 d) Error
9. Which of the following is an advantage of SQL? [1]
c) Stack d) Tree
13. Name any two DDL and any two DML commands. [1]
14. Fill in the blank : [1]
In ________ switching, before a communication starts, a dedicated path is identified between the sender and the
receiver.
a) Circuit b) Packet
c) Plot d) Graph
15. Which of the following errors will result the abnormal termination of program? [1]
a) Semantic b) Run-time
c) Syntax d) Compile-time
16. Consider the following SQL statement. What type of statement is this? [1]
SELECT * FROM employee
a) DDL b) DCL
a) Perl b) PHP
c) VB Script d) Ruby
18. A combination of bus and star topologies is called a ________ topology. [1]
a) Mesh b) Combination
c) Hybrid d) Tree
19. Assertion (A): Python is a multipurpose programming language [1]
Reason (R): Python can be used with web, enterprise, 3D CAD, etc.
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 = 5
b = a = 15
c = (a < 15)
print ("a =", a)
print ("b =", b)
print ("c =", c)
27. What would be the data type of variable data in following statements? [2]
i. data = f.read()
ii. data = f.read(10)
iii. data = f.readline()
iv. data = f.readlines()
OR
Consider a binary file Employee.dat containing details such as empno:ename:salary (separator ':'). Write a Python
function to display details of those employees who are earning between 20000 and 40000. (Both values inclusive)
28. Write a function to calculate volume of a box with appropriate default values for its parameters. Your function [2]
should have the following input parameters:
i. Length of box
ii. Width of box
iii. height of box
Section C
29. Write a function which takes two string arguments and returns the string comparison result of the two passed [3]
strings.
OR
Write functions in Python for InsertQ(Names) and RemoveQ(Names) for performing insertion and removal
operations with a queue of list which contains names of students. The function must check for Empty Queue.
30. Write the output of the SQL queries (a) to (d) based on the table TRAVEL given below: [3]
Table: TRAVEL
Table : TRANSACT
a. Write the SQL statements to delete the records from table TRANSACT whose amount is less than 1000.
b. Write a query to display the total AMOUNT of all DEBITs and all CREDITs.
c. Write a query to display the NAME and corresponding AMOUNT of all CUSTOMERs who made a
transaction type (TTYPE) of CREDIT.
d. Write the SQL statement to change the Phone number of customer whose CNO is 1002 to 9988117700 in the
table CUSTOMER.
OR
Give output for following SQL queries as per given table :
Table : LAB
Section E
36. Be Happy Corporation has set up its new centre at Noida, Uttar Pradesh for its office and web-based activities. It [5]
has 4 blocks of buildings.
A to B 40 m
B to C 120 m
C to D 100 m
A to D 170 m
B to D 150 m
A to C 70 m
Numbers of computers in each block
Block A - 25
Block B - 50
Block C - 125
Block D - 10
i. Suggest and draw the cable layout to efficiently connect various blocks of buildings within the Noida centre
for connecting the digital devices.
ii. Suggest the placement of the following device with justification
a. Repeater
b. Hub/Switch
iii. Which kind of network (PAN/LAN/WAN) will be formed if the Noida office is connected to its head office
in Mumbai?
iv. Which fast and very effective wireless transmission medium should preferably be used to connect the head
office at Mumbai with the centre at Noida?
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
TABLE: FABRIC
FCODE TYPE
F04 POLYSTER
F02 COTTON
F03 SILK
F01 TERELENE