0% found this document useful (0 votes)
122 views12 pages

12 CS PreBoard SS 2024

Question paper of board 2Effect of sodium carbonate on foaming capacity of a soap project

Uploaded by

vibhooti849
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views12 pages

12 CS PreBoard SS 2024

Question paper of board 2Effect of sodium carbonate on foaming capacity of a soap project

Uploaded by

vibhooti849
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

PREBOARD EXAMINATION (Dec-2024)

SUBJECT: Computer Science TIME: 3 Hrs


CLASS: 12 MAX. MARKS: 70

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]

1. Which of the following are sequence of character data?


a. Dictionaries
b. Tuples
c. List
d. Strings
2. The ___ keyword sorts the record in ascending order
by default.
a. ORDER
b. ORDER BY
c. GROUP BY
d. DEFAULT
3. The output of the following will be

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

6. Geometric arrangement of devices on the network is


called
a. Media
b. LAN
c. Protocols
d. Topology
7. To read twelve characters from a file object File we use
a. File.read(12)
b. File.readline(12)
c. File.read(11)
d. File.read(13)

8. How a>b>c will be interpreted by python?


a. a>b or a>c
b. a>b not a>c
c. a>b and a>c
d. a>b && a>c
9. Soumya is trying to understand the features of python
functions. She is not understanding the feature that
distributes the work in small parts. Select the
appropriate term for her out of the following:
a. Modularity
b. Reusability
c. Simplicity
d. Abstraction
SS Page 2 of 12
10. Example of SQL aggregate function is
a. Len
b. Join
c. Left
d. Avg
e.
11. The default return value for a function that does not
return any value explicitly
a. Double
b. None
c. Null
d. Int

12. Rewrite the given MySQL command after removing


the error(s).
SELECT Name, Age and Marks FROM Student ORDER BY
Marks DESCENDING WHERE Age>=10;
a. SELECT Name, Age, Marks WHERE Age>=10
ORDER BY Marks DESC FROM Student;
b. SELECT Name, Age, Marks FROM Student WHERE
Age>=10 ORDER BY Marks DESC;
c. SELECT Name, Age and Marks FROM Student
WHERE Age>=10 ORDER BY Marks DESC;
d. SELECT Name, Age, Marks FROM Student ORDER
BY Marks DESC WHERE Age>=10;
13. Firewall is used to protect:
a. Unauthorized access and viruses.
b. Adware
c. Password hacking
d. Spyware
14. Select the proper order of execution for the following
code:
A. def diff(a,b):
B. c=a-b

SS Page 3 of 12
C. print(“The Difference is :”,c)
D. x,y =7,3
E. diff(x,y)
F. print(“Finished”)

a. A -> B -> C -> D -> E -> F


b. D -> E -> F -> A -> B -> C
c. D -> E -> A -> B -> C -> F
d. E -> B -> C -> D -> A -> F
15. To obtain all the records retrieved, you may use
<cursor>. ___ method.
a. Fetchall()
b. Fetch()
c. Fetchmany()
d. Fetchmultiple()

16. Raghav is trying to write an object obj1 = (1,2,3,4,5) on


a binary file "test.bin". Consider the following code
written by him.
import pickle
obj1 = (1,2,3,4,5)
myfile = open("test.bin",'wb')
pickle._______ #Statement 1
myfile.close()
Identify the missing code in Statement 1.
a. dump(myfile,obj1)
b. dump(obj1, myfile)
c. write(obj1,myfile)
d. load(myfile,obj1)

17. Which of the following is true regarding Primary Key?


(i) A Primary Key may contain NULL values.
(ii) A Primary Key is must for every table.
(iii) A Foreign Key derives its values from Primary
Key.

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]

22. Write the output given by following: [2]


a. “reform repeller”.replace(“re”,”we”)
b. “plastic reuse recycle recure”.split(“r”)
23. What will be the output of the following code? [2]

24. Write a Function to accept a list and multiply its every


even element with 3. [2]
25. Find errors in the following code and correct the code
by rewriting it and underlining the corrections:
[2]

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:

SELECT CLASS, COUNT (*) FROM STUDENT


GROUP BY CLASS WHERE CLASS!= ‘XII’;

Help her in identifying the reason of the error and write


the correct query by suggesting the possible correction
(s).

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]

29. What do you understand by local and global scope of


variables? How can you access a global variable inside the
function, if function has a variable with same name [3]

30. What do you mean by Cursor? How does Fetchmany()


differ from Fetchall()? [3]
31. Write a function RemoveList() that accepts a list as
parameter. It should copy the values present at odd index
numbers in the list to a new list. [3]
OR
Write a function in python to read a csv file “Airways.csv”
and display only those records where consumer’s name is
five character long. Each record contains [CNo,
Cname,Fare]. consumer’s number, name and Fare.

SECTION D
LONG ANSWERED QUESTIONS [4X4=16]

32. A) What is the Degree and Cardinality of below given


table Items.
B) Observe the following table and write SQL statements
for the given statements.
[2+2]

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.

35. Write a function in python, MakePush(Package) and


MakePop(Package) to add a new Package and delete a
Package from a List of Package Description, considering
them to act as push and pop operations of the Stack data
structure [4]

SECTION E
LONG ANSWERED QUESTIONS [5X2=10]

36. (i)Differentiate between r+ and w+ file modes in Python.


(ii) Consider a file, SPORT.DAT, containing
records of the following structure:
[2+3]
[SportName, TeamName, No_Players]
Write a function, copyData(), that reads contents from the file
SPORT.DAT and copies the records with Sport name as
“Foot Ball” to the file named FOOTBALL.DAT. The
function should return the total number of records copied to
the file FOOTBALL.DAT.

OR

(i) How readline() is different from readlines()?


(ii) A Binary file, CINEMA.DAT has the following structure:

{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.

37. Pandas infosystem has its four blocks of buildings . [5]


The number of computers and distances between the
buildings is given in the diagram below:

(a) Suggest the most appropriate topology for the connection


between the offices with one advantage of it.
(b) Suggest a cable layout of connections between the
buildings so that each building is directly connected to
administrative office.

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

You might also like