Class 12 Computer Science Sample Paper Set 8
Class 12 Computer Science Sample Paper Set 8
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.
The paper is divided into 5 Sections- A, B, C, D and E.
Section A
1. State true or false: [1]
You can combine a numeric value and a string by using the + symbol.
2. Which of the following join gives the intersection of two tables? [1]
a) SQL is portable(work on any machine i.e PC, mainframe b) SQL has high speed(can query large volumes of data)
etc.)
c) SQL can be used with any DBMS d) SQL can not work with relational databases
4. What is the area of memory called, which stores the parameters and local variables of a function call? [1]
c) a stack d) a heap
5. What is the difference between (30) and (30,)? [1]
6. TV Remote uses which of the wireless transmission media? [1]
a) Infrared b) Microwaves
c) Radiowaves d) Satellite
7. Which of the following is not a valid mode to open a file? [1]
a) rw b) r+
c) ab d) wb+
8. To reflect the changes made in the database permanently, you need to run <connection>. ________ method. [1]
a) done() b) reflect()
c) commit() d) final()
9. Which of the following attributes can be considered as a choice for the primary key? [1]
a) Street b) Subject
c) Roll No d) Name
10. What is the use of mkdir() method? [1]
11. State true or false: [1]
The clear() removes all the elements of a dictionary and also deletes the dictionary.
12. The insertion operation in the stack is called ________. [1]
a) push b) insert
c) top d) pop
13. Give the SQL statement to create a table Student with Roll Number, Name, Age and Marks. [1]
14. Every network interface card (NIC) comes with its own ________ address. [1]
a) It provides a more elegant design to program and makes it b) There is less code to write
easier to maintain and update
c) Program code takes up less space d) It makes the programmer to think at abstract level
16. Which of the following operators will return either True or False? [1]
a) += b) =
c) != d) *=
17. The checksum of 0000 and 0000 is ________. [1]
a) 1110 b) 0111
c) 1111 d) 0000
18. SMTP stands for? [1]
a) Both A and R are true and R is the correct explanation of A. b) Both A and R are true but R is not the correct explanation of
A.
a) Both A and R are true and R is the correct explanation of A. b) Both A and R are true but R is not the correct explanation of
A.
a) Both A and R are true and R is the correct explanation of A. b) Both A and R are true but R is not the correct explanation of
A.
Title ISBN
Again? 23686286243
Ushakaal 12678987036
Ushakiran' 42568987036
import mysql.connector
con = mysql.connector.connect(host = "localhost”,user = "system”,passwd = "hello”,database = "connect”)
cur = con.cursor()
sql = "insert into Company(Name, Dept, Salary) values (%s, %s, %s)"
val = ("ABC", "DBA", 35000)
cur.execute(sql, val)
con.commit()
Table: CITY
SIZE INTEGER
AVGTEMP INTEGER
POPULATIONRATE INTEGER
POPULATION INTEGER
TABLE: ADMIN
Expected number of computers to be installed at various locations in the university are as follows:
Office Block 10
Commerce Block 30
i. Suggest the authorities, the cable layout amongst various blocks inside university campus for connecting the blocks.
ii. Suggest the most suitable place (i.e. block) to house the server for this university with a suitable reason.
iii. Suggest an efficient device form the following to be installed in each of the block to connect all the computers.
a. Modem
b. Switch
c. Gateway
iv. Suggest the most suitable (very high speed) service to provide data connectivity between admission office located in Kolkata and the campus located
in Anna Nagar form the following options:
Telephone line
Fixedline dial-up connection
Co-axial cable network
GSM
Leased line
Satellite connection.
v. University is planning to connect its campus in Kolkata which is more than 100 km. Which type of network will be formed?
37. Consider the following tables CARDEN and CUSTOMER and answer (b) and (c) parts of this question: [5]
Table: CARDEN
Table: CUSTOMER
a. Give a suitable example of a table with sample data and illustrate Primary and Alternate Keys in it.
b. Write SQL commands for the following statements:
a. To display the names of all the silver-colored cars.
b. To display names of car, make and capacity of cars in descending order of their sitting capacity.
c. To display the highest charges at which a vehicle can be hired from CARDEN.
d. To display the customer name and the corresponding name of the cars hired by them.
c. Give the output of the following SQL queries:
i. SELECT COUNT(DISTINCT Make)FROM CARDEN;
ii. SELECT MAX(Charges), MIN(Charges) FROM CARDEN;
iii. SELECT COUNT(*), Make FROM CARDEN;
iv. SELECT CarName FROM CARDEN WHERE Capacity=4;
OR
Write the SQL commands for (i) to (v) on the basis of the table HOSPITAL
TABLE: HOSPITAL