IP 12th
IP 12th
CLASS XII
INFORMATICS PRACTICES (065)
TIME: 3 HOURS M.M.70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is
given in Q35 against part c only.
8. All programming questions are to be answered using Python Language only.
PART A
1. Television cable network is an example of: 1
i. LAN
ii. WAN
iii. MAN
iv. Internet
2. Which of the following is not a type of cyber crime? 1
i. Data theft
ii. Installing antivirus for protection
iii. Forgery
iv. Cyber bullying
3. What is an example of e-waste? 1
i. A ripened mango
ii. Unused old shoes
iii. Unused old computers
iv. Empty cola cans
4. Which type of values will not be considered by SQL while executing the 1
following statement?
i. Numeric value
ii. text value
iii. Null value
iv. Date value
5. If column “Fees” contains the data set (5000,8000,7500,5000,8000), what will 1
be the output after the execution of the given query?
i. 20500
ii. 10000
iii. 20000
iv. 33500
6. ‘O’ in FOSS stands for: 1
i. Outsource
ii. Open
iii. Original
iv. Outstanding
7. Which SQL statement do we use to find out the total number of records present 1
in the table ORDERS?
Reasoning (R):- To make browsing the Internet faster & easier, its required to
store certain information on the server’s computer.
18. Assertion (A):- DataFrame has both a row and column index. 1
OR
Mention any four networking goals.
20. Rashmi, a database administrator needs to display house wise total number of 2
records of ‘Red’ and ‘Yellow’ house. She is encountering an error while
executing the following query:
Help her in identifying the reason of the error and write the correct query by
suggesting the possible correction (s).
21. What is the purpose of Order By clause in SQL? Explain with the help of suitable 2
example.
22. Write a program to create a series object using a dictionary that stores the number 2
of students in each house of class 12D of your school.
Note: Assume four house names are Beas, Chenab, Ravi and Satluj having
18, 2, 20, 18 students respectively and pandas library has been imported as
pd.
import pandas as pd
Year1={'Q1':5000,'Q2':8000,'Q3':12000,'Q4': 18000}
Year2={'A' :13000,'B':14000,'C':12000}
totSales={1:Year1,2:Year2}
df=pd.DataFrame(totSales)
print(df)
TABLE: PURCHASE
CNO CNAME CITY QUANTITY DOP
C01 GURPREET NEW DELHI 150 2022-06-11
C02 MALIKA HYDERABAD 10 2022-02-19
C03 NADAR DALHOUSIE 100 2021-12-04
C04 SAHIB CHANDIGARH 50 2021-10-10
C05 MEHAK CHANDIGARH 15 2021-10-20
[[101,'Gurman',98],[102,'Rajveer',95],[103,'Samar' ,96],[104,'Yuvraj',88]]
Name Price
0 Nancy Drew 150
1 Hardy boys 180
2 Diary of a wimpy kid 225
3 Harry Potter 500
She is also getting repeated mails from unknown people. Every time she goes
online, she finds someone chasing her online.
MUMBAI CAMPUS
DELHI HEAD OFFICE
ACCOUNTS
EXAMINATION
ADMIN RESULT
Week=[1,2,3,4]
Avg_week_temp=[40,42,38,44]
SECTION E
34. Shreya, a database administrator has designed a database for a clothing shop. 1+1+2
Help her by writing answers of the following questions based on the given
table: TABLE: CLOTH
2. When e-waste such as electronic circuit boards are burnt for disposal, the 1
elements contained in them create a harmful chemical called ________which
causes skin diseases, allergies and an increased risk of lung cancer.
i. Hydrogen
ii. Beryllium
iii. Chlorine
iv. Oxygen
13. By restricting the server and encrypting the data, a software company's 1
server is unethically accessed in order to obtain sensitive information. The
attacker blackmails the company to pay money for getting access to the data,
and threatens to publish sensitive information unless price is paid. This kind
of attack is known as:
i. Phishing
ii. Identity Theft
iii. Plagiarism
iv. Ransomware
18. Assertion (A):- To use the Pandas library in a Python program, one must 1
import it.
Reasoning (R): - The only alias name that can be used with the Pandas library
is pd.
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True
SECTION B
19. Briefly explain the basic concepts of a web server and web hosting. 2
OR
Rati is doing a course in networking. She is unable to understand the concept of
URL. Help her by explaining it with the help of suitable example.
20. The python code written below has syntactical errors. Rewrite the correct code 2
and underline the corrections made.
Import pandas as pd
df ={"Technology":["Programming","Robotics","3D
Printing"],"Time(in months)":[4,4,3]}
df= Pd.dataframe(df)
Print(df)
23. Differentiate between the active digital footprint and passive digital footprints. 2
24. Complete the given Python code to get the required output as: Rajasthan 2
import _________ as pd
di = {'Corbett': 'Uttarakhand', 'Sariska':
'Rajasthan', 'Kanha': 'Madhya Pradesh’,
'Gir':'Gujarat'}
NP = ___________. Series( _____ )
print(NP[ ___________ ])
SECTION C
26. Based on the SQL table CAR_SALES, write suitable queries for the following: 3
+--------+-------------------+--------+-------+-------+
| NUMBER | SEGMENT | FUEL | QT1 | QT2 |
+--------+-------------------+--------+-------+-------+
| 1 | Compact HatchBack | Petrol | 56000 | 70000 |
| 2 | Compact HatchBack | Diesel | 34000 | 40000 |
| 3 | MUV | Petrol | 33000 | 35000 |
| 4 | MUV | Diesel | 14000 | 15000 |
| 5 | SUV | Petrol | 27000 | 54000 |
| 6 | SUV | Diesel | 18000 | 30000 |
| 7 | Sedan | Petrol | 8000 | 10000 |
| 8 | Sedan | Diesel | 1000 | 5000 |
+--------+-------------------+--------+-------+-------+
i. Display fuel wise average sales in the first quarter.
ii. Display segment wise highest sales in the second quarter.
iii. Display the records in the descending order of sales in the second
quarter.
OR
Predict the output of the following queries based on the table CAR_SALES
given above:
i. SELECT LEFT(SEGMENT,2) FROM CAR_SALES WHERE FUEL=
"PETROL";
ii.SELECT (QT2-QT1)/2 "AVG SALE" FROM CAR_SALES WHERE
SEGMENT= "SUV";
iii. SELECT SUM(QT1) "TOT SALE" FROM CAR_SALES WHERE
FUEL= "DIESEL";
27. Create a DataFrame in Python from the given list: 3
[[‘Divya’,’HR’,95000],[‘Mamta’,’Marketing’,97000],[‘Payal’,’IT’,980000],
[‘Deepak’,’Sales’,79000]]
Also give appropriate column headings as shown below:
29. Richa, recently started using her social media account. Within a few days, she 3
befriends many people she knows and some that she does not know. After
some time, she starts getting negative comments on her posts. She also finds
that her pictures are being shared online without her permission.
Based on the given information, answer the questions given below.
i. Identify the type of cybercrime she is a victim of.
ii. Under which act, she can lodge a complaint to the relevant authorities?
iii. Suggest her any two precautionary measures which she should take in
future while being online to avoid any such situations.
OR
Mention any three health hazards associated with inappropriate and excessive
use of gadgets.
31. Preeti manages database in a blockchain start-up. For business purposes, she 4
created a table named BLOCKCHAIN. Assist her by writing the following
queries:
TABLE: BLOCKCHAIN
32. Ekam, a Data Analyst with a multinational brand has designed the DataFrame 4
df that contains the four quarter’s sales data of different stores as shown below:
Store Qtr1 Qtr2 Qtr3 Qtr4
0 Store1 300 240 450 230
1 Store2 350 340 403 210
2 Store3 250 180 145 160
Answer the following questions:
i. Predict the output of the following python statement:
a. print(df.size)
b. print(df[1:3])
ii. Delete the last row from the DataFrame.
iii. Write Python statement to add a new column Total_Sales which is the
addition of all the 4 quarter sales.
OR
(Option for part iii only)
Write Python statement to export the DataFrame to a CSV file named data.csv
stored at D: drive.
SECTION E
34. XYZ Media house campus is in Delhi and has 4 blocks named Z1, Z2, Z3 and 5
Z4. The tables given below show the distance between different blocks and the
number of computers in each block.
The company is planning to form a network by joining these blocks.
i. Out of the four blocks on campus, suggest the location of the server that
will provide the best connectivity. Explain your response.
ii. For very fast and efficient connections between various blocks within the
campus, suggest a suitable topology and draw the same.
iii. Suggest the placement of the following devices with justification
(a) Repeater
(b) Hub/Switch
iv. VoIP technology is to be used which allows one to make voice calls
using a broadband internet connection. Expand the term VoIP.
v. The XYZ Media House intends to link its Mumbai and Delhi centers.
Out of LAN, MAN, or WAN, what kind of network will be created?
Justify your answer.
Height_cms=[145,141,142,142,143,144,141,140,143,144]
Write suitable Python code to generate a histogram based on the given data,
along with an appropriate chart title and both axis labels.
Also give suitable python statement to save this chart.
OR
Write suitable Python code to create 'Favourite Hobby' Bar Chart as
shown below:
INFORMATICS PRACTICES
Time allowed : 2 hours Maximum Marks : 70
NOTE
(I) Please check that this question paper contains 15 printed pages.
(II) Please check that this question paper contains 35 questions.
(III) Q.P. Code given on the right hand side of the question paper should be written on the title
page of the answer-book by the candidate.
(IV) Please write down the serial number of the question in the answer-book before
attempting it.
(V) 15 minute time has been allotted to read this question paper. The question paper will be
distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the students will read the question
paper only and will not write any answer on the answer-book during this period.
General Instructions :
(i) This question paper contains five sections, Section A to E.
(ii) All questions are compulsory.
(iii) Section A has 18 questions carrying 1 mark each.
(iv) Section B has 7 Very Short Answer type questions carrying 2 marks each.
(v) Section C has 5 Short Answer type questions carrying 3 marks each.
(vi) Section D has 2 questions carrying 4 marks each.
(vii) Section E has 3 questions carrying 5 marks each.
(viii) All programming question are to be answered using Python language
only.
90/S 1 P.T.O.
SECTION A
1. What does a modem do at the sender’s end ? 1
(A) It converts analog signals into digital data.
(B) It converts digital data into analog signals.
(C) It converts digital data into optical signals.
(D) It converts optical signals into digital data.
2. Which out of the following cannot be included in digital footprint ? 1
(A) Submitting the form online
(B) Searching for your friend’s address online
(C) Walking on the beach
(D) Online shopping
3. Emma is a student working on her research project. She finds a
well-written paragraph on the Internet that perfectly explains the concept
that she wants to include in her project. She copies and pastes the
paragraph as it is into her research paper. Her research paper did not get
selected due to plagiarism. What is the one way out of the following that
Emma could have followed to avoid plagiarism in this case ? 1
(A) Copying the content from a book in her college library.
(B) Rewriting the paragraph in her own words and citing the original
source.
(C) Asking her friends for information and using it in her research
paper, without mentioning her friend’s input.
(D) Posting the paper on her college website.
4. What will be the output of the following query ? 1
SELECT MOD (5, 15);
(A) 10 (B) 3
(C) 0 (D) 5
5. Which of the following aggregate function returns the average of values in
a specified column of a MySQL table ? 1
(A) AVG(Column) (B) AVERAGE(Column)
(C) MEAN(Column) (D) TOTAL(Column)
6. For how long does a patent typically protect an invention ? 1
(A) 5 years (B) 10 years
(C) 20 years (D) 50 years
90/S 2
8. Now() in MySQL returns _______________. 1
(A) Today’s date (B) Today’s date and current time
(C) System’s date and time (D) Name of active database
(A) Jan 31
Feb 28
Mar 31
Apr 30
dtype: int64
(C) Jan – 31
Feb – 28
Mar – 31
Apr – 30
dtype: int64
31 28 31 30
dtype: int64
90/S 3 P.T.O.
11. With respect to databases, a row in a relation is also known as a/an
__________. 1
(A) Attribute (B) Tuple
(C) Field (D) Domain
12. Which of the following command is used to display first three rows of a
DataFrame 'DF' ? 1
(A) DF.head()
(B) DF.header()
(C) DF.head(3)
(D) DF.Head(3)
13. Which of the following Internet services is used for instant messaging ? 1
(A) Chat (B) Email
(C) WWW (D) Python
16. What is a common symptom of extended use of digital devices these days ? 1
(A) Improved eyesight
(B) Enhanced physical fitness
(C) Eye strain
(D) Increased muscle strength
90/S 4
17. Assertion (A) : Hacking is a cyber crime.
Reason (R) : To avoid hacking, one should not share the password
with anyone.
(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).
18. Assertion (A) : The Pandas library in Python is primarily used for
creating static, animated and interactive 2D plots or
figures.
SECTION B
19. (a) Write one function each for the following network devices : 2
(i) MODEM
(ii) Router
OR
(b) Write any one advantage and any one disadvantage of BUS topology. 2
90/S 5 P.T.O.
20. The Python code written below has syntactical errors. Rewrite the correct
code and underline the correction(s) made. 2
import Pandas as pd
countries=[{'country';'INDIA','capital':'New Delhi'},
{'country':'USA','capital':'New York'},
{'country':'JAPAN','capital':'Tokyo'}
df=pd.DataFrame(country)
print(df)
21. Consider the string 'PAINTING'. Write the SQL commands to display the
following output : 2
(i) ING
(ii) INT
import pandas as pd
vaccine_qty=pd.Series([10,16,1],index=["Typhoid",
"Tetanus","Hepatitis"])
cost=pd.Series([200,500,800],index=["Typhoid","Tetanus",
"Flu"])
print(vaccine_qty + cost)
(ii) WWW
90/S 6
24. Consider the following Python code : 2
import pandas as pan
customer=[{'Name':'Alisha','Age':25,'Gender':'Female',
'Occupation':'Engineer'},
{'Name':'Rozer','Age':34,'Gender':'Male',______:
'Analyst'},
{'Name':'Fazal','Age':28,'Gender':'Male',
'Occupation':'Developer'}]
df= _________.DataFrame(__________)
print(_________)
Complete the above given Python code to display the following output :
Name Age Gender Occuptaion
0 Alisha 25 Female Occupation
1 Rozer 34 Male Engineer
2 Fazal 28 Male Developer
25. Write any two differences between DELETE and DROP TABLE command of
MySQL. 2
SECTION C
90/S 7 P.T.O.
(a) Write SQL commands for the following : 3
(i) Display Bikenames and their corresponding Brandnames in
descending order of cost.
(ii) Display Brandnames of bikes whose Biketype is not known.
(iii) Consider the following query :
SELECT*FROM BIKES WHERE Cost BETWEEN 200000 AND
3000000;
Write another query, using relational and logical operators
which will produce the same output.
OR
(b) Predict the output of the following queries based on the table BIKES
given above : 3
(i) SELECT UCASE(TRIM(Brandname)) FROM BIKES
WHERE Bid = 1003;
(ii) SELECT COUNT(Biketype) FROM BIKES;
(iii) SELECT SUM(Cost), Brandname FROM BIKES
GROUP BY Brandname
Having Brandname = "WMV" OR Brandname = "Indiana";
27. Sejal, a Python programmer has been given the following tasks :
(i) Create two series – one to store various product names and the other
to store the corresponding price.
Each series should have appropriate row label as given below :
Product_name Product_price
B1001 Butterscotch 130
V3002 Vanilla 100
M4002 Mango Zap 150
M4007 Magnum 190
C6005 Cassatta 200
(ii) Create a dictionary containing ‘Product_name’ and ‘Product_price’ as
keys. Add the series created in part (i) as their corresponding values.
(iii) Create a DataFrame from the above created dictionary of series.
Help her in writing the Python program to accomplish the above
mentioned tasks. 3
90/S 8
28. Answer the following questions based on the table Sales given below :
Table : Sales
id Name City Commission
E001 Naman Batra Chandigarh 20
E002 Rupesh Mann Delhi 15
E005 Ravi Gautam Mumbai 25
E006 Mukul Singh Delhi 30
E007 Ruby Rai Mumbai 19
E003 Raman Roy Kolkata 16
(i) Suggest the Primary key for the given table ?
(ii) Write the SQL command to insert the following data in the table
Sales :
id E009
Name Sukumar
City Nagpur
Commission 10
(iii) Is the command used in part (ii) a DDL or a DML command ? 3
29. (a) Sarah works in a multinational IT firm. One day, she came to know
that some mails were sent from her official mail account but she had
not actually sent them. 3
SECTION – D
Table : Placement
Compid Company Vaca Appeared Department DoJ City
Name ncies
CP01 Rising 20 300 Networking 2020-07-02 Bengaluru
Star
CP02 Smoke 30 350 Web 2019-07-12 Chennai
Ring Development
CP03 Pilot 15 421 Cloud 2020-08-12 Bengaluru
CP04 Jingle 10 145 Servers 2019-01-23 Hyderabad
CP05 Neel 17 568 Data 2018-09-02 Bengaluru
Zone Analytics
CP06 Hard 12 276 Marketing 2020-07-02 Hyderabad
Talk
90/S 10
Based on the given table, help Ms. Sridevi to write SQL queries for
performing the following tasks : 4
(i) To list names of those companies where department is either
Marketing or Networking.
(ii) To display the joining month name for Rising Star company.
Ms. Sridevi has written following queries. Write the output of each query :
(iii) SELECT LEFT (CompanyName, INSTR(CompanyName,"R"))
FROM Placement where vacancies >=20;
(iv) SELECT CompanyName FROM Placement WHERE Vacancies
< 20 AND Appeared >300;
(i) Write suitable Python command to display the row having index
value 3.
(iii) (a) Write suitable Python statement to display the list of various
subjects along with their corresponding seat availability.
OR [option for part (iii) only]
(b) Ms. Shambhavi has just created a folder named Project in the
E: drive of her computer to store necessary files related to the
project. Write suitable Python statement to export the given
DataFrame into the file stud.csv, created inside project folder
in E: drive.
90/S 11 P.T.O.
SECTION – E
Table : Faculty
F_Id FacName DoJ Qualification Salary
Table : Batch
Batchid BatchName F_Id Daysperweek Subjects
OR
90/S 12
(b) (i) Display maximum days per week for each F_Id from the table
Batch.
(ii) Display names of faculties after removing leading and trailing
spaces.
(iii) Display total number of records in the table Faculty.
(iv) Increase the salary by 25% of those employees whose
qualification is MCA.
(v) Delete the records of batches whose subject is English.
34. Classpoint Pvt. Ltd., Pune is a company that deals with development and
training of software. They have different divisions HR (H1), Training
(H2), Sales (H3) and Marketing (H4). The layout of the Pune branch is :
HR TRAINING
(H1) (H2)
SALES MARKETING
(H3) (H4)
The management wants to connect all the divisions as well as all the
computers of each division (H1, H2, H3 and H4).
Distance between the divisions are as follows :
H1 to H2 90m
H1 to H3 145m
H1 to H4 88m
H2 to H3 110m
H2 to H4 80m
H3 to H4 160m
Number of computers in each division :
Division Number of Computers
H1 100
H2 220
H3 160
H4 140
90/S 13 P.T.O.
Based on the above specifications, answer the following questions : 5
(i) Suggest the topology and draw the most suitable cable layout for
connecting all the divisions.
(ii) Classpoint Pvt. Ltd. plans to establish a new office in Dubai. Out of
LAN, MAN and WAN, what kind of network will be created to
connect Pune office with Dubai office ?
(iii) Suggest the division for the placement of server in Pune office.
Explain the reason for your selection.
(iv) Suggest the placement of switch/hub with justification.
(v) Ms. Abhilasha, working in Dubai office, is creating a software for
conducting program for the employees of Pune branch. Which
protocol would help her in voice transmission over a computer
network ?
35. (a) Akriti keeps the calorie count of different food items as follows :
Food=['Apple','Banana','Rice','Wheat','Carrot']
Calorie=[72,105,204,455,52]
OR
(b) Consider the following data :
Write a Python code to draw the following line chart having title and
labels for x and y axis as shown below : 5
90/S 14
Year Wise Students Strength in Class XII
240
220
200
180
160
140
120
Year ¾¾®
Also give suitable Python statement to save this chart with name,
stud.png.
90/S 15 P.T.O.