Professional Documents
Culture Documents
12 Ip Sample Model Paper Oct2021
12 Ip Sample Model Paper Oct2021
Term-I
Subject: Informatics Practices (Code-065)
Class – XII
Time Allowed: 90 minutes Maximum Marks: 35
General Instructions:
• The paper is divided into 3 Sections- A, B and C.
• Section A, consists of Questions 1 to 20
• Section B, consists of Question numbers 21 to 30
• Section C, consists of Question numbers 31 to 35
• Student needs to attempt all questions.
• All questions carry equal marks.
Section-A
1)Which method is used to access horizontal subsets of a dataframe?
a.iterrows()
b.sort_values()
c.head()
d.iteritems()
3)A histogram displays numerical data by grouping data into___of equal width.
a.bars
b.bins
c.ticks
d.rectangles
4)_____refers to tabular data saved as plain text where data values are separated by commas.
a.csv
b.Tables
c.Dataframe
d.Series
8)Individuals with extraordinary computing skills, who use their hacking skills for the common
good.
a. White Hat Hackers
b. Black Hat Hackers
c. Red Hat Hackers
d. Blue Hat Hackers
9)An attempt to acquire sensitive information such as usernames, passwords and credit card details
by masquerading as a trustworthy entity in an electronic communication.
a.Phishing
b.Plagiarism
c.Cyber crime
d.Hacking
14)Mark Analysis is to be plotted.The command to give title to x-axis as “No.of students” in the
graph .
a.plt.showxaxis(“No.of students”)
b.plt.xlabel(“No.of students”)
c.plt.title(“No.of students”)
d.plt.xaxislabel(“No.of students”)
15)In Pandas the function used to fill the missing values in a dataframe is____
2
a.fillna()
b.missingvalues()
c.missfill()
d.fill()
16)Copying someone else’s work and passing it off as one’s own is ______
a.Phishing
b.Plagiarism
c.Cyber crime
d.Hacking
17)A code of good behaviour while working on the several aspects of internet such as social
media,email online chat is called as ____.
a.Good conduct
b.Etiquette
c.Netiquette
d.Ethical Hacking
18)The legal right to run or the privilege given to you by a company to access their application.
a.Trademark
b.Copyrights
c.Software Licensing
d.Patent
19)The attack upon an individual or group through the use of electronic means such as instant
messaging,social media ,email and other forms of online communication.
a.Cyber Bullying
b.Hacking
c.Phishing
d.Cyber Crime
Section-B
21)Choose the correct Python statement which can be used to display those who got above 50 Marks
from the series given below.
import pandas as pd
Marks=pd.Series({‘Ram’:45,’Aarya’:48,’Shobita’:35,’Krish’:67})
a.print(Marks[Marks>50])
b.print(Marks(Marks>50))
c.print(Marks[‘Marks’>50])
d.print(Marks[‘Marks’<50])
3
import pandas as pd
a=pd.Series([78,45,89,98])
b=pd.Series([67,87,90])
stud={"English":a,"Hindi":b}
df=pd.DataFrame(stud)
print(df)
Option1 Option2
0 1 2 3 4 English Hindi
English 78.0 45.0 89.0 98.0 0 78 67
Hindi 67.0 87.0 90.0 NaN 1 45 87
2 89 90
3 98 NaN
Option3 Option4
English Hindi
0 78 67.0 0 1 2 3
1 45 87.0 English 78.0 45.0 89.0 98.0
2 89 90.0 Hindi 67.0 87.0 90.0 NaN
3 98 NaN
Option1 Option2
a 10 e 20
e 20 a 10
dtype: int64 dtype: int64
Option3 Option4
a 10 i 30
e 20 e 20
i 30 a 10
dtype: int64 dtype: int64
24)Observe the following figure. Identify the coding for obtaining this as output.
4
b. import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,1])
plt.show()
c. import matplotlib.pyplot as plt
plt.plot([2,3,1],[5,1,6])
plt.show()
d. import matplotlib.pyplot as plt
plt.plot([1,2,3],[5,7,4])
plt.show()
25)A DataFrame ‘toyshop’ contains the following data:
import pandas as pd
Toys = {‘Name’: [‘Talking Tom’,’Blocks’,’Number game’,’Ludo’],’Price’: [400,250,300,150],
’Discount’: [30,20,15,40]}
toyshop=pd.DataFrame(Toys)
Write the command to delete the column “Discount” with all values.
a.toyshop.drop(“Discount”,axis=1)
b.toyshop.drop(“Discount”,axis=0)
c.toyshop.del(“Discount”)
d.pop.toyshop(“Discount”)
a. b.
c. d.
28) The figure shows a line chart.Complete the code to draw black color,dotted line with circle
marker.
SC2 42
SC3 12
SC4 8
Name: winner, dtype: int64
a. df.loc[‘SC2’:’SC4’,’winner’]
b. df.loc[‘SC2’:’SC5’,’winner’]
c. df.iloc[‘SC2’:’SC4’,’winner’]
d. df.iloc[‘SC2’:’SC5’,’winner’]
32) Based on the DataFrame choose the correct the output for df.iloc[2:4]
a. b.
School Totalstud winner runnerup School Totalstud winner runnerup
SC4 BIS 20 8 4 SC1 NMS 40 32 8
SC5 NIS 50 22 11 SC2 ISB 60 42 12
c. d.
School Totalstud winner runnerup School Totalstud winner runnerup
SC3 ASB 30 12 10 SC4 BIS 20 8 4
SC4 BIS 20 8 4 SC5 NIS 50 22 11
7
a. print(df[Totalstud])
b.print(df.Totalstud)
c. print(df(Totalstud))
d. print(df(df.Totalstud))
a.(4,5)
b.(6,4)
c.(5,4)
d.(5,5)
a. print(df.sort_values['Totalstud'])
b. print(df.sortvalues('Totalstud'))
c. print(df.sort_values(Totalstud))
d. print(df.sort_values('Totalstud'))