12 CS PreBoard SS 2024
12 CS PreBoard SS 2024
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 21 questions carrying 01 mark each.
4. Section B has 07 Short Answer type questions carrying 02 marks
each.
5. Section C has 03 Short Answer type questions carrying 03 marks each.
6. Section D has 04 Long Answer type questions carrying 4 marks each.
7. Section E has 02 Long Answer type questions carrying 5 marks each.
8.All programming questions are to be answered using Python Language only.
SECTION A
(OBJECTIVE TYPE QUESTIONS) [1X21=21]
a. 3
b. 2
c. 4
d. 5
SS Page 1 of 12
4. State true or False
A list may contain homogenous or heterogeneous
elements.
5. Protective covering that protects the optical fiber from
outside environment is known as
a. Core
b. Jacket
c. Buffer
d. Cladding
SS Page 3 of 12
C. print(“The Difference is :”,c)
D. x,y =7,3
E. diff(x,y)
F. print(“Finished”)
SS Page 4 of 12
(iv) A Primary Key exclusively identifies the rows of a
table.
Select the right choice from the followings:
a. (i) , (iii) and (iv)
b. (ii) and (iii)
c. (iii) and (iv)
d. (i) , (ii) and (iv)
18. Which of the following options can be the output for
the following code?
import random
List=["Delhi","Mumbai","Chennai","Kolkata"]
for y in range(4):
x = random.randint(1,3)
print(List[x],end="#")
a. Delhi#Mumbai#Chennai#Kolkata#
b. Mumbai#Chennai#Kolkata#Mumbai#
c. Mumbai# Mumbai #Mumbai # Delhi#
d. Mumbai# Mumbai #Chennai # Mumbai
19. Assertion (A) The CSV files are like Text files and are
comma separated value files.
Reason(R) The data stored in CSV files are separated by
comma and the delimiter cannot be changed.
a. Both A and R are true and R is the correct
explanation of A
b. Both A and R are true and R is the not the correct
explanation of A
c. A is True but R is false.
d. A is false but R is true.
20. Assertion (A) Tuples can have various types of
elements.
Reason(R) Tuples can either integer or string, but not
both at once.
a. Both A and R are true and R is the correct explanation of
A
SS Page 5 of 12
b. Both A and R are true and R is the not the correct
explanation of A
c. A is True but R is false.
d. A is false but R is true.
21. If column “Salary” contains the data set
(5000,8000,7500,5000,8000), what will be the output
after the execution of the given query?
SELECT SUM ( Salary) FROM employee;
a. 20500
b. 5
c. 25500
d. 33500
SECTION B
SHORT ANSWERED QUESTIONS [2X7=14]
SS Page 6 of 12
OR
Explain the use of Tell() and Flush() functions
associated with Data files.
26. Identify any two DML commands from the following and
write their use in SQL. [2]
Create, alter, update, select, delete, drop, insert into.
OR
BhanuPriya, a database administrator needs to display
class wise total number of records present in other than
class- ‘XII’. She is encountering an error while
executing the following query:
27. While studying for his class XII Board's exam, ADITYA
was not getting the correct answer about the differences
between a Bus and Star Topology. He asked his friend
VEDANSH for the answer. What points VEDANSH might
have suggested to ADITYA?
[2]
OR
Expand the following terms
PPP, ISDN, XML, GNU
28. “Python is a cross platform language”. Define the
statement. [2]
SS Page 7 of 12
SECTION C
SHORT ANSWERED QUESTIONS [3X3=09]
SECTION D
LONG ANSWERED QUESTIONS [4X4=16]
SS Page 8 of 12
a. Display the name of items in decreasing order of
their price.
b. Display all items with quantity more than 90
manufactured by the company XENITA.
33. A) Write a function to count the number of lines starting
with a digit in a text file “article.txt”. [2+2]
B) How text files are different from Binary files?
34. Consider the above given table and write sql queries
for the following: Products
[4]
Pcode Pname Price Rating Bid
P101 Biscuit 45 5 10
P102 Bread 35 4 20
P103 Toothpaste 67 5 30
P104 Soap 40 3 20
Table: Company
Bid Bname
10 ITC
20 BRITANNIA
30 COLGATE
a. Show all products and their company names.
b. Display the structure of the table products.
c. Display the total number of products of each
company.
SS Page 9 of 12
d. Display the price of each product for 10 units.
SECTION E
LONG ANSWERED QUESTIONS [5X2=10]
OR
{MNO:[MNAME, MTYPE]}
Where
MNO – Movie Number
MNAME – Movie Name
MTYPE is Movie Type
Write a user defined function, findType(mtype), that accepts
mtype as parameter and displays all the records from the
SS Page 10 of 12
binary file CINEMA.DAT, that have the value of Movie Type
as mtype.
SS Page 11 of 12
(c) Suggest the most suitable place (i.e. building) to house the
server with a suitable reason.
(d) Name a device can be used to connect computers in each
building.
(e) Suggest the type of protocol used for Face to Face calling
between the buildings.
SS Page 12 of 12