0% found this document useful (0 votes)
28 views

Adobe Scan 5 Jan 2025

This document is a question paper for the Pre-Board Examination 2024-2025 for Class XII in Informatics Practices, consisting of 37 compulsory questions divided into five sections with varying marks. It includes questions on Python programming, SQL queries, and concepts related to databases and data analysis. The paper emphasizes the use of Python for programming questions and includes both multiple-choice and assertion-reasoning type questions.

Uploaded by

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

Adobe Scan 5 Jan 2025

This document is a question paper for the Pre-Board Examination 2024-2025 for Class XII in Informatics Practices, consisting of 37 compulsory questions divided into five sections with varying marks. It includes questions on Python programming, SQL queries, and concepts related to databases and data analysis. The paper emphasizes the use of Python for programming questions and includes both multiple-choice and assertion-reasoning type questions.

Uploaded by

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

~ fa~lclliWfO'l, ~ ~

KENDRIYA VIDYALAYA SANGATHAN, BENGALURU REGION


'Q'ifll 'dt-m trttarr 2024-2025
I[ PRE-BOARD EXAMINATION 2024-2025
sn -i
MAX MARKS: 70
CLASS: XII TIME: 3 HRS
SUB: INFORMATICS PRACTICES

General Instructions:
• Please check this question paper contains 37 questions.
• 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 S Sections- A, B, C, D and E.
• Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
• Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
• Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
• Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
• Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
• All programming questions are to be answered using Python Language only.
• In case of MCQ, text of the correct answer should also be written.
Marks
Section-A (21 x 1 = 21 Marks) 1
QNo.
State whether the following statement is True or False:
/, Series are size and value mutable.
With respect to databases, a field in a relation is also known as a/an
1

I r

a. Record
,I.
b. Tuple
C. Attribute
, d. Degree 1
Which among the following hardware devices... is capable of connecting
l networks belonging to different network protocols?
a. Modem
b. Repeater
c. Hub
d. Gateway 1
Pick the odd one out of the following?
f a. update
b. select
c. drop
d. delete
1
;s Which among the following is not an impact of e-waste on the
environment?
a. Global Warming
b. Deforestation
1
-

c. Soil erosi on
-
I
~- Heavy metals in wate r and soi l 1
Which of the following command is used to display first t hree rows of a
DataFrame 'DF'?
a. OF.head()
b. OF.header()
C. OF.head(3)
d. OF.Head(3)
1

I Which of the following is used to save a graph plotted using


matplotlib.pyplot library?
a. savefigure()
b. savegraph()
C. savefig()
I d. None of the above
1

I r
State whether the following statement is True or False:
The Order By Clause in SQL helps to permanently sort and save the
contents in a table of a database.
1
! Which of the following functions is used to import a dataframe from csv
file?
a. read_csv()
b. import_csv()
C. to_csv()
d. export csv{)
1

l
The practice of sending fraudulent communications that appears to come
from a reputable source. It is usually done through email. The goal is to
steal sensitive data like credit card and login information.
a. Bullying
b. Plagiarism
C. Phishing
I d. Licensing
Which SQL statement do we use to find the total salary of all the 1

/1 employees from Employee table?


a. SELECT * FROM Employee;
b. SELECT COUNT (Salary) FROM Employee;
c. SELECT SUM (Salary) FROM Employee;
I

I d. SELECT SUM () FROM Employee;

t Which among the following topology has Centra l Node dependency?


a.
b.
c.
Bus
Sta r
Tree
1

d. M esh
- h -d . - d _ _ _ _
Wh ich among the following met _ ·- - - - - .,..- --
· O is use to remove a row or column 1
f rom a given Data Frame?
a. del()
b. delete()
c. drop()
d. None of the above
1
Violation of intellectual property right may happen by
a. Plagiarism
b. Copyright Infringemen t •·
c. Trademark Infringemen t
d. All the above 1
Which of the following command will display the row ilabels of the
DataFrame?
a. print(df.index())
b. print(df.rows())
c. print(df.index)
d. print(df.rows) 1
Consider the following query
SELECT * FROM employee ORDER BY salary _ ___, name _ __,
To display the salary from largest to smallest and name in alphabetical
order which of the following options should be used?
a. Ascending, Descending
b. Ase, Desc
c. Desc, Ase
d. Descending, Ascending 1
With _ _ _ _ _ function of pandas module you can iterate over
dataframe row-wise where each rows values are returned in form of a

series type object.


a. iterrows()
b. iteritems()
c. iteraterow()
d. lterRows()
1
Which is the default position of legends in a graph?
a. upper left
b. upper right
c. lower left
d. lower right 1
Name the type of network wh ich is formed by connecting two smart

phones?
a. WAN
i
c. MAN ..._____ r
L - L~d~.~PA~N~ ----- :--~ --:-: :-~~ ~=;;- ;::-z:- :;-,.~: ::--\ I
Q-20 and Q-21 are Assertion (A) and Rea son (R) Type questions. Choose
the correct option as:
a. Both Assertion (A) and Reason (R) are true, and Reason (R) is th e
correct explanation of Assertion (A)

b. Both Assertion (A) and Reason (R) are true, but Reason (R) is not th e
correct explanation of Assertion (A)
c. Assertion (A) is True, but Reason (R) is False
d. Assertion (A) is False, but Reason (R) is True
Assertion (A): The attribute loc of dataframe can be used to add new rows 1
and columns .
Reason (R): In a dataframe new rows and columns can be added after
creating a dataframe.
Assertion (A): The ALTER TABLE query can be used to add a column in a 1
table.
Reason (R): ALTER is a DML query and is used to make changes in the
table design.
Q No. Section-8 (7 x 2 = 14 Marks) Marks
A. What is a Series in Python Pandas? Which module you need to 2
import in your program to create a Series?
(OR)
B. Name the module to which the following functions belong to:
(i) hist{)
(ii) DataFrame{)
What is open-source software? Give an example of an open-source 2
programming language.
Consider the string: "First Pre Board Examination 2024". Write suitable
2
SQL queries for the following:
a. To extract and display the string "Exam" from the above string.
b. Display the entire string in upper case.
A. What is the difference between website and a web page?
2
[OR)
B. Give an example for a commonly used browser? What are add-ons in
a browser?
Differentiate between primary key and alternate key with respect to a
2
table in SQL?
Your friend has used a poetry written by you and posted online claiming
2
hero n.
What is the cybercrime mentioned above?
Which Information Technology ne t viol
ation has bee n com mitt ed
..,-
11.

1--- --,·
by her?

A Manav is wri ting a Python prog ram


--
to c~eate a Da taFr; ; using a Ii~ 2
tain s som e mis takes. Help him to
28 . of diction aries . Howeve r, his cod e con
code, and und erlin e the
/ identify the erro rs, rew rite the correct
correcti ons made.

imp ort Pandas as pd


Dl={"Co unt ry" :"USA i•,"M edals":126 }
D2= {"Co unt ry ": "Chi na", "M edaIs" :91}
11 11
D3=["Co untr y":" lndi a 1 M edals":6]
D=[D l,02 ,03 ]
Olympics =pd .Dat aframe(d)
print(Olympics)
[OR]

get the required outp ut (ignore


B. Complete the given Python code to
th e dtype attri bute ) as:
Science 121
Commerce SO
Humanities 34
Arts 40
imp ort _ _ _ _ _ pd
data=[121,S0,34,40]
nities", "Arts"]
values=["Science", "_ _ _ _ _ ","Huma
S=pd.Series(data,index= )
print( )
Marks
Q No Section-C (4 x 3 = 12 Marks)
3
new range of smartphones creating
A new mall in the city has launched a
However, the intro duc tion of these
a buzz among technology enthusiasts.
ut the increasing generation of e-
new devices has also raised concerns abo
waste in the com mun ity.
on above extract :
Answer the following questions based
Define e-waste.
posed bye -waste, including
Give any one environmental challenge
its impact on air, water, and soil quality.
f Imagine you are a part of a local environ
ment organization . Provide
ented to min imize the
any two strategies that could be implem
negative environmental effects of e-waste
.
3
the following DataFrame using a
A. Write a Python program to create
list of dictionaries .
5
- p;

Sportsid Region
-- ~

Sports Name
0 1001 Cricket Agra
1 1020 Football Lucknow
2 103 1 Swimming Delhi

[OR)

- Write a Python Program to create a Pandas Series "Houses" as


~ho_wn below using a dictionary. Note that the left column
indicates the indices and the right column displays the data.
Shivaji 500
Tagore 525
Ashoka 512
--- Raman 526
e) I. Write an SQL statement to create a table named TEACHER, with
thefollowing specifications:
3

Column Name Data Type Constraint


Tid int{lO) primary key
Tname Varchar{20} not null
Dept Varchar{20}
DOJ Date not null
Salary int{l0)

11. Write SQL Query to insert the following data in the Teachers
Table
,,,_j 2825, Minaxi Prasad, Science,2010-09-28, 75000
:i

J;{J
A. Consider the following tables given below:
Table: Trainer
Tid Tname City Salary
101 SUNITA MUMBAI 8000
102 ANAMIKA DELHI 9000
103 VARUN MUMBAI 7000
Table: Course
Cid Cname Fees Startdate Tid discount
10001 PGDCA 12000 2018-10-15 101 500
10002 DCA 5000 2018-05-17 101
10003 CCNA 9000 2019-05-20 102 300
10004 CCNA 13000 2020-10-01 103
10005 PGDCA 15000 2018-10-10 103 400
Write appropriate SQL queries for the following:
I. Display Course name-wise total Fees.
11. List all trainer names in the decreasing order of Salary.
a £13¥

- --
Dis play Course name along w·tI h th-:err corre span d.rng Trainer
-
/// .
Names.
[ORJ
B. Writ~ the outputs of the SQL queries (i) to (iv) based on the
en below:
relations Teacher and Placement giv

Table : Teacher
I ID Name Age Department Date of_join Salary Gender
I Arunan 34 Computer Sc 2019-01 -10 12000 M
2 Saman 31 History 2017-03 -24 20000 F
3 Randeep 32 Ma the ma tics 2020-12-12 30000 M
4 Samira JS History 2018-07-01 40000 F
5 Raman 42 Mathe ma tics 2021 -09-0S 25000 M
,
0 Shyam 50 History 2019-06-27 30000 M
7 Sh i v 44 Computer Sc 2019-02-25 21000 M
8 Shalakha 33 Mathematics 2018-07-31 20000 F

Table : Placement
P_ID Department Place
1 History Ahmedabad
2 Mathematics Jaipur
J Computer Sc Nagpur

I. Display Gender wise average salary.


II. list all teacher names in Upper case.
with the place of placement.
Ill. Display Name of Teacher, Age along Marks
Section-0 (2 x 4 = 8 Marks)
QN g( in the 4
dal won by different Countries
Jhanvi needs to compare the me

V recent Olympics. She needs to create


to com plete the blanks
executes successfully.
so tha t the
chart for this purpose. Help her
a bar
python code for creating the bar cha
rt

ber of medals secured by 4


This bar chart represents the total num
countries in Olympics 2024.
Country Medals
JAPAN 45
CHINA 91
INDIA 6
USA 126

Help Jhanvi to complete the code.

I '10 00
~0 :,0 0
i,5 00 0
;>,0000
~,eoo
7

~
- - - , - ~ ~ ~
------- - --
r-- ~ - -- - - - - -
.,1-~<-11l-t-<11111_11_
-- ,
r,-.. -
1

: J

.,
,' _q
'.)

'
-/ 1.'I
:,

:u

C
1 \ F,,.\

#Statementl
imp ort _ _ _ _ __ _ _ as pit
X=["JAPAN","CHINA","INDIA","USA"]
Y=[45,91,6,126)
plt.xlabel("COUNTRIES")
atement2
pit. _ _ _ _ ("TOTAL MEDALS") #St
pit. _ _ _ (X,Y) #Statement3
ison")# Statement 4
plt._ _ _ _ _ _ ("M eda l Compar
pit.show() 4
aging the Databases of his
A. Raj is a Database adm inis trat or man
g table Employee. Based on the
company. He has created the followin
stions:
follo win g table ans wer the given que
Table : Employee
Doj Salary Dep t
EmpNo Nam e Gender
M 2023-10-12 5000.75 HR
111 Sapan
F 2012-06-15 7000.54 Finance
112 Sunita
M 2006-05-21 8000.36 Finance
113 Rohan
2012-05-12 8500.57 HR
114 Ratna F
2006-06-16 9000.92 Tech
Asha F
115 HR
M 2023-04-10 5000.55
116 Raja
Wr" e the foll owi ng SQL queries:
t thre e alphabets of name in
i) Wri te a SQL que ry to display the firs
upp er case.
rou nde d to 1 decimal place
Wri te a SQL que ry to display salary
artm ent .
for all em plo yee s who are in HR dep
details of employee table in
Wri te a que ry to display the ent ire
des cen din g ord er of name.
der and name of the mo nth
Wri te a que ry to display name, gen
re tha n 6000.
for all em plo yee s wh o get salary mo
(OR]
8

-rt. '
Neha. is running a traveI age ncy. In order- tO k
business activity sh h
the table Travel ~ as created th e following Travel table. Based on
.1
eep track of her da1 y

bl , write the output of th e following SQL queries.


1a e name: Travel
Ticketno Pname Source Destination seats cost DOJ
10000 1 RAJAT BLR HYD 2 2000 2024-09-12
100002 OMVIR MUM KOL 3 5000 2024-08-02
~ 100003 SUPRATEEK BLR CH E 3 3000 2024-09-08
, 100004 AHMED CHE HYD 2 2000 2024-08-02
100005 RAJMAN MUM KOL 4 3000
100006 SUJATA BAN 5 5oo6 2024-09-21
KOL
100007 AMAN HYD BAN 2 60o6
HYD 3 5000 2024-09-28
100008 JEESHAN MUM

4~
Jt(Y
ii,
SELECT Pname from Travel where cost between 5000 and 6000;
SELECT Source,Destination fromTravel where DOJ is NULL;
SELECT left(Pname,3) from Travel where month(DOJ) =8
SELECT min(DOJ) from Travel;
Section-E (3 x 5 = 15 Marks)
Marks
QN51 5
ABC Net Solutions are setting up their corporate centre at Chennai. They

V have four buildings on their campus.

A 0 T

~ I 0 I

Distance between the various blocks is as follows:


Admin to Training 50 m
Admin to Finance 120m
Admin to Resource 80m
Training to Finance 110m
Training to 120m
Resource
Finance to 70m
Resource
Numbers of comouters in each block
Admin Unit 80
Training Unit 100
Finance Unit 200
Resource Unit 90

9
se on the above informatio~ answer the following qu estions:

A
.W
Suggest the appropri ate building th at should host the server. Give
reasons to justify your answe r.
Suggest the topology and network type(LAN, MAN, WAN) that is
/ / suitab le for the cable layout in the c hennai campus to interconn ect
the buildings .

I Suggest the placement of the following devices :


i)
ii)
Repea ter
Switch/h ub
) Also draw a cable layout indicating the interconnection between
he buildings.
Which device should be used to connect to internet from the
cam us usin a tele hone line.
onsider the Data Frame df shown below. 5

sno social media Year Users(in billion)


0 1 Facebook 2021 2.85
1 2 lnstagram 2022 2.00
2 3 Twitter 2023 1.00
3 3 Youtube 2024 2.50

Write Python statements for the DataFrart;1e df to:

Print the first two columns of the Data Frame df.


Display the value 2.85 from the dataframe df.
Display the data of the 'Social Media' column from indexes lto 3
(both included)
Rename the indices of dataframe to A,B,C,D
Remove the column Users from the dataframe df.

5
Write suitable SQL query for the following:
To display the total salary of employees in an employee table.

·r.
To display the last four letters of author _name in the table books.
To display the total number of characters in tname column of a
teacher table.
To display the bookname column of Books table in upper case.
To determin e the cardinality of Library table .

(OR] tr'
~

Write suitable SQL query for the following :


Round the number 285.1254 to three decimal places
Calculate the remainde r when 225 is divided by 9.
Display the String 'Class122~24' aJter removing the leading spaces.
Display the result of expression 5
Display the string 'for' from the string 'Informatics Practices'.

10

You might also like