Class 12 Computer Science Sample Paper Set 13
Class 12 Computer Science Sample Paper Set 13
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]
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
2. With SQL, how do you select all the records from a table named "Students" where the value of the column [1]
"FirstName" ends with an "a"?
a) The data types of all data in all files. b) The names of all fields in all files.
c) Synchronous d) Asynchronous
7. Which character is used to create a new file in csv? [1]
a) x b) r
c) r+ d) w
8. What is default value of host? [1]
a) List b) Dictionary
c) Tuple d) String
10. Write a single loop to display all the contents of a text file poem.txt after removing leading and trailing [1]
whitespaces.
11. State true or false: [1]
Non-default arguments can be placed before or after a default argument in a function definition.
12. LIFO stands for [1]
a) WAN b) MAN
c) PAN d) LAN
15. What is the value of this expression 3**3**1? [1]
a) 3 b) 27
c) 9 d) 1
16. Which of the following operator displays a record if either the first condition or the second condition is true? [1]
a) BETWEEN b) OR
c) AMONG d) AND
17. Protective covering that protects the optical fiber from outside environment is known as [1]
a) Core b) Jacket
c) Buffer d) Cladding
18. Network device which connects networks of similar types (same protocols): [1]
a) Router b) Gateway
c) Hub d) Bridge
19. Assertion (A): Python is a free, open-source programming language [1]
Reason (R): Python is easy to learn as compared to other programming languages.
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.
Table: FLIGHT
a. Write a query to change the fare to 6000 of the flight whose FNO is F104.
b. Write a query to display the total number of MALE and FEMALE PASSENGERS.
c. Write a query to display the NAME, corresponding FARE and F_DATE of all PASSENGERS who have a flight
to START from DELHI.
d. Write a query to delete the records of flights which end at Mumbai.
35. Consider the tables FACULTY and COURSES with structure as follows. [4]
Write Python codes for the following.
i. To display details of these faculties whose salary is greater than 12000
ii. To display the details of courses whose fees is in the range of 15000 to 50,000 (both values included)
iii. To increase the fees of course "System Design" by 500
iv. To display the count of unique F_ID from courses table.
Section E
36. Great Studies University is setting up its Academic schools at Sunder Nagar and planning to set up a network. [5]
The university has 3 academic schools and one administration centre as shown in the diagram below:
Law School 25
Technology School 50
Business School 35
i. Suggest the most suitable place (i.e., Schools/Center) to install the server of this university with a suitable
reason.
ii. Suggest the most efficient connecting medium for connecting these Schools/center for wired connectivity.
iii. Which device you will suggest to be placed/installed in each of these Schools! center to efficiently connect
all the computers within these Schools/center?
iv. The university is planning to connect its admission office in the closest big city, which is more than 350 km
from the university. Which type of network out of LAN, MAN or WAN will be formed? Justify your answer.
37. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables. [5]
TRAINER
TID TNAME CITY HIREDATE SALARY
COURSE
i. Display the Trainer Name, City & Salary in descending order of their Hiredate.
ii. To display the TNAME and CITY of Trainer who joined the Institute in the month of December 2001.
iii. To displayTNAME, HIREDATE, CNAME, STARTDATE from tables TRAINER and COURSE of all those
courses whose FEES is less than or equal to 10000. (iv) To display number of Trainers from each Ans. city.
iv. SELECT TID. TNAME, FROM TRAINER WHERE CITY NOT IN ('DELHT', 'MUMBAI');
v. SELECT DISTINCT TID EROM COURSE;
vi. SELECT TID, COUNT(*), MIN (FEES) FROM COURSE. CROUP BY TID HAVING COUNT(*)>1;
vii. SELECT COUNTS), SUM(FEES) FROM COURSE WHERE STARTDATE< '2018-09- 15';
OR
Consider the following tables STORE and answer the questions:
TABLE: STORE