12 IPRevision Papers 2025
12 IPRevision Papers 2025
AGRA REGION
FIRST PRE-BOARD EXAMINATION (2024-25)
CLASS-XII MQA �
Time: 3 Hrs Subject : INFORMATICS PRACTICES MM: 70
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 5 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 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. ·
Q.no. Part-A Marks
(1) P.T.O.
Identify the SQL comman used to change name of column ina table: 1
4
'
(A) DROP TABLE '
(2)
10 Which of the following actions is considered a form of plagiarism? 1
(A) Quoting someone's work with proper citation
(8) Paraphrasing text without attribution
(C) Creating original content based on research
(D) Citing sources correctly in a bibliography
11 Fill in the Blank 1
The AVG() function in SQL is used to calculate the
oaf numeric column in a relational database.
(A) Sum
(8) Maximum
(C) Average
(D) Count
12 In which of the network topologies are all devices (nodes) on the 1
network is connected to a central device, such as a hub, switch, or
router?
(A) Star
(8) Tree
(C) Mesh
(D) Bus
13 In a Pandas DataFrame, if the head() function is used without 1
specifying the optional argument indicating the number of rows to
display, what is the default number of rows displayed, considering'the
DataFrame has 40
; I
entries?
(A) 3
(8) 5
(C) 10
(0)20
14 Identify the type of cybercrime where attackers impersonate a legitimate 1
entity to deceive individuals into providing sensitive information like
usernames, passwords, credit card numbers, or other personal data.
(A) Phishing
(3) P.T.O.
(8) hacking
(C) Identity Theft
(D) Cyberstalking
15 While creating a DataFrame using a dictionary of lists, the keys of the 1-
dictionary become:
(A) Column names
(B) Row indices
(C) Values in the first row
(D) Data types of the DataFrame
16 Match the following SQL functions/clauses with their descriptions: 1
SQL Function/Clause Description
P. COUNT() 1. Filters rows based on a condition.
Q. GROUP BY 2. Groups rows sharing a property
for aggregate functions.
R. WHERE 3. Returns the number of rows in a
result set.
s. SUM() 4. Calculates the total of numeric
values in a column.
(A) P-3, Q-2, R-4, S-1
(.B) P-2, Q-1, R-3, S-4
(C) P-3, Q-2, R-1, S-4
(D) P-1, Q-3, R-2, S-4
17 What does the df.iloc[] function allow you to do in a DataFrame? 1
(A) Select rows and columns by labels
(B) Select rows and columns by integer position
(C) Filter data based on condition
(D) Rename columns in the DataFrame
18 Which Matplotlib plot is best suited to represent the distribution of data 1
into bins or ranges?
(A) Line plot
(8) Scatter plot
(C) Histogram
(D) Pie chart
(4)
19 Which type of network is designed to cover a large geographical area, 1
such as cities or countries?
(A) PAN
(B) MAN
(C) LAN
(D) WAN
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions.
Choose the correct option as:
(A)1Both Assertion (A) and-Re son (R)-are true,-and Reason (R) ;, - is
the correct explanation of Assertion (A)
(8) Both Assertion (A) and Reason (R) are true, but Reason (R) Is not
the 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
20 Assertion (A): We-can filter rows in a DataFrame based on·a condition. 1
Reason (R): The loc □method allows for label-based indexing and
conditional filtering in Pandas. . · ,. . . , .,. ·.• , • . ,. :: ..
21 Assertion (A): In SQL,,the DELETE command is used to remove rows 1
from,a,table. , .· , - · · •" •. : ,- .,.,, · --- ,
Reason (R): The DELETE command··is a Data Manipulation Language
(DML) command. ,
Q.no. Part-8 Marks
22 (A) What is1a DataFrame•in F?ython Panda_s?,.;Explain•with·an example. 2
.:.. - .. OR-.. · ·: --- . ".::';' --.-·-..........:.:
(B) How do the head() and·tail() functions work in a Pandas Series?
23 What is data privacy, and why is it important in the digital age? 2
24 Consider the string: "Information Technology" 2
I. Write·an SQL query to extract andndisplay the word "Tech" from the
string.
It Display the position of the first ocGurrence of the word "Info" in the
given string.
25 (A)What is the role of HTTP in the World Wide Web, and how is it 2
related to the Internet?
(S) P.T.O.
OR -
(B) What is a web browser? Name some commonly used browsers, and
explain the purpose of browser settings.
26 Define the term Alternate Key in a database. Explain how it is different 2
-
from a Candidate Key.
27 How can prolonged use of digital devices impact mental health, and 2
what is one way to mitigate these effects?
28 (A) Rahul's Python program is supposed to create a DataFrame from 2
a dictionary of lists. However, his code has a few mistakes. Identify
and correct the errors:
import pandas pd
data = {'Name': [Aman, lsha, Neha], 'Age': [22, 24, 231}
df = pd.dataframe(data)
print (df)
OR
(B) Complete the given Python code to create a DataFrame with the
following output:
City Population
0 Mumbai 20400000
1 Delhi 16700000
2 Bengaluru 8400000
import as pd
data= {'City':.rMumbai', 'Delhi',' '], 'Population':
[20400000, 16700000,8400000]}
df = pd.. (data)
print('------')
Q.no. Part-C Marks
29 Rahul wants to throw away his old mobile phone, but he's not sure how 3
to do it properly.
I. What are the environmental risks of disposing of mobile phones
improperly?
II. What is one eco-friendly way Rahul can dispose of his old phone?
Ill. How does proper disposal of mobile phones benefit the environment?
(6)
30 (A) Write a Python program to create the following DataFrame using a 3
List of dictionaries:
Name Marks
Riya 85
Aman 90
lsha 78
Neha 88
OR
(B) Write a Python program to create a Pandas Series using a dictionary,
where the indices are fruits and the data are their colors as shown below:
Apple Red
Banana Yellow
Grapes Green
31 I. Write an SOL statement to create a table named EMPLOYEES with the 2+1
following specifications:
II. Write an SOL query to insert the following data i_nto the EMPLOYEES
table:
101, John, Doe, 2015-05-20, 60000.00
(7) P.T.O
32 (A) Consider the following tables: 3-
Tables:
EMPLOYEE which stores Employee ID (EMP_ID), Employee Name
(EMP_NAME), Employee City (EMP_CITY)
PAYROLL which stores Employee ID (EMP_ID), Department
(DEPARTMENT), Designation (DESIGNATION), and Salar)(SALARY)
for various employees.
Sample Data: Table: EMPLOYEE
EMP_ID EMP_NAME EMP_CITY
1 ABHINAV AGRA
2 KABIR FARIDABAD
3 ESHA NOIDA
4 PAUL SEOUL
5 VICTORIA LONDON
Table: PAYROLL
EMP ID DEPARTMENT DESIGNATION SALARY
(8) .
1. STUDENT which stores StudentlD, Name, and Major. The table
displays basic Information of the students.
2. COURSES which stores Studentl0, CourseName, and Credits. The
table displays the courses each student Is enrolled In along with the
C'OtTespondlng credits.
Sample Data: Table: STUDENT
StudentlD Name Major
Table: COURSES
StudentlD CourseName Credits
201 Data 4
Structures
201 Algorithms 3
202 Calculus 4
203 Quantum 3
Mechanics
204 Operating 4
Systems
205 Linear 4
Algebra
205 Statistics 3
Write appropriate SQL queries for the following:
I. Display the total no. of students major wise.
II. Display the names of all students majoring In 'Mathematics' In
uppercase. Ill. Display the student names along with their corresponding
courses.
P.T.O.
(9)
Q.no. Part-D Marks
Fill in the blanks in the code to generate the following line graph.
import as pit # Statemen\-1
r
students= John', 'Sarah', 'Mike', 'Emily1
scores= [88, 92, 75, 85)
plt.plot(students, , label='Test # Statement-2
Scores')
plt.xlabel('Student Name')
plt.
('Test Score') # Statemen 3
pit.legend()
pit.title(' ')
# Statement-4
pit.show()
I. Write the suitable code for the import statement in the blank space
in the line marked as Statement-1.
II. Refer to the code shown above and fill in the blank in Statement-2 with
·
34 (A) suresh, who works as a databate designer, has developed a · 4
database for a holtwood. This database Includes a table iOVIE whose
column (attribute) names are mentioned below:
• MCOOE: Shows the unique code for each movie.
• TITLE: Indicates the movie's title.
• DIRECTOR: Specifies the director's name.
• RATING: Lists the rating of the movie (out of 10).
Table: MOVIE
MCODE TITLE DIRECTOR RATING
M001 INCEPTION CHRISTOPHER 8.8
NOLAN
M002 THE DARK CHRISTOPHER 9.0
KNIGHT NOLAN
M003 INTERSTELLAR CHRISTOPHER 8.6
NOLAN
M004 PARASITE BONG JOON-HO 8.6
MOOS THE FRANK DARABONT 9.3
-
SHAWSHANK
REDEMPTION
'
(1 P.T
• SUP_NAME: Specifies the supplier's name.
• CITY: Indicates the city where the supplier is located.
• PHONE: Lists the contact number of the supplier.
• JOIN_DATE: Specifies the date when the supplier wasadded.
Table: SUPPLIER
SID SUP NAME CITY PHONE JOIN_DATE
S01 Med Supplies MUMBAI 1234567890 2023-05-01
S02 HealthPlus KOLKATA 9876543210 2022-11-15
S03 PharmaDirect BENGALURU 4561237890 2023-01-10
S04 QuickMeds CHENNAI 7894561230 2023-02-05
(12)
The number of computers In each departmenUoffice is as follows:
• Development: 200 computers
• Marketing: 100 computers
• Sales: 50 computers
• Support: 30 computers
• Chennal Office: 60 computers
I. Suggest the most suitable department in the Delhi Head Office to
install the server. Justify your answer.
II. Draw a suitable cable layout of wired network connectivity between
the departments in the Delhi Office.
Ill. Which networking device would you suggest the company to
purchase to interconnect all the computers within a department in Delhi
Office?
IV. The company is considering establishing a network connection
between its Delhi Head Office and Chennai Branch Office. Which type of
network-LAN, MAN, or WAN-will be created? Justify your answer.
V. The company plans to develop an interactive website that will enable
its employees to track their work •progress after·logging in. Would you
recommend a static or dynamic website, and why?
36 Consider the DataFrame df shown below: 5
DataFrame: df
BooklD Title - Author Year Price
0 The Paulo Coelho 1988 499
Alchemist
1 The Da Vinci Dan Brown 2003 350
.
Code
2 ' Sapiens Yuval Noah 2011 599
Harari
3 Atomic James Clear 2018 450
Habits
4 Becoming Michelle 2018 550
Obama
(13) P.T
I. Print the first three rows of the DataFrame df.
II. Display titles of all the books.
Ill. Remove the column Price.
IV. Display the data of the 'Title' column from indexes 1 to 3 (both
included).
V. Rename the column name 'Title' to 'Book_Title'.
37 (A) Write suitable SQL query for the following: 5
I. To display the sum of marks from the marks_obtained column
(attribute) in the Results table.
11. To display the first two characters of the product_code column
(attribute) in the Inventory table. (Note: The product codes.are stored in
the format PRD-0012345).
111. To display the data from the column (attribute) customer_name in
the Customers table, after converting the name to uppercase.
IV. To display the minimum value i_n th purchase_amount column
(attribute) of the Orders table.
V. To determine the count of unique values in the category column
(attribute) in the Products table.
OR
(8) Write suitable SQL query for the following:
I. Round the value of 22/7 to three decimal places.
II. Calculate the remainder when·1s6 is divided by 11.
Ill. Display the number of characters in the word 'Bangalore'.
IV. Display the first 6 characters from the word 'lnformatic Practices'.
V. Display details from the 'username' column (attribute) in the
'Employees' table, after removing any leading and trailing spaces.
(14)
. -- .
3 In column 'Margin',contains the data set (2.00,'2.00, NULL; 4.00, NULL; 3;00;3.00); 1
What will be the outp t after the execution of.the given query? · · ' ;
· SELECT AVG(Margin) from SHOP; . . ; .
(a) 2.80 (b) 2 · (c) 2.0· ,. ,· (d) error ·
4 Which of the following topologies is also_Iq10\l/Il Linear Topology?. 1
(a) Star Topology (b) Ring Topology' : (c) Bus Topology (d) N,one of th.es e .
1 5 Whic,?1
Ir--_a,.J-_ £M , ' °}.:. .;
foll g1 gµ_tµe > jJIJ>. - J9 plyjl,<?f;t \t l Ji .C,;;>r1'. .o
trans,emng uata irom CSV fil to·-ilieDataFrarncf?,-·; -? .------
1 -----i---, T
1
'-- -(A)-Head:=None . ,,. o1·,.• .. '._(B)'.b J;;;;True --------- - _:_: ,
I. t- . !- C column=None- i"'.ii.'eade Fals{.f1i 8 ll1:)G o.Ll J[os1 b \ tl l-
16 I . Wri_te wheth r the f llo g state t are True/F _ls'e'-'
i2j _ _ 1
1 1 ' ''' 1
While renammg a column of a Dataf,ramenYP4 qnly JJ. Joim.entjontn W.- lWMpam :
. as arametertotherreilam . function. ·,r,,, n)/'\r.')I , .) .r,i r,-.[ ( '.', - ,ir•; :rr,...·( ) t
-
. :mit is wri inga Python. rogram to. create a DataFrame usingilisfof.diclio iii s. ,
. owever, ?'s code contains some mistakes. Identify the errors, rewrite the correct co<ie 2
1
nd underline the corrections made. '
import pandas as pt
D1={'Name':'Ram','Age':32}
D2={'Name':'Sccta','Age1:27}
D3={'Name':'Shyam','Age':29}
data=[Dl,D2,D3)
df=pd.Datafmme(datn)
print(Df)
OR
Complete the given Python code to get the required output (ignore the dtype attribute) as
Output: · · · -
New Delhi New
Delhi Madhya Pradesh
Bhopal
Tripura Agartala
Code:
:. mport · _ as pd
mdx=['New Delhi','Bhopal',' ']
data=['New Delhi', 'Madhya Predesh', 'Tripura']
s=pd.Series(indx, )
rint
24 2
25 Write suitable SQL queries for the.following. 2
(a) To.display the first 3 characters, extracted from the extreme right position of the
given string 'Majlabh rat'. _ _ . . .
To dis la a substrin 'funn '.from a ·ven strin 'En tish is a funn Ian ·a e'.
26 Define_t4e_teni1 Referential Integrity in a database. Explain how it is different from a 2
Prima Ke . . ._.
27 (A) Differentiate between absolute URL and relative RL. _ 2
- - -· OR
28 List any two health hazards related to excessive use of technology and also give two point 2
- for revention of these health hazards. ' - · -· · '' ·-
Section C 4 X 3= 12 Marks
29 3
30 (A) (i) Write a Python program to create the following DataFrame using a list of 3
dictionaries. ·
COMPANY CITY
Cl MICROSOFf SAN FRANCISCO
C2 COCA-COLA NEWYORK
C3 INFOSYS BANGLORE
C4. TVS DELHI
.
"
- - ·,, -
SNO TYPE-· -
ITEMNAME lPRICE .
1 Chaises 11500 ft
Living
2 Accent Chairs Living 31000 , '
3 Bnkcr Racks Kitchen 25000·
4 Sofa Living 7000
5 Nig htstand Bedroom 10000
Write SQL_queries forthe followmg. .
!:
Di plat all the records in descending order of price.
: Da play the type and total number of items of each·type.
. m. Display the average price of each type.
3
32 Consider the Following tables:
T ble I: Item which stores Product code(Pr code) Product description (Item Name)
pnce of product (Price) · .- · ' · ·
T.able 2· · Brand wh1' ch stores Product code(Pr code) and.brand narrie(Brand Name) for
vanous products. . . - . ·. -
N A · . .
ote: ttn but es names are written within brackets .. I, ,
Table: Item(Pr Code,Item Name.Price] '. . . .!·. • ,1,
Table: Brand[Pr Code, Brand Name]
Table: Item ..
.l Price
.. J
Table:Brand -
, ·pr Code Brand_Name :
Pr·code Item Name
.
P111 .Sony
Plll . ' .Television, •n .85000
•• • r
r-------_-_.. ..
· name New_Price.
-i---
OR
!
+---
I
I
.....- -----
-
;MMO
·
-
IndianAlbwns ! ;
AlbumlD INT ..
Attribute Data Type
VARCHAR(100)
AlbumName '.
- ArtistlD INT
ArtistfD INT - VARCHAR(lOO)
ReleaseYear · INT - ArtistName
Nationality VARCHAR(50) ·
Genre VARCHAR(50) 'I
Sales OECIMAL{10, 2)
-- '-·-· ·-- -·- ---··- - --- ...... ---·-··-·.........'!' -••·
Language -
. VARCHAR(50)
. tasks: . .
· WriteSQL.queries to perfonn the following .
l. Update the 1ndiaitAlbums· table to mo ify the sales of the album with 'AlbumID'3 to
I 0 00e0le0t0e. the record of the album name.d un1·t Se" from the 'IndianAlbums' table.
l. D
. . · Section D 2X4= 08 Marks ·
33 Dunng an Olympic Games write Python d- t I t
as shown below: This bar'chartr . . cot M eo, p o a bar chart for India's medal tally 4
epresen s edal Category-rG Id' •s·r r' 'B
and Number of Medal=[20 15 18) h - o • ' ve ' ronze1
figure as •aa.jpg'. ' ' _ass own In figure. Also give code to ve the
17.5
1.5.0
,,
7.5
'I " •
s.o
2.5
o.o
Sliver Bronze
Medal,Ype
34 • ?argi, Who works as a d tabase designer, has developed a database. This database 4
mdudes table Stock whose·colunm(attrih:aite) es are mentioned belo :
PID: Shows the unique code for each product , · · .
PNAME : Indicates 'the product Name '·
. Category: Indicates the product t gory such as-Input;Output or Netw k
Qty: Indicates the quantity of product ·
Price: Indicates the price of product
PID PNAME .
Cate orv Otv Price
Pl Kevboard IO ts· 450
P2 Mouse IO 10 ·. 350
p3· Wi-Fi Router NW 5 2600
P4 . Switch NW 3 3000.
PS Mo·nitor 0 10 4500
P6- Printer 0 4· 17000
(a) Write 'SQL 'query to display product name in lowercase.
(b) Write SQL quecy to display the highest priceamong the product -.
(C) Write SQL query to display th number of characters in each product name.
(d) Write SQL quer.yto display the product code and price sorted by price in descending.
order. .
OR
Dr Divya has created a database for a hospital's phannacy. The tabase includeas table
name medicine whose column( attribute) names arc mentioned below: · ·
. MID: S ows the unique code for each
medicine Med Name:.Shows the name of
medicine
Supcity: specifies the city where the supplier is located
Stock:.indicates ihe quantity of the medici11ce available
Del Date
Stock
25.0 2024-03-24
2023-06-15
50 2023-02-10
MOJ COUOH SYRUP Chennai 135 2024-01-25
M04 INSUI;IN Bho al 180 2024-10-24
MOS IBUPROFEN Pune 60
Write the output of the following SQL queries.
(a) select length(mcd_name)-length(supp_city) from medicine where stock >l00;
(b) select Med_naf!le from medicine where month(del_date)=6;
(c) select med_name from medicine where stock between 120 and 200 order by
med_name desc;
(d) Select min(stock) from medicine·
. . J
24 25.S
37
(i) To di 1 query for the following : ·
sp 5
(ii) Toremove ay the name of th e month of the current date.
(iii) T . spaces from the beginning and end of the string 'Panorama•;
o d isplay the name of the day
F orp.le, Fn·day or Sunday from your.date of birth, doh
.
exam play th t rt' •. · •
(1v) To dis . es a mgpos1tionofyourfustname(fuame)fromyourwholename(name)
mpute the remainder of division between two numbers nl and n2
"th th fl OR data.
(v) To co
ider
sale a table
sman WI e O11OWI•DI?
(B) Cons SNO SNAME .SALARY BONUS. Dateofjoin·.
AOl BeenaMehta -30000 ·300.23 I 29-10-2019
A02. KLSahav 50000 500.34 12-03-2018
B03 Nisha Thakkar 30000 400.00 18-03-2017
B04 Leela Yadav 80000 NULL 31-12-2018
cos Gautam Gola 20000 NULL 23-01-1989
C06 Trapti Garg 70000 600.37 15-06-1987
D07 Neena Sharma 50000 550.89 -18-03-1999
. L queries using SQL . . . .
. Write SQ
(1la.)o · y salesman name and bonus after roun ding o f.f to zero decu· nal places.·
1thes position of occurrence of th e s tri. ng 'ta, m
. s alesman n ames. ·
p ( u th four characters . . - name starting
from salesman . from second
.
o1· s1pya ay character.
h on h
e . . • • al
Join s esma t e m t
... . name for the date of of n.
(1 ) ay · of the weekday for the date of join of salesman.
111 D1sp the name .
. .
1
. -·....., , !->-·. · ·
_.........-. - -- :
.------ 7 I P at
··
ICES (065) Marking Scheme
iTtimefallowea:·3 Hou·rs Maximum Marks:70
lfStNol: :Answers
11' Marks
(b) 0
. •, 2 (c) topology
1
1
3 (a) 2.80 1
4 (c) Bus Topology 1
5 (b) 8 1
6 (b) 30 1
7 (d) online chatting 1
8 (c) Jen() . 1
9, (d) drop 1
10 (b) Electronic waste 1
11 (c) Lead and Mercury 1
12 1
(c) rdExam@.
13 1
(a) lineQ
14 1
(B) P-2, Q-4, R-1, S-3
1
15 (B) header-True 1
16 False 1
17 (B)o/o 1
18 (C) legend() 1
19 (C)3 1
20 (A) Both Assertion (A) and Reason (R) are true, and Reason (R) is correct explanation of
Assertion (A). 1
21 (A) Both Assertion (A) and Reason (R) are true, and Reason (R) is correct explanation of
Assertion (A). 2
22 (A) Dataframe isa two dimensional data structure in the form of rows and columns just likea
table.Features of dataframe :-
(a) Columns can be of different types i.e., It can be possible to have any kind of data
in columns like numeric, string or floating point due he!erogeneous property of
dataframe.
(b) Size of dataframe is mutable i.e. number of rows and columns can be increased
or decreased when new row/column is added or deleted from dataframe at any
time. Data can also be changed or modified at any time.
Example
import pandas as pd print(pd.DataFrame([{'a':10,'b':20},
{'a':5,'b':1 O,'c':20}]))
OR
Library:A collection of modules providi g fun_ctionalities for specific tasks.
NumPy isa Python library used for workmg with arrays.
Matplotlib :Used for creating plots 2
23 import pandas as ru!
D 1={'Name':'Ram','Age':32}
D2={'Name':'Seeta','Age':27}
D3={'Name':'Shyam','Age':29}
)
data=[D l,D2,D3 l
df=pd.Dataframe(data)
print(!!f) OR
import pandas as pd
indx=['New Delhi','Bhopal','Agartal?:] . ,
data=['New Delhi'' 'Madhya Pradesh' Tnpura]
s =pd.Series(indx,data)
print(s)
28 Prolonged screen time can lead to various health issues. Here are some potential health 2
concerns Sneha may face:
Physical Health Issues: .. .
1. Eye Strain and Vision Problems: Dry eyes, ?lurre v1s10n, headaches, and mcreased
risk of myopia (nearsightedness) and hyperopia (fars1ghted?ess).
2. Musculoskeletal Disorders: Neck, back, and shoulder pam due to poor posture and
prolonged sitting.
isturbances: Disrupted circadian. rhythms, msomma,
. . .
and daytime .
·3 SIeep fatigue. ·k f · h . d. b t
D . Obesity and Sedentary Lifestyle: Incre ed ns o weigt gam, 1ae es,
4
cardiovascular disease and reduced physical fitness.
.g aines· Frequent screen time can trigger or exacerbate headaches
d
5. Hea aches an d Ml ·
and migraines.
Any two . d
1. Replace screens with aud1obooks or P? casts
2. Use blue light filtering lasses or apps
3. Practice good sleep hygiene
s
4 Limit social media use .
Engage in screen-free hobbies (e.g., painting, gardening
. )
Free and o
- : ,1
Page 1 of
5. Which of the following is a responsible way to manage e-waste? 1
(A) Disposing of electronic devices in landfills
(B) Incinerating old electronic devices
(C) Recycling or refurbishing electronic devices
(D) Storing unused electronic devices in storage rooms
Page 2 of
13. DF-- DataFrame 1
Page 3 of
18. Which Matplotlib plot is best suited to represent changes in data over time? 1
(A) Bar plot
(B) Histogram
(C) Line plot
(D) Histogram & Bar plot
19. Mr. Ram , a computer science teacher wants to transfer data between their 1
smartphone and laptop using Bluetooth in computer lab. Which type of network
would this fall under?
A) PAN
B) LAN
C) WAN
D) MAN
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the
correct option as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is the
correct explanation of Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the 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
20. Assertion (A):- DataFrame has both a row and column index. 1
Reasoning (R): - A DataFrame is a two-dimensional labelled data structure like a
table of MySQL.
21. Assertion (A): The CREATE TABLE command is used to add new rows to an 1
existing table in SQL.
Reason (R): The CREATE TABLE command defines the structure of a new table,
including its columns and data types.
Q No. Section-B (7 x 2 = 14 Marks) Marks
22. (A).What are the difference between Series and Dataframe. Write any two 2
differences.
OR
(B). What does the term 'library' signify in Python? Mention one use for each of
the following libraries:
• NumPy
• Matplotlib
23. What do you mean by FOSS ? Name any two free and open source software. 2
24. A string is given as “Humpty Dumpty”. Write suitable SQL queries for the following: 2
I. Count how many characters are there in above string.
II. Display above string in uppercase ."
25. (A). Explain the role of a web browser in accessing the internet ? Write any 2 names 2
of web browsers.
OR
(B). What do you mean by webpage ? How is static web pages differ from the
dynamic webpages.
Page 4 of
26. Distinguish between primary key and candidate key with example. 2
27. As a student , what two advice you should give to other student for e-waste 2
disposal ?
28. (A). Parul , class XII student , writes a Python program to create a DataFrame. 2
However, her code contains some mistakes. Identify the errors, rewrite
the correct code, and underline the corrections made.
import pantas as pd
Rollno= [1101, 1102,1103]
Name= ['Teena', 'Jay’, 'Rishi']
Age=[26,27,35]
Final= [Rollno, Name, Age]
df= pdf.DataFrame(Final, INDEX= ['Stud1', 'Stud2', 'Stud3'])
print(DataFrame)
OR
(B) Complete the given Python code to get the required output (ignore the
dtype attribute) as
Output:
Jan 31
Feb 28
Mar 31
Apr 30
Code:-
pandas as pd
Month_Day = pd. ({'Jan': 31, 'Feb':28, 'Mar':31, ' ':30})
print( )
Section-C (4 x 3 = 12 Marks)
Q No Marks
29. Bharti received a message that she needs to update the KYC for her Bank
3
Account therefore she should upload her Aadhar Card, Bank Account Number and
the OTP on the link given in her message. Answer the following questions :
(i) Is it safe for Bharti to upload her Aadhaar card, bank account number, and
OTP on the link provided in the message?
(ii) Why is it important for Bharti to immediately contact her bank to verify
the authenticity of the message?
(iii) What type of cyber crime is being committed in the message Bharti
received, where she is asked to upload sensitive information?
30. (A). Write a Python program to create the following DataFrame (Student).
3
Page 5 of
Name English Maths Physics
0 aparna 80 70 50
1 pankaj 78 18 48
2 sudhir 59 59 69
3 Aditya 76 66 96
OR
(B). Write a Python Program to create a Pandas Series as shown below using a
dictionary. Note that the left column indicates the indices and the right column
displays the data.
Virat Kohli Ckricket
Neeraj Chopra javelin throw
Mary Kom Boxing
31. I. Write an SQL statement to create a table named Employee, with the
2+1=3
following specifications:
II. Write SQL Query to insert the following data in the Employee
able 1001, Rajesh, Sales, 2024-12-10, 75000
32. (A) . Consider the following tables:
3
Table 1:
Flights which stores Flightid, model and company
Table 2:
Booking which stores Ticket number (Ticketno), passenger name(passenger),
source , destination, quantity, price and Flightid
Table: Flights
Page 6 of
Table: Booking
Ticketno passenger source destination quantity price Flightid
10001 AJAY BAN DELHI 2 7000 10
10002 RIYA BAN KOLKATA 3 7500 12
10003 MOHAN DEL MUMBAI 1 6000 15
10004 RISHI MUM KOLKATA 2 5600 12
10005 VIJAY MUM DELHI 4 5000 10
a) Write a query to count flights booking source wise.
b) Increase 10% fare of those flight booking whose destination is Delhi
c) Display Passenger name , source , model and company from the table flights
and booking for the matching rows.
OR
(B). Consider the following tables:
Table 1:
Table: Stationary , which stores stationary id (S_ID), Stationary
Name(StationaryName), Company and Price
Table 2:
Consumer, which stores Consumer id (C_ID), Consumer_Name , Address and
stationary id (S_ID)
Table:- Stationary
Page 7 of
33. Bharti a class XII (IP) student has to fill in the blanks in Python programs that
4
generate a bar chart. This bar chart calculate subject wise result analysis.
Subject Percentage
ENGLISH 85
ACCOUNTS 98
BST 70
ECONOMICS 82
IP 100
Help Bharti to complete the code
I. Write the suitable code for the import statement in the blank space in
the line marked as Statement-1.
II. Refer to the graph shown above and fill in the blank in Statement-2
with suitable Python code.
III. Fill in the blank in Statement-3 with the name of the function to set
the label on the x-axis.
IV. Refer the graph shown above and fill the blank in Statement-4
with suitable Chart Title.
Page 8 of
34. (A) Sachin, who works as a database designer, has developed a database for a
4
Sport club. This database includes a table Sportsclub whose column
(attribute) names are mentioned below:
I. Write a query to display player’s name in the lower case of those player
whose country is India
II. Display sum of salary sports wise.
III. Write a query to display unique sport name.
IV. Display all the details of Indian player who got A rating in sportclub
OR
(B). Ranjana has created a database for employee management . The database
includes a table named Employee whose column (attribute) names are
mentioned below:
EMPNO: Shows the unique employee number for each employee.
NAME: Specifies the employee name
DOJ: Specifies the joing date of employee.
SALARY: Shows the salary of the employee.
CITY: Shows the city of the employee.
Page 9 of
Table: EMPLOYEE
Block Distance
Development to HR 50m
Development to Admin 75m
Development to Logistics 120m
HR to Admin 110m
HR to Logistics 50m
Admin to Logistics 75m
Distance Between the various blocks
Page 10 of
i) Suggest the most appropriate block to host the Server. Also
justify your choice.
ii) Draw a suitable cable layout of wired network connectivity
between the departments in the Jaipur Office..
iii) Suggest the placement of the following device with justification:
a)Repeater b) Hub/Switch
iv) Suggest a system (hardware/software) to prevent unauthorized access
to or from the network.
v) Suggest the high-speed wired communication medium between
Jaipur Campus and Delhi campus to establish a data network.
0 1 Geeta IX E 8.7
1 2 Preeti X F 8.9
2 3 Ravi IX D 9.2
3 4 Lakshay X A 9.4
II. Add a new row with values ( 5 , Rajesh ,X, F , 9.8, Science)
Page 11 of
5
37 (A). Write suitable SQL query for the following:
I. Display 5 characters extracted from 3th left character onwards from
IV. Display how many records are there in the Employee table.
V. Display Sum of Salary in the Salary column (attribute) in the Employee table.
OR
I. Display 5 characters extracted from 4th left character onwards from the
Page 12 of
के न्द्रीय विद्यालय संगठन, जयपुर संभाग
Kendriya Vidyalaya Sangathan, Jaipur Region
बोर्ड पूिड परीक्षा-1 2024-25
Pre-board-1 Exam 2024-25
कक्षा/Class: XII विषय/Subject: Informatics Practices(065)
समय/Time: 3 Hours पूर्ाड क /Max. Marks: 70
2 (B) - Group rows that have the same values in specified columns. 1
(1 mark for correct answer)
KVs
0 KV1
1 KV2
2 KV3
14. 1
(A) – Phishing
(1 mark for correct answer)
15. 1
(C) – Series
OR
(B) Library: A collection of modules providing functionalities for specific tasks.
NumPy :-Used for numerical operations.
Matplotlib: Used for data visualization/ Used for creating plots
(1 mark for correct definition)
(1/2 mark each for correct use of each library)
23. 2
FOSS (Free and Open Source Software) refers to software that is both freely
available and open source, meaning that anyone can use, modify, and distribute it.
(1/2 mark each for each correct web browser name above or any other web
browser name) )
OR
(B) A webpage is a document that is displayed on the internet using a web browser.
It can contain text, images, videos, links, and other multimedia elements.
Difference:- In static web pages, pages will remain same until someone
changes it manually and information changes rarely.
Dynamic web page: In dynamic web pages, content of pages are different for
different visitors and information change frequently.
(1 mark for correct definition)
(1 mark for correct difference)
26. 2
Primary key :- It uniquely identifies records or rows in a table . There can only be
one primary key per table.
Candidate key:- All attributed combination in a relation (table) that can be served
as primary key.
Table:- Student
Candidate Key :- Rollno, Admno, and Phoneno are unique for each student,
making all three eligible to be candidate keys.
Corrected code 2
28.(A)
import pandas as pd
Rollno= [1101, 1102,1103]
Name= ['Teena', 'Jay', 'Rishi']
Age=[26,27,35]
Final= [Rollno, Name, Age]
df= pd.DataFrame(Final, index= ['Stud1', 'Stud2', 'Stud3'])
print(df)
Changes Made :
i. Changed pantas to pandas.
ii. Corrected mismatched pdf to pd
iii. Corrected capital letter INDEX to index
iv. Correct print statement DataFrame to df
OR
import pandas as pd
(B)
Month_Day = pd.Series({'Jan': 31, 'Feb':28, 'Mar':31, 'Apr':30})
print(Month_Day)
(1/2 mark for each correct fill in the blank)
29 3
(i) No, it is not safe for Bharti to upload her Aadhaar card, bank account
number, and OTP on the link provided in the message. This could
be part of a scam or phishing attempt to steal her personal and
financial information.
(1 mark for correct answer)
(ii) It is important for Bharti to immediately contact her bank to verify the
authenticity of the message because it could be a phishing attack
designed to steal her identity and financial details.
(1 mark for correct answer)
(iii) Phishing
(1 mark for each correct answer)
30. (A) import pandas as pd 3
import pandas as pd
(B) Sport = {'Virat Kohli': 'Cricket', 'Neeraj Chopra': 'Javelin Throw', 'Mary Kom':
'Boxing'}
My_Series = pd.Series(Sport)
print(My_Series)
31. 3
(I)
CREATE TABLE
Employee (
Emp_ID INTEGER PRIMARY KEY,
Emp_Name VARCHAR(20) NOT NULL,
Department VARCHAR(15),
Increment_Date DATE,
Salary INT(7)
);
(2 mark for correct creation of Table)
or
33 I. matplotlib.pyplot 4
II. Subject
III. xlabel
IV. SUBJECTWISE RESULT ANALYSIS
1 mark for each correct answer)
34. (A) 4
I. SELECT LOWER(Pname) FROM Sportsclub
WHERE Country = 'INDIA';
II. SELECT Sports, SUM(Salary) FROM Sportsclub
GROUP BY Sports;
III. SELECT DISTINCT (Sports) FROM Sportsclub;
IV. SELECT * FROM Sportsclub
WHERE Country = 'INDIA' AND Rating = 'A';
VIJAY SINGH 11
RAMESH KUMAR 12
(II)
NAME
RAKESH VERMA
(III)
NAME SALARY
RAKESH VERMA 60000
RAMESH KUMAR 72000
(IV)
SUBSTR(NAME, 2,4)
SHOK
AKES
AMES
1 mark for each correct output)
Section-E (3 x 5 = 15 Marks)
Q No. Marks
35 (I) The server should be installed in the Admin block as it has the most 5
number of computers and It will increase the efficiency of the network.
(1 mark for correct answer)
(II) Cable layout
(III)
(III) (a) Repeater:- Between HR and Admin block because the distance is
(IV) Firewall
(1 mark for correct answer)
36. (I) DF['Stream'] = ['Science', 'Commerce', 'Arts', 'Science'] # DF- DataFrame Name
5
(II) DF.loc[4] = [5, 'Rajesh', 'X', 'F', 9.8, 'Science']
Or
DF = DF.append(new_row, ignore_index=True)
(III) print(DF.shape)
(IV) DF=DF.drop([1])
OR
Page 1 of
c) MODIFY
d) SELECT
5. An organization purchase new computers every year and dumps the old one 1
into the local dumping yard. Write the name of the most appropriate category of
waste that the organization is creating every year, out of the following options:
a) Business waste
b) Commercial waste
c) E-waste
d) (D) Green waste
6. what will be the output of following code: 1
import pandas as pd
a=pd.Series([2,3,4,5])
b=pd.Series([5,6,7,8,9])
c=a+b
print(c)
(a) (b) (c) (d) Error
0 7 0 7.0 0 7.0
1 9 1 9.0 1 9.0
2 11 2 11.0 2 11.0
3 13 3 13.0 3 13.0
4 0 4 0 4 NaN
dtype: float64 dtype: float64 dtype: float64
7. The command used to give a heading to a graph using matplot is 1
(a) plt.show()
(b) plt.plot()
(c) plt.xlabel()
(d) plt.title()
8. State whether the following statement is True or False: 1
In SQL, The HAVING clause is used to filter data on groups formed by GROUP
BY clause.
9. What does CSV stands for:- 1
a) Comma Support Variables
b) Comma Spreadsheet Values
c) Comma Seperated Values
d) Common Specific Values
10. Stealing someone’s intellectual work and representing it as another person’s 1
work is known as .
a) Phishing
b) Spamming
c) plagiarism
d) hacking
11. Which one of the following is a string function? 1
a) COUNT()
b) SUBSTR()
c) MOD()
d) MAX()
Page 2 of
12. Which protocol allow us to have voice calls over the internet? 1
a) HTTP
b) VoIP
c) VideoChat
d) SMTP
13. Given a Pandas series called Marks, the command which will display the last 2 1
rows is :
a) print(Marks.tail(2))
b) print(Marks.Tail(2))
c) print(Marks.tails(3)
d) iv. print(Marks.tail())
14. Which of the following is not done by cyber criminals? 1
a) Unauthorized account access
b) Mass attack using Trojans as botnets
c) Email spoofing and spamming
d) Report vulnerability in any system
15. To create an empty Series object, you can use: 1
(a) pd.Series(empty)
(b) pd.Series( )
(c) pd.Series(np.NaN)
(d) all of these
16. Which MySQL function returns the week day name corresponding to Date value 1
supplied as argument.
a) weekday()
b) dayname()
c) dayofweek()
d) weekofday()
17. In Pandas which of the following dataframe attribute can be used to know the 1
number of rows and columns in a dataframe
a. size
b. index
c. count
d. shape
18. In order to draw charts in Python, which of the following statement will be used: 1
a) import pyplot.matplotlib as pl
b) import matplotlib.pyplot as plt
c) Import matplotlib.pyplot as plt
d) import pyplot from matplotlib as plt
19. If different branches of a hospital in different state capitals are connected 1
together, which type of network it forms?
(a) LAN
(b) MAN
(c) WAN
(d) None of the above
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose
Page 3 of
the correct option as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is the
correct explanation of Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is
not the 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
20. Assertion (A):- While creating a dataframe with a nested or 2D dictionary, 1
Python interprets the outer dict keys as the columns and the inner keys as the
row indices.
Reasoning (R):- A column can be deleted using remove command.
21. Assertion (A):- SELECT INSTR(‘Python Program’, ‘thon’); will give an output 2. 1
Reasoning (R):- INSTR() function takes two arguments as string and sub string
and returns the position of first occurance of a specifies substring from a string.
Q No. Section-B (7 x 2 = 14 Marks)
22. (A) Consider a given Series , M1. 2
Page 4 of
Explain with suitable example.
27. (A) Priya is using her internet connection to book a train ticket. This is a 2
classic example of leaving a trail of web activities carried by her. What do we
call this type of activity? What is the risk involved by such kind of activity?
OR
(B) List any one Positive impact and negative impact of usage of technology.
28. (A) Consider the following code and fill in the gaps to get the given output: 2
import as pd
s=pd.Series( , )
print( )
1 3
2 3
3 3
4 3
OR
(B) Neena has created a Python code to create a DataFrame Toppers
with appropriate column headings from the list given below:
[[501,'Aromal',’Commerce’],[502,'Greeshma',’Science’],[503,''
Preeti”,’Humanities’], [504,' Rupin ',’Arts’]]
However, he code contains some mistakes. Identify the errors, rewrite the code,
and underline the corrections made.
import pndas as pd
Data= [[501,'Aromal',’Commerce’], [502,'Greeshma',’Science’],
[503,''Preeti”,’Humanities’], [504,' Rupin ',’Arts’]]
Toppers=pd.dataframe (data,columns=['Rno','Name', 'Stream'])
print(Toppers)
Section-C (4 x 3 = 12 Marks)
29. i. Ishita is using a software which are sold commercially and their source code 3(1+2)
not shared or distributed to the users. What are such softwares known as ?
ii. What is IPR? Why should it be protected?
30. Consider the following dataframe ndf as shown below : 3
Write SQL queries using SQL functions to perform the following operations:
i. Display company name and body wheel base after rounding off to nearest
one decimal places.
ii. Display the position of occurrence of the string “dan” in body style.
iii. Display the year of manufacturing for sedan;
OR
Compare Having clause and Order by clause with suitable example?
Q No Section-D (2 x 4 = 8 Marks)
33. Riya wants to create Python code to plot a bar chart for Indian player 4
performance in a match:
Page 6 of
.Help her to complete the code:
import matplotlib.pyplot as............................#statement 1
Player=['Rohit','Virat','Surya',’Rahul’]
Runs=[80,60,40,20]
plt.......................................#statement 2
plt.ylabel('Runs')
plt….................('Player') #statement
3
plt.title('PERFORMANCE')
plt….........................#statement 4
plt.savefig("x.jpg")
(i) Write suitable code for blank space in statement1 to import required library. (i)
(ii) Write suitable code for blank space in statement2 to plot the graph.
(iii) Write suitable code for blank space in statement3 to set the X-Axis
with required name.
(iv) Write suitable code for blank space in statement4 to display the graph plotted.
34. (A) Consider the following table (salesperson) and Write SQL queries 4
for following:
Krunal joined as DBA and written following partial queries, complete the queries
and help him:
Page 7 of
i. Select , from superarcade;
(Maximum & Minimum Rent)
ii. Select from superarcade; (owner name into capital)
iii. Select FLR, avg(rent) from superarcade FRL having
>=2;
(Floor wise average rent where shops are more than or equal to 2)
iv. Select AgencyName, Owner from superarcade
opening_date
(Display the shops given by history (Latest to Oldest)).
Page 8 of
A. Predict the output of the following python statement:
i. df.shape
ii. df[1:3]
B. Write Python statement to display the data of Second half yearly column
of indexes Salesman1 to Salesman3
C.Write Python statement to compute and display the sum of data of First
column and Second column of the above given DataFrame.
D. Write python statement to display the data of the First column of
index Salesman2 to Salesdata
E. Write Python statement to compute and display the difference of data of
First column and Second column of the above given DataFrame.
37. (A) Write suitable SQL query for the following: 5
i. Display 7 characters extracted from 7th left character onwards from
the string ‘INFORMATICS PRACTICES’.
ii. Display the position of occurrence of string ‘COME’ in the
string ‘WELCOME WORLD’.
iii. Round off the value 2334.78 to one decimal place.
iv. Display the remainder of 200 divided by 7.
v. Remove all the expected leading and trailing spaces from a
column userid of the table ‘USERS’.
OR
(B) Write suitable SQL query for the following:
i. Display 5 characters extracted from 3th left character onwards from
the string ‘INDIA RISING’.
ii. Display the position of occurrence of string ‘FUNDA’ in the
string ‘PYTHON FUNDAMENTALS.
iii. Round off the value 453.668 to two decimal place.
iv. Display the remainder of 120 divided by7.
v. Remove all the expected leading and trailing spaces from a
column student_id of the table ‘student’.
Page 9 of
Page 10 of
के न्द्रीय विद्यालय संगठन, जयपुर संभाग
Kendriya Vidyalaya Sangathan, Jaipur Region
PRACTICE SET – 02
कक्षा/Class: 12िीं विषय/Subject: Informatics Practices(065)
12. Which protocol allow us to have voice and video calls over the internet? 1
(A) HTTP (B) VoIP
(C) VideoChat (D) SMTP
13. Given a Pandas series called Marks, the command which will display the 1
last 2 rows is :
A. print(Marks.tail(2))
B. print(Marks.Tail(2))
C. print(Marks.tails(3)
D. iv. print(Marks.tail())
14. Which of the following is not done by cyber criminals? 1
(A) Unauthorized account access
(B) Mass attack using Trojans as botnets
(C) Email spoofing and spamming
(D) Report vulnerability in any system
15. To create an empty Series object, you can use: 1
(a) pd.Series(empty)
(b) pd.Series( )
(c) pd.Series(np.NaN)
(d) all of these
16. Which MySQL function returns the week day name corresponding to Date 1
value supplied as argument.
(A) weekday()
(B) dayname()
(C) dayofweek()
(D) weekofday()
17. In Pandas which of the following dataframe attribute can be used to know 1
the number of rows and columns in a dataframe
a. size
b. index
c. count
d. shape
18. In order to draw charts in Python, which of the following statement will be 1
used:
(A) import pyplot.matplotlib as pl
(B) import matplotlib.pyplot as plt
(C) Import matplotlib.pyplot as plt
(D) import pyplot from matplotlib as plt
19. If different branches of a hospital in different state capitals are connected 1
together, which type of network it forms?
(a) LAN
(b) MAN
(c) WAN
(d) None of the above
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions.
Choose the correct option as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is
the correct explanation of Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is
not the 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
20. Assertion (A):- While creating a dataframe with a nested or 2D 1
dictionary, Python interprets the outer dict keys as the columns and the
inner keys as the row indices.
Reasoning (R):- A column can be deleted using remove command.
(C) Assertion (A) is True, but Reason (R) is False
21. Assertion (A):- SELECT INSTR(‘Python Program’, ‘thon’); will give an 1
output 2.
Reasoning (R):- INSTR() function takes two arguments as string and sub
string and returns the position of first occurance of a specifies substring
from a string.
(D) Assertion (A) is False, but Reason (R) is True
22. import pandas as pd 2
M1=pd.Series([45,65,24,89],index=['term1','term2','t erm3','term4'])
½ mark for import statement
½ mark for usage of Series ()
½ mark for stating index as a list
½ mark for creating object m1
OR
city={'AGRA':4, 'JHANSI':3, 'MATHURA':5, 'NOIDA':4}
kv=mypandas.Series(city)
1 mark for each correct python statement
23. A digital footprint – sometimes called a digital shadow or an electronic 2
footprint – refers to the trail of data you leave when using the internet. It
includes websites you visit, emails you send, and information you submit
online. Types are Active Digital Foot Print and Passive Digital Foot Print.
(1 Marks for definition)
(1 Marks for types)
24. This is because the column commission contains a NULL value and the 2
aggregate functions do not take into account NULL values. Thus
Command1 returns the total number of records in the table whereas
Command2 returns the total number of non NULL values in the column
commission.
(2 Marks for any correct explanation)
25. Expand the following terms related to Computer Networks: 2
a. URL : UNIFORM RESOURCE LOCATOR
b. PAN: PERSONAL AREA NETWORK
c. MODEM : MODULATOR DEMODULATOR
d. WWW : WORLD WIDE WEB
(1/2 Marks for each correct term)
OR
cookies are small files which are stored on a user’s computer and contains
information like which Web pages visited in the past, logging details
Password etc. They are designed to hold a small amount of data specific to
a particular client and website and can be accessed by the web server or
the client computer.
(2 Marks for correct definition)
26 Degree: No of columns in a table is called degree of a 2
table. Cardinality: No of rows in a table is called degree of a
table. I_ID SHOP_NAME QTY
PC01 Akhil Enterprises 10
LC01 Nihal and Sons 5
PC03 Renuka Technologies 12
PC01 Tanvi Techno and E-Waste firm 5
LC03 Akhil Enterprises 7
For example in the above STOCK table
Degree: 03 and Cardinality: 05
(1 Mark for correct definition)
(1 Mark for correct example)
27. Risk involved : It includes websites we visit emails we send, and any 2
information we submit online, etc., along with the computer’s IP address,
location, and other device specific details. Such data could be used for
targeted advertisement or could also be misused or exploited.
1 mark for naming the activity
1 mark for mentioning any one risk
OR
There are positive as well as negative impact on health due to the use of
these technologies.
● POSITIVE IMPACT ▪ Various health apps and gadgets are available
to monitor and alert Online medical records can be maintained.
● NEGATIVE IMPACT ▪ One may come across various health issues
like eye strain, muscle problems, sleep issues,etc ▪ Anti social
behaviour, isolation, emotional issues, etc.
(1 Marks for each)
28. import pandas as pd # ½ Marks 2
s=pd.Series( 3 , index=[1,2,3,4] ) #(1 Mark)
print(_s ) # ½ Mark
OR
import pandas as pd
Data= [[501,'Aromal',’Commerce’], [502,'Greeshma',’Science’],
[503,''Preeti”,’Humanities’], [504,' Rupin ',’Arts’]]
Toppers=pd.DataFrame(data,columns=['Rno','Name', 'Stream'])
print(Toppers)
( 1 Marks for each correction)
29. i. Proprietary Software. 3
( 1 Marks for correct answer)
ii. Intellectual property rights are the rights given to persons over the
creations of their minds like creativity concepts, inventions, industrial
models, trademarks, songs, literature, symbols, names, brands,.. .etc. They
also entitle him/her to prevent others from using, dealing or tampering with
his/her product without prior permission from him/her. It should be protected
since:
1. New innovations in all IPR domains lead to Human progress and
advancement. 2. Legal protection of new innovations encourages safe
spending on other innovations.
3. Caring for and protecting IPR contribute to achieving economic and social
development
( 1 Marks for definition)
( 1 Marks for any one use)
30. a. Column3 Res 3
T1 60.00 True
T2 59.22 True
T3 46.04 False
T4 58.62 False
c. Column3
T2 59.22
T3 46.04
1 mark for each correct output.
OR
import pandas as pd ½ mark D={'Arnab':[90,91,97],'Ramit':
[92,81,96],'Samridhi':[89,91,88] } 1 mark
Df=pd.DataFrame(D,index=['Maths','Science','Hindi']) 1 mark
print(Df) ½ mark
31. i)MONTH() GIVES MONTH IN Numbers. 3
example:
MONTH(‘2021-05-11’) GIVES 05
where as MonthName(‘2021-05-11’) gives ‘MAY’.
ii. DAYNAME(date)-Returns the name of the weekday for
date SELECT DAYNAME('2022-02-23'); -> 'Wednesday’;
iii. February
32. i. Select company, round(wheel-base,1) from 3
automobile; 1 mark each for correct usage of Select and
round()
ii. Select instr(body-style,’dan’) from automobile;
1 mark each for correct usage of Select and instr()
iii. Select year(dateofmanufacture) from automobile where
body- style=’sedan’;
1 mark each for correct usage of Select and year()
OR
Having clause is used in conjunction with group by clause in MySQL. It is
used to provide condition based
on grouped data. On the other hand, order by clause is an independent
clause used to arrange records of a table
in either ascending or descending order on the basis of one or more
columns
2 marks for correct explanation and 1 mark for example.
33. import matplotlib.pyplot as ……plt...................#statement 1 4
Player=['Rohit','Virat','Surya',’Rahul’]
Runs=[80,60,40,20]
plt…….plot(Player,Runs).......#statement 2
plt.ylabel('Runs')
plt….xlabel(Player)....('Player') #statement
3
plt.title('PERFORMANCE')
plt….show()......................#statement 4
plt.savefig("x.jpg")
( 1 Mark for each correct statement)
iii)
a) Hub/Switch must be placed in every block
b) Modem is placed in Development to provide the internet connection
iv. Company is planning to purchase a new hardware to protect the
network fromnetwork from unauthorised access from outside the network.
Name the device.
Ans.: Firewall
Page 1 of
5. Which of the following is the correct way to import the Pandas 1
library in Program?
a) import pd as pandas
b) import pandas
c) from pandas import pd
d) from pd import pandas
6. Which of the following is correct output of code given below – 1
S1 = pd.Series(range(5))
a) 0 1 b) 0 5 c) 0 1 d) None of the above
1 2 1 2
2 3 2 3
3 4 3 4
4 5
7. Which of the following function is used to save the figure/chart? 1
a) save()
b) savefigure()
c) savefig()
d) None of the above
8. Which clause is used with aggregate functions? 1
a) GROUP BY
b) ORDER BY
c) BETWEEN
d) IN
9. Which of the following Python Statements is used to export data 1
from Pandas Dataframe to a CSV file (Note: pd is an alias for
pandas and df as dataframe name)?
a) df.export_csv(‘filename.csv’)
b) pd.to_csv(‘filename.csv’)
c) df.to_csv(‘filename.csv’)
d) pd.load_csv(‘filename.csv’)
10. While surfing on Internet if your geo location is turned on, than it 1
makes –
a) Active digital footprint
b) Passive digital footprint
c) Active e footprint
d) Passive e footprint
11. If a column Fee contains the following data set (75, null, null, 1
100, 200), what will be theoutput of the following query.
select count(Fee) from emp;
a) 5
b) 2
c) 3
d) output cannot be predicted
12. Which topology in general uses less wire length compare to 1
Page 2 of
other network topologies?
a) Star Topology
b) Ring Topology
c) Bus Toplogy
d) All use same wire length
13. To display the last five rows of a Dataframe object df, we write 1
a) df.Tail()
b) df.tail()
c) df.tail(5)
d) Both b and c
14. Which of the following is/are examples of cybercrime? 1
a) Extracting money using a person's net banking details.
b) Posting/viewing child pornographic material.
c) Making online payment using someone else's credit
card without consent.
d) All of the above
15. Which of the following statement is wrong? 1
a) Can’t change the index of the Series.
b) We can easily convert the list,tuple and dictionary into
a series.
c) A series represent a single column in memory
d) We can create empty series.
16. 1
Match the following SQL functions/clauses with their descriptions:
Page 3 of
17. What will be the output of the given command: 1
df1.loc[:0,’Sal’]
Consider the given dataframe
Page 4 of
21. Assertion (A): SUM() is an Aggregate function. 1
Reason (R) : Multiple row functions work upon group of rows and
return one result for the complete set of rows.
Help her in identifying the reason for the error and write the
correct query bysuggesting the possible correction.
25. (A) What is the difference between LAN and MAN? 2
OR
(B) What is a Gateway? Explain.
26. What is the purpose of WHERE clause? Explain with the help of 2
suitable example.
Page 5 of
27. Explain any two possible methods of e-waste management. 2
28. Carefully observe the following code: 2
import pandas as pd
data = {'col1' : pd.Series([1, 2, 3], index=['a', 'b', 'c']),
'col2' : pd.Series([0, 78, -25, 13], index=['a', 'b', 'c', 'd'])}
df = pd.DataFrame(data)
print(df)
OR
(B) Write python code to create a Series S1 as shown below
using a dictionary.
India New Delhi
France Paris
Switzerland Bern
Japan Tokya
31. (i) Write SQL Statement to create a database KVS. 3(1
(ii) Create a table ROJAIPUR with following specifications:
+2)
Column Name Datatype Key
SchoolID Numeric PrimaryKey
SchoolName Varchar(50)
No_of_St Numeric
Date0fEstablish Date
Page 6 of
32. Based on the table given below, write SQL queries 3
for the following :
Table Name: Gadget
I_ID ItemName Manufacturer Price
PC01 Personal Computer AB Corp 35000
LC05 Laptop AB Corp 55000
PC03 Personal Computer AZee 32000
PC06 Personal Computer COMPAQ 37000
LC03 Laptop Pacific 57000
PT04 Tablet AZee 28000
Table: STOCK
I_ID Name
SHOP_NAMEMarks QTY
0 Ramesh 78
PC01 Akhil Enterprises 10
1 Suresh 86
LC01 Nihal and Sons 5
2 Harish 92
PC03 Renuka Technologies 12
3 Jayesh 68
PC01 Tanvi Techno and E-Waste firm 5
LC03 Akhil Enterprises 7
Page 7 of
corresponding matching product Id.
Q No Section-D (2 x 4 = 8 Marks) Marks
33. (A) Write down the python code to draw the bar chart using the diagram 4
given below, alsosave the output as a svg.
Page 8 of
OR
(B)Write a python program to plot a line chart based on the given data
to showcase thetrend of loan applications received by the banks from
2014 to 2018.
Financial Year Number of Applications Received
2014-15 254420
2015-16 261257
2016-17 215422
2017-18 242433
2018-19 238989
34. 4
(A) Sunita is learning MySQL, she created a table to store
the details of Club members.
Table : Club
MemberID MName Sport Membership_Till Fee_Paid
1224 Sandeep GOLF 2022-12-23 1700
1242 Ravina GOLF 2022-10-15 1750
1277 Karan POLO 2023-01-15 1800
1249 Tarun SQUASH 2022-10-15 1800
1266 Zubin POLO 2023-02-02 3600
Page 9 of
ADNO ROLLNO SNAME TERM1 TERM2 DIVISION
123 101 KARAN 366 410 I
245 102 NAMAN 300 350 I
128 103 ISHA 400 410 I
129 104 RENU 350 357 I
234 105 ARPIT 100 205 II
187 106 SABINA 100 205 II
181 107 NEELAM 470 450 I
Write the output of the following SQL Queries:
a) Identify the columns which can be considered as
candidate keys?
b) Select SNAME from STUDENT where TERM1 between 350
and 400;
c) Select DIVISION, MAX(TERM1),MIN(TERM2) form STUDENT
group by DIVISION;
d) Select MOD(Term1,10) from STUDENT;
QNo. Section-E (3 x 5 = 15 Marks) Marks
35. 5
Open University of India is starting its first campus in Bengaluru
with its centre, admission office in Bhopal. The university has
three major blocks comprising Office block, Science block and
Commerce block is in a 5 km area campus.
As a network expert, you need to suggest the network plan as per
(a) to (e) to the authorities keeping in mind the distance and other
given parameters.
Page 10 of
Blocks Number of Computers
Office Block 10
Commerce Block 30
Page 11 of
36. 5
Pooja, a student, has designed a DataFrame df_exam as
shown below. Consider thisDataFrame and answer the following
questions.
Day X XII
1 Monday Mathematics Accountancy
2 Tuesday Science Hindi/IP
3 Wednesday S. Studies English
4 Thursday English B. Studies
5 Friday Hindi Economics
6 Saturday Sanskrit NaN
Page 12 of
अनुक्रम ांक/ROLL NO
Page 1 of
c) savefig()
d) None of the above
8. Which clause is used with aggregate functions? 1
a. GROUP BY
b. ORDER BY
c. BETWEEN
d. IN
9. Which of the following Python Statements is used to export data 1
from Pandas Dataframe to a CSV file (Note: pd is an alias for
pandas and df as dataframe name)?
a) df.export_csv(‘filename.csv’)
b) pd.to_csv(‘filename.csv’)
c) df.to_csv(‘filename.csv’)
d) pd.load_csv(‘filename.csv’)
10. While surfing on Internet if your geo location is turned on, than it 1
makes
a) Active digital footprint
b) Passive digital footprint
c) Active e footprint
d) Passive e footprint
11. If a column fee contains the following data set (75, null, null, 100, 1
200), what will be theoutput of the following query.
select count(Fee) from emp;
a) 5
b) 2
c) 3
d) output cannot be predicted
12. Which topology in general uses less wire length compare to 1
other ?
a) Star Topology
b) Ring Topology
c) Bus Toplogy
d) All use same wire length
13. To display the last five rows of a Dataframe object df, we write 1
a) df.Tail()
b) df.tail()
c) df.tail(5)
d) Both b and c
14. Which of the following is/are examples of cybercrime? 1
a) Extracting money using a person's net banking details.
b) Posting/viewing child pornographic material.
c) Making online payment using someone else's credit card
Page 2 of
without consent.
d) All of the above
15. Which of the following statement is wrong? 1
a) Can’t change the index of the Series.
b) We can easily convert the list,tuple and dictionary into
a series.
c) A series represent a single column in memory
d) We can create empty series.
16. 1
Match the following SQL functions/clauses with their descriptions:
Page 3 of
19. Which type of the following networks spread over small geographical 1
area of up to 1 km?
a) LAN
b) MAN
c) WAN
d) None of these
20. Assertion (A):- df.loc(False) function can be used to find the values 1
where index valueis False.
Reason (R):- Boolean indexing is a type of indexing and can be
used to retrieve thedata.
(c)Assertion (A) is True, but Reason (R) is False
21. Assertion (A): SUM() is an Aggregate function. 1
Reason (R) : Multiple row functions work upon group of rows and
return one result for the complete set of rows.
(A) Both Assertion (A) and Reason (R) are true, and Reason
(R) is the correct explanation of Assertion (A)
Q Section-B (7 x 2 = 14 Marks)
No.
22. import pandas as pd 2
s=pd.Series([1,3,5,67,8],index=[0,1,2,3,4])
print(s)
or Any correct code
OR
The two data structures provided by Pandas library in Python are
Series and Dataframe.
Python library is used in python for data visualization is matplotlib.
23. (i) cookies 2
(ii) any two web browsers like Google crom, Mozilla
Firefox, Microsoft edge etc.
24. Select PNAME, AVG(PRICE) 2
From product
group by PNAME
having AVG(Price)>150;
25. Local Area Network (LAN) and a Metropolitan Area Network (MAN) 2
A LAN is a network that connects devices in a small area, like a
home or office. LANs can be small or large, but they're usually
confined to a single building or campus
A MAN is a network that connects multiple LANs over a larger area,
like a city or metropolitan area. MANs are typically 10–50 km in size.
(Any two correct difference points)
OR
A network gateway is a device or software that connects networks
Page 5 of
GROUP BY MANUFACTURER;
ii. SELECT ITEMNAME, COUNT(*) FROM
GADGET GROUP BY ITEMNAME;
iii. SELECT ITEMNAME,SHOP_NAME, QTY FROM
GADGET G, STOCK S WHERE G.I_ID=S.I_ID;
OR
i) SELECT PR_NAME,AVG(QTY) FROM PRODUCT
GROUP BY PR_NAME;
ii) SELECT LEFT(MANUFACTURER,5) FROM PRODUCT;
iii) SELECT PR_NAME, PRICE, C_NAME, CITY FROM
PRODUCT P, CLIENT C WHERE P.PR_ID=C.PR_ID;
Q Section-D (2 x 4 = 8 Marks) Mark
No s
33. import matplotlib.pyplot as plt 4
import numpy as np x=np.array([1,2,3])
state=['Rajasthan','Delhi','Punjab']
eligible=[13.7,2.6,4.1]
paid=[12.9,2.0,3.5]
plt.bar(x-.1,eligible,width=.2,label='Eligible')
plt.bar(x+.1,paid,width=.2,label='Paid')
plt.xticks(ticks=x,labels=state)
plt.xlabel('State--->')
plt.ylabel('No. of people in lacs--->')
plt.title('Health benefit distribution under Ayushman
Bharat (2017-2021)')
plt.legend()
plt.savefig('health.svg')
OR
import matplotlib.pyplot as plt
session=['2014-15','2015-16','2016-17','2017-18','2018-19']
loan_applications=[254420,261257,215422,242433,238989]
plt.plot(session,loan_applications,'r:x')
plt.xlabel('Session--->')
plt.ylabel('Applications--->')
plt.title('Loan applications received by the banks of India')
plt.show()
34. 1. SELECT RIGHT(Membership_Til, 2) FROM Club; 4
2. SELECT MAX(Fee_Paid), MIN(Fee_Paid) FROM Club;
3. SELECT COUNT(*) FROM Club WHERE Sport = ‘GOLF’;
4. SELECT MName,Fee_Paid FROM Club ORDER BY
Fee_paid;
OR
Tulasi creates a table RESULT with a set of records to maintain
themarks secured by students in Term1, Term2, and their
divisions.After the creation of the table, he entered data of 7
students in the table.
Page 6 of
123 101 KARAN 366 410 I
245 102 NAMAN 300 350 I
128 103 ISHA 400 410 I
129 104 RENU 350 357 I
234 105 ARPIT 100 205 II
187 106 SABINA 100 205 II
181 107 NEELAM 470 450 I
Page 7 of
O
R
C. df_exam.loc[df_exam.X == 'Sanskrit', 'XII'] = 'IP'
D. df.rename(columns={'Day': 'Weekday'}, inplace=True)
37. ANS: 5
a. Select Mod(75 , 45);
b. Select now();
c. Select left(‘Jaipur Region’,5);
d. Select pow(17,2);
e. Select round(1789.897,2);
OR
a. MOD() : Remainder of X/Y
select mod(13,5);
mod(13,5)
3
b. Monthname(): returns the name of the month for a
given date.
select monthname('2017-09-14');
+ +
| monthname('2017-09-14') |
+ +
| September |
+ +
c. Trim() : Removes both leading (left) and Trailing (right
)Spaces from given string.
Select Trim(### India Shining## ‘)
Output :
India Shining
Page 8 of