0% found this document useful (0 votes)
20 views45 pages

IP 12th

This document is a sample question paper for Class XII Informatics Practices, covering various topics in programming and database management. It includes five sections with a total of 70 marks, featuring multiple-choice questions, short answer questions, and programming tasks primarily using Python. The paper assesses knowledge on SQL, data structures, and e-waste management among other subjects.

Uploaded by

LAKSHYA GOSWAMI
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)
20 views45 pages

IP 12th

This document is a sample question paper for Class XII Informatics Practices, covering various topics in programming and database management. It includes five sections with a total of 70 marks, featuring multiple-choice questions, short answer questions, and programming tasks primarily using Python. The paper assesses knowledge on SQL, data structures, and e-waste management among other subjects.

Uploaded by

LAKSHYA GOSWAMI
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/ 45

SAMPLE QUESTION PAPER

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?

SELECT COUNT(column name) FROM inventory;

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?

SELECT SUM (DISTINCT Fees) FROM student;

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?

i. SELECT * FROM ORDERS;


ii. SELECT COUNT (*) FROM ORDERS;
iii. SELECT FIND (*) FROM ORDERS;
iv. SELECT SUM () FROM ORDERS;
8. Which one of the following is not an aggregate function? 1
i. ROUND()
ii. SUM()
iii. COUNT()
iv. AVG()
9. Which one of the following functions is used to find the largest value from the 1
given data in MySQL?
i. MAX( )
ii. MAXIMUM( )
iii. BIG( )
iv. LARGE( )
10. To display last five rows of a series object ‘S’, you may write: 1
i. S.Head()
ii. S.Tail(5)
iii. S.Head(5)
iv. S.tail()
11. Which of the following statement will import pandas library? 1
i. Import pandas as pd
ii. import Pandas as py
iii. import pandas as pd
iv. import panda as pd
12. Which of the following can be used to specify the data while creating a 1
DataFrame?
i. Series
ii. List of Dictionaries
iii. Structured ndarray
iv. All of these
13. Which amongst the following is not an example of a browser? 1
i. Chrome
ii. Firefox
iii. Avast
iv. Edge
14. In SQL, which function is used to display current date and time? 1
i. Date ()
ii. Time ()
iii. Current ()
iv. Now ()
15. Legal term to describe the rights of a creator of original creative or artistic work 1
is:
i. Copyright
ii. Copyleft
iii. GPL
iv. FOSS
16. __________is the trail of data we leave behind when we visit any website (or use 1
any online application or portal) to fill-in data or perform any transaction.
i. Offline phishing
ii. Offline footprint
iii. Digital footprint
iv. Digital phishing
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
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
17. Assertion (A): - Internet cookies are text files that contain small pieces of data, 1
like a username, password and user’s preferences while surfing the internet.

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

Reasoning (R): - A DataFrame is a two-dimensional labelled data structure like


a table of MySQL.
PART B
19. Explain the terms Web page and Home Page. 2

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:

SELECT HOUSE, COUNT (*) FROM STUDENT GROUP BY HOUSE


WHERE HOUSE=’RED’ OR HOUSE= ‘YELLOW’;

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.

23. List any four benefits of e-waste management. 2


OR
Mention any four net etiquettes.

24. What will be the output of the following code: 2


>>>import pandas as pd
>>>A=pd.Series(data=[35,45,55,40])
>>>print(A>45)

25. Carefully observe the following code: 2

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)

Answer the following:

i. List the index of the DataFrame df


ii. List the column names of DataFrame df.
SECTION C
26. Write outputs for SQL queries (i) to (iii) which are based on the given table 3
PURCHASE:

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

i. SELECT LENGTH(CNAME) FROM PURCHASE WHERE


QUANTITY>100;
ii. SELECT CNAME FROM PURCHASE WHERE
MONTH(DOP)=3;
iii. SELECT MOD (QUANTITY, DAY(DOP)) FROM PURCHASE
WHERE CITY= ‘CHANDIGARH’;
27. Write a Python code to create a DataFrame with appropriate column headings 3
from the list given below:

[[101,'Gurman',98],[102,'Rajveer',95],[103,'Samar' ,96],[104,'Yuvraj',88]]

28. Consider the given DataFrame ‘Stock’: 3

Name Price
0 Nancy Drew 150
1 Hardy boys 180
2 Diary of a wimpy kid 225
3 Harry Potter 500

Write suitable Python statements for the following:


i. Add a column called Special_Price with the following data:
[135,150,200,440].
ii. Add a new book named ‘The Secret' having price 800.
iii. Remove the column Special_Price.
29. Nadar has recently shifted to a new city and school. She does not know many 3
people in her new city and school. But all of a sudden, someone is posting
negative, demeaning comments on her social networking profile etc.

She is also getting repeated mails from unknown people. Every time she goes
online, she finds someone chasing her online.

i. What is this happening to Nadar?


ii. What immediate action should she take to handle it?
iii. Is there any law in India to handle such issues? Discuss briefly.
OR
What do you understand by plagiarism? Why is it a punishable offence? Mention
any two ways to avoid plagiarism.
30. Based on table STUDENT given here, write suitable SQL queries for the 3
following:

Roll No Name Class Gender City Marks


1 Abhishek XI M Agra 430
2 Prateek XII M Mumbai 440
3 Sneha XI F Agra 470
4 Nancy XII F Mumbai 492
5 Himnashu XII M Delhi 360
6 Anchal XI F Dubai 256
7 Mehar X F Moscow 324
8 Nishant X M Moscow 429
i. Display gender wise highest marks.
ii. Display city wise lowest marks.
iii. Display total number of male and female students.
OR
Discuss the significance of Group by clause in detail with the help of suitable
example.
SECTION D
31. Write suitable SQL query for the following: 5
i. Display 7 characters extracted from 7th left character onwards from the
string ‘INDIA SHINING’.
ii. Display the position of occurrence of string ‘COME’ in the string
‘WELCOME WORLD’.
iii. Round off the value 23.78 to one decimal place.
iv. Display the remainder of 100 divided by 9.
v. Remove all the expected leading and trailing spaces from a column userid
of the table ‘USERS’.
OR
Explain the following SQL functions using suitable examples.
i. UCASE()
ii. TRIM()
iii. MID()
iv. DAYNAME()
v. POWER()

32. Prime Computer services Ltd. is an international educational organization. It is 5


planning to set up its India campus at Mumbai with its head office in Delhi. The
Mumbai office campus has four main buildings-ADMIN, ACCOUNTS,
EXAMINATION and RESULT.
You as a network expert have to suggest the best network related solutions for
their problems raised in (i) to (v), keeping in mind the distances between the
buildings and other given parameters.

MUMBAI CAMPUS
DELHI HEAD OFFICE
ACCOUNTS
EXAMINATION

ADMIN RESULT

Shortest distances between various buildings:


ADMIN TO ACCOUNTS 55 m
ADMIN TO EXAMINATION 90 m
ADMIN TO RESULT 50 m
ACCOUNTS TO EXAMINATION 55 m
ACCOUNTS TO RESULT 50 m
EXAMINATION TO RESULT 45 m
DELHI Head Office to MUMBAI 2150 m
campus

Number of computers installed at various buildings are as follows:


ADMIN 110
ACCOUNTS 75
EXAMINATION 40
RESULT 12
DELHI HEAD OFFICE 20
(i) Suggest the most appropriate location of the server inside the
MUMBAI campus (out of the four buildings) to get the best
connectivity for maximum number of computers. Justify your answer.
(ii) Suggest and draw cable layout to efficiently connect various buildings
within the MUMBAI campus for a wired connectivity.
(iii) Which networking device will you suggest to be procured by the
company to interconnect all the computers of various buildings of
MUMBAI campus?
(iv) Company is planning to get its website designed which will allow
students to see their results after registering themselves on its server.
Out of the static or dynamic, which type of website will you suggest?
(v) Which of the following will you suggest to establish the online face
to face communication between the people in the ADMIN office of
Mumbai campus and Delhi head office?
a) Cable TV
b) Email
c) Video conferencing
d) Text chat
33. Write Python code to plot a bar chart for India’s medal tally as shown below: 5

Also give suitable python statement to save this chart.


OR
Write a python program to plot a line chart based on the given data to depict the
changing weekly average temperature in Delhi for four weeks.

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

CCODE CNAME SIZE COLOR PRICE DOP


C001 JEANS XL BLUE 990 2022-01-21
C002 T SHIRT M RED 599 2021-12-12
C003 TROUSER M GREY 399 2021-11-10
C004 SAREE FREE GREEN 1299 2019-11-12
C005 KURTI L WHITE 399 2021-12-07
i. Write a query to display cloth names in lower case.
ii. Write a query to display the lowest price of the cloths.
iii. Write a query to count total number of cloths purchased of medium
size.
OR (Option for part iii only)

Write a query to count year wise total number of cloths purchased.


35. Mr. Som, a data analyst has designed the DataFrame df that contains data about
Computer Olympiad with ‘CO1’, ‘CO2’, ‘CO3’, ‘CO4’, ‘CO5’ as indexes shown
below. Answer the following questions:

School Tot_students Topper First_Runnerup


CO1 PPS 40 32 8 1+1+2
CO2 JPS 30 18 12
CO3 GPS 20 18 2
CO4 MPS 18 10 8
CO5 BPS 28 20 8

A. Predict the output of the following python statement:


i. df.shape
ii. df[2:4]
B. Write Python statement to display the data of Topper column of indexes
CO2 to CO4.
OR (Option for part iii only)
Write Python statement to compute and display the difference of data of
Tot_students column and First_Runnerup column of the above given
DataFrame.
SAMPLE QUESTION PAPER
CLASS XII
INFORMATICS PRACTICES (065)
TIME: 03 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 has 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 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.
SECTION A

1. A ____________is a device that connects the organisation’s network with the 1


outside world of the Internet.
i. Hub
ii. Modem
iii. Gateway
iv. Repeater

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

3. Copyright, Patent and Trademark comes under: 1


i. Intellectual Property Right
ii. Individual Property Right
iii. Industrial Property Right
iv. International Property Right

4. Predict the output of the following query: 1


SELECT MOD (9,0);
i. 0
ii. NULL
iii. NaN
iv. 9
5. Which of the following SQL functions does not belong to the Math functions 1
category?
i. POWER()
ii. ROUND()
iii. LENGTH()
iv. MOD()

6. ________ is not a FOSS tool. 1


i. Libre Office
ii. Mozilla Firefox
iii. Google Chrome
iv. Python

7. CSV stands for: 1


i. Column Separated Value
ii. Class Separated Value
iii. Comma Separated Value
iv. Comma Segregated Value

8. Raj, a Database Administrator, needs to display the average pay of workers 1


from those departments which have more than five employees. He is
experiencing a problem while running the following query:

SELECT DEPT, AVG(SAL) FROM EMP WHERE COUNT(*) > 5


GROUP BY DEPT;

Which of the following is a correct query to perform the given task?

i. SELECT DEPT, AVG(SAL) FROM EMP WHERE COUNT(*) > 5


GROUP BY DEPT;
ii. SELECT DEPT, AVG(SAL) FROM EMP HAVING COUNT(*) >
5 GROUP BY DEPT;
iii. SELECT DEPT, AVG(SAL) FROM EMP GROUP BY DEPT
WHERE COUNT(*) > 5;
iv. SELECT DEPT, AVG(SAL) FROM EMP GROUP BY DEPT
HAVING COUNT(*) > 5;

9. Predict the output of the following query: 1


SELECT LCASE (MONTHNAME ('2023-03-05'));
i. May
ii. March
iii. may
iv. march
10. Which of the following command will show the last 3 rows from a Pandas 1
Series named NP?
i. NP.Tail( )
ii. NP.tail(3)
iii. NP.TAIL(3)
iv. All of the above

11. With reference to SQL, identify the invalid data type. 1


i. Date
ii. Integer
iii. Varchar
iv. Month

12. In Python Pandas, while performing mathematical operations on series, index 1


matching is implemented and all missing values are filled in with _____by
default.
i. Null
ii. Blank
iii. NaN
iv. Zero

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

14. In SQL, the equivalent of UCASE() is: 1


i. UPPERCASE ()
ii. CAPITALCASE()
iii. UPPER()
iv. TITLE ()

15. Collection of hyper linked documents available on the internet is known 1


as_______________.
i. Website
ii. Webpage
iii. Web Server
iv. Web Hosting
16. _______________is a non-profit organization that aims to build a publicly 1
accessible global platform where a range of creative and academic work is
shared freely.
i. Creative Cost
ii. Critical Commons
iii. Creative Commons
iv. Creative Common

17. Assertion (A):- MODEM stands for modulator-demodulator. 1


Reasoning (R): - It is a computer hardware device that converts data from a
digital format to analog and vice versa.
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

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)

21. Consider the given SQL string: 2


“12#All the Best!”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “the” in
the given string.
ii. To extract last five characters from the string.
22. Predict the output of the given Python code: 2
import pandas as pd
list1=[-10,-20,-30]
ser = pd.Series(list1*2)
print(ser)

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[ ___________ ])

25. What are aggregate functions in SQL? Name any two. 2

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:

28. Write MySQL statements for the following: 3


i. To create a database named FOOD.
ii. To create a table named Nutrients based on the following specification:
Column Name Data Type Constraints
Food_Item Varchar(20) Primary Key
Calorie Integer

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.

30. Consider the given DataFrame ‘Genre’: 3


Type Code
0 Fiction F
1 Non Fiction NF
2 Drama D
3 Poetry P

Write suitable Python statements for the following:


i. Add a column called Num_Copies with the following data:
[300,290,450,760].
ii. Add a new genre of type ‘Folk Tale' having code as “FT” and 600
number of copies.
iii. Rename the column ‘Code’ to ‘Book_Code’.
SECTION D

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

i. Write a query to display the year of oldest transaction.


ii. Write a query to display the month of most recent transaction.
iii. Write a query to display all the transactions done in the month of May.
iv. Write a query to count total number of transactions in the year 2022.

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

33. Write suitable SQL queries for the following: 5


i. To calculate the exponent for 3 raised to the power of 4.
ii. To display current date and time.
iii. To round off the value -34.4567 to 2 decimal place.
iv. To remove all the probable leading and trailing spaces from the
column userid of the table named user.
v. To display the length of the string ‘FIFA World Cup’.
OR
Kabir has created following table named exam:
+-------+---------+------------------+-------+
| RegNo | Name | Subject | Marks |
+-------+---------+------------------+-------+
| 1 | Sanya | Computer Science | 98 |
| 2 | Sanchay | IP | 100 |
| 3 | Vinesh | CS | 90 |
| 4 | Sneha | IP | 99 |
| 5 | Akshita | IP | 100 |
+-------+---------+------------------+-------+
Help him in writing SQL queries to the perform the following task:
i. Insert a new record in the table having following values:
[6,'Khushi','CS',85]
ii. To change the value “IP” to “Informatics Practices” in subject
column.
iii. To remove the records of those students whose marks are less than
30 .
iv. To add a new column Grade of suitable datatype.
v. To display records of “Informatics Practices” subject.

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.

35. The heights of 10 students of eighth grade are given below: 5

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:

Also give suitable python statement to save this chart.


Series &RQPS/S Set-4
>
Q.P. Code 90/S
Candidates must write the Q.P. Code
Roll No.
on the title page of the answer-book.

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

7. In Pandas library of Python, a one-dimensional array containing a


sequence of values of any datatype is known as : 1
(A) DataFrame (B) Histogram
(C) Series (D) Panel

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

9. What will be the output of the following query ? 1


SELECT SUBSTR("Swachh Survekshan",2,4)
(A) wac (B) wach
(C) shan (D) achh

10. What will be the output of the following Pythan code ? 1


import pandas as pd
dd={'Jan':31,'Feb':28,'Mar':31,'Apr':30}
rr=pd.Series(dd)
print(rr)

(A) Jan 31
Feb 28
Mar 31
Apr 30
dtype: int64

(B) Jan Feb Mar Apr


31 28 31 30
dtype: int64

(C) Jan – 31
Feb – 28
Mar – 31
Apr – 30
dtype: int64

(D) Jan Feb Mar Apr

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

14. What is the output of the following SQL Query ? 1


SELECT INSTR("KNOWLEDGE","E");
(A) 7 (B) 5
(C) 6 (D) –6

15. Which of the following is not a feature of Open Source Software ? 1


(A) It can be shared with others without any licensing burden.
(B) It is same as free software.
(C) It can be downloaded on multiple devices.
(D) Its source code is available for free distribution.

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

(C) Assertion (A) is true, but Reason (R) is false.

(D) Assertion (A) is false, but Reason (R) is true. 1

18. Assertion (A) : The Pandas library in Python is primarily used for
creating static, animated and interactive 2D plots or
figures.

Reason (R) : Data visualization can be achieved with the help of a


variety of charts and plots, including static plots,
animations, and interactive visualizations.
(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. 1

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

22. Find the output of the following Python code : 2

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)

23. Define the following terms : 2

(i) Web Hosting

(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

26. Consider the table BIKES given below :


Table : BIKES
Bid Bikename Brandname Biketype Cost
1001 Dream Racer Speedo Super 1980000
1002 Splendid Indiana NULL 50000
1003 Silver Wing Indiana Touring 2300000
1004 ZZZZ WMV Sports 1500000
1005 CH2H Speedo Super 470000
1006 Astor Victory Normal 1700000
1007 CHANDRA WMV Adventure 3000000
1008 SWISS WMV Touring 4200000
1009 SWIFT ROADY Super 1900000
1010 CLOUD9 GEM Normal 1700000

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

Based on the given information, answer the following questions :


(i) Sarah is a victim of which type of cybercrime ?
(ii) Write any two precautions that one should take to protect
oneself from being the victim of cybercrime.
(iii) Should Sarah immediately change the password of her email
account ?
OR
(b) At a local electronics store, a new range of smartphones has been
launched, creating a buzz among technology enthusiasts. However,
the introduction of these new devices has also raised concerns about
the increasing generation of e-waste in the community.
Answer the following questions based on above extract : 3
(i) Define e-waste.
(ii) Give any one environmental challenge posed by e-waste,
including its impact on air, water, and soil quality.
90/S 9 P.T.O.
(iii) Imagine you are a part of a local environment organization.
Provide any two strategies that could be implemented to
minimize the negative environmental effects of e-waste.

30. Consider the following DataFrame Cricket :


Won Lost Played
A 9 11 20
B 12 5 17
C 10 6 16
D 7 7 14
E 6 6 12

Write suitable Python statements to perform the following tasks : 3


(i) Add a new column Rating to the DataFrame having the following
values : 3, 1, 2, 4, 5
(ii) Change the row labels from A, B, C, D, E to Team A, Team B,
Team C, Team D and Team E.
(iii) Change the column label of first column from 'Won' to
'Matches won'.

SECTION – D

31. Ms. Sridevi is a placement head in a reputed engineering institute and


has created the following table to store the records of students getting
placement in various companies :

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;

32. Ms. Shambhavi, a data analyst working on a college admission project,


has created the following DataFrame Sub_Details to store subjectwise
details :
Subject Total Seat
Students Availability
1 English 50 No
2 IT 45 Yes
3 AI 40 Yes
4 CS 50 No
5 CA 47 Yes

Help her by answering the following questions : 4

(i) Write suitable Python command to display the row having index
value 3.

(ii) Predict the output of the following Python statement :


print(Sub_Details.loc[2:3,'Total Students'])

(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

33. Consider the tables Faculty and Batch given below :

Table : Faculty
F_Id FacName DoJ Qualification Salary

Emp01 Neeta Khanna 2013-07-01 MCA 85000


Emp02 Sonia Chawla 2023-05-05 MA 35000
Emp03 Sheetal 2015-06-28 MSc 90000
Emp04 Bindu 2016-03-30 M.Com 80000
Emp05 Sunidhi 2002-06-28 BA 100000
Emp06 Ashish 1999-07-01 B.Com 120000

Table : Batch
Batchid BatchName F_Id Daysperweek Subjects

B01 TXAlpha Emp01 3 English


B02 TXBeta Emp05 5 Chemistry
B03 TXGama Emp02 4 Physics
B04 Super30 Emp03 3 Mathematics
B05 G-20 EMp04 2 Economics
B06 LXAlpha Emp01 4 Accountancy

Write SQL queries for the following : 5


(a) (i) Display name and salary of all faculties in alphabetical order
of their names.
(ii) Display details of faculties who joined on Monday.
(iii) Display names of faculties, their salary and BatchName from
both the tables.
(iv) Display the details of all faculties whose salary is more than
60000 and have joined before the year 2007.
(v) Display the name of faculty who is taking TXAlpha Batch.

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]

Write a Python code to generate a Bar Chart on the given data,


having suitable Chart Title and labels for X and Y axis. Also add
suitable statement to save this chart with the name calorie.png. 5

OR
(b) Consider the following data :

Year Student Strength


2019 150
2020 180
2021 240
2022 120
2023 180

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

2019 2020 2021 2022 2023

Year ¾¾®
Also give suitable Python statement to save this chart with name,
stud.png.

90/S 15 P.T.O.

You might also like