IP Question Paper Class XII
IP Question Paper Class XII
General Instructions:
SECTION A
You have been given the column ‘Score’ in the table 'SPORTS', which
contains the scores of different games as (5, NULL, 2, 5).
What will be the output when calculating the average of the scores
obtained by different games?
i. 4
ii. 3
iii. 3.5
iv. 5
5. Riya, a student in class XII, has downloaded a CSV file from the internet [1]
for her project. However, she does not want the previous data, which is in
the first five rows of the file, for her data analysis. She wants to skip the
previous data while importing the CSV file into the dataframe. Help her to
skip the first 5 rows of the CSV file by choosing the right argument in
read_csv().
i. skip_rows = 5
ii. noread - 5
iii. skiprows = 5
iv. skip - 5
6. Which of the following SQL query is use to retrieve the string ‘INDIA’ from [1]
the text “&& INDIA &&”.
i. SELECT TRIM('&&') FROM '&& INDIA &&';
ii. SELECT TRIM('&&' FROM '&& INDIA &&');
iii. SELECT TRIM('&& INDIA &&' FROM '&&');
iv. SELECT TRIM('&&INDIA&&');
8. Ramandeep is a young woman with great aspirations and has a good team [1]
of like - minded people. She along with her team members started a
company to sell handicrafts online and also designed a logo for their
company. What type of intellectual property does this logo represent?
i. Patents
ii. Trademark
iii. Design
iv. Copyright
i. Index Error
ii. 2
iii. Feb
iv. Jan
i. length( )
ii. instring( )
iii. substr( )
iv. left( )
13. What is the significance of the statement "HAVING COUNT (emp_id)>2" in [1]
the following MySQL statement?
SELECT name, COUNT (emp_id),emp_no FROM department GROUP BY
name HAVING COUNT (emp_id)>2;
i. Selecting those rows whose total emp_id>2
ii. Both filter out all rows whose total emp_id below 2 and selecting
those rows whose total emp_id>2
iii. Filter out all rows whose total emp_id below 2
iv. None of these
14. Rahul wants to disable cookies in his browser. Under which of the [1]
following browser settings options/panels can Rahul disable the cookies?
i. Home Panel
ii. Search Panel
iii. Privacy and Security Panel
iv. General Panel
The above guidelines for proper handling and disposal of e-waste have
been issued by whom?
16. Out of the following, which function cannot be used for customization of [1]
charts in Python?
i. xlabel()
ii. color()
iii. title()
iv. xticks()
17. Assertion (A): Pandas.head() is an attribute of the Python data structure. [1]
Reason (R): It is used to display the first/top 5 records of any
series/dataframe.
i. Both A and R are true and R is the correct explanation of A.
ii. Both A and R are true but R is not the correct explanation of A.
iii. A is true but R is false.
iv. A is false but R is true.
SECTION B
19. Mention any four differences between Internet & WWW. [2]
OR
Lia is doing a course in Web Technologies. As a part of her project, she
needs to extend and modify the functionality of her web browser. She has
opted to use add-ons or plug-ins to boost the performance of the browser.
However, she doesn’t know the difference between these tools. Help her
understand the difference between add-ons and plug-ins with an example.
b.
print(num.iloc[______________ , _____________])
21. Consider the following table BOOK. [2]
Give the output of the following SQL commands on the basis of the above
table BOOK.
SELECT LEFT (Publication, 1) FROM BOOK WHERE Price > 280;
22. Ruhi has just designed a website for her boutique ‘Grace’ in HTML [2]
language and now she needs a web address for the page. Briefly discuss
about URL and its components to uniquely identify web resources with a
suitable example.
23. Complete the given Python code to get the required output as “Italy” from [2]
the given dataframe ‘populations’:
import pandas as ps
pop = [ [ ’Italy’,61,0.83],[ ’Spain’,46,0.63],[ ’Greece’,11,0.15] ]
populations = _______________(pop, _______ = [ ’Country’, ’Population’ ,
’Percent’],
________ = [ 1,2,3])
print(populations.loc[ ________________)
24. Kaushal writes the following commands with respect to a table student [2]
having fields name, rollno, marks and records of 5 students.
Command1 : select count(marks) from student;
Command2 : select count(*) from student;
He gets the output as 4 for the Command1 and 5 for Command2. Explain
the output with justification.
25. Kavyanjali, a chemical analyst, needs to arrange data of few elements in [2]
the form of two series containing symbols and their atomic numbers
respectively. Thereafter, the data of these two series has to be arranged
and displayed in the form of Data Frame as shown below:
SECTION C
26. Consider the following records in ‘STUDENT’ table and answer the given [3]
questions:
27. Write python code to create a Dictionary ‘dict’ to store rollno, name and [3]
marks of three students. Convert dict into DataFrame df and display the
DataFrame df.
28. In the database ‘Hospital’, create a table named ‘patient’ based on the [3]
following specifications:
i. Should Riti upload the documents and give the OTP on the link?
ii. What is the act mentioned in the message known as?
iii. Under which act can she lodge a complaint with the relevant
authorities?
iv. Suggest her any two precautionary measures that she should take
in the future while being online to avoid any such situations.
OR
Kartik is fond of playing computer games. What are the different health
hazards that can occur due to excessive use of computer or smart phone
screens, and how can the health hazards be addressed?
30. Consider the given DataFrames ‘Stock’ [3]
32. Mr. Sharma, a game developer, has plotted a chart to estimate the
distribution of two different ratings of the various games available in the
Play Store, as shown below:
He is trying to write the following statements to plot the graph. Help Mr.
Sharma to fill up the blanks with Python code to get the desired output.
import pandas as pd
__________________ # statement 1
df = _________( # statement 2
{'Games':['Subway','Surfer','Temple Run','Candy Crush','Bottle
Shot','Runner Best'], 'Rating1':[15,5,6,18,20,15],
'Rating2':[25,10,28,45,32,30] } )
Write the Python statement to export the dataframe created to the CSV file
named “DATA”, which is in the “D” drive.
SECTION E
Table: Project
Registration_ID ProjectNo
IP-101-15 101
IP-104-15 103
CS-103-14 102
CS-101-14 105
CS-102-10 104
35. The table below shows the marks of two students for the four-unit tests for [5]
academic session 2022-2023. Plot a line graph for each student with test
names on the X axis, marks on the Y axis, and a legend in the upper right
of the chart. Also, save the figure obtained.
OR
You are provided with the following data on the number of students who
participated in a programming competition over the years:
Create a bar graph to visualize the growth of participants over the years.
Give appropriate labels and also save the figure obtained.