Professional Documents
Culture Documents
Ip Practice Test (14in)
Ip Practice Test (14in)
CLASS XII
SUBJECT- INFORMATICS PRACTICES(065)
TIME:45 Min MM:25
1. The command to install the pandas is: [1]
a) install pip pandas
b) install pandas
c) pip pandas
d) pip install pandas
a) Error
b) Cuba Abdala
Germany Pfizer
c) Germany Pfizer
Rusia SputnikV
d) Germany Pfizer
Rusia SputnikV
a) pen False
pencil False
eraser True
sharpner True
dtype: bool
b) eraser 33
sharpner 42
dtype: int64
c) Error
d) 10 True
20 True
33 True
42 True
a) skating 3
kho kho 4
b) tt 2
skating 3
kho kho 4
c) skating 3
kho kho 4
bb 5
d) skating 3
kho kho 4
bb 5
chess 6
football 7
cricket 8
7. Choose the correct match from the given two columns [1]
Column A Column B
A 1.
import pandas as pd com [90, 70, 60, 50]
d = {"com": [90,70,60,50], "english":[89,99,95,45], "eco":[34,45,67,97]} english [89, 99, 95, 45]
s = pd.DataFrame(d) eco [34, 45, 67, 97]
print(s)
B 2.
import pandas as pd com english eco
d ={'c1':{"com":90,"english":89,"eco":34},'c2':{"com":70,"english":99,"eco":45}, 0 90 89 34
'c3':{"com":60,"english":95,"eco":67},'c4':{"com":50,"english":45,"eco":97}} 1 70 99 45
s = pd.DataFrame(d) 2 60 95 67
print(s) 3 50 45 97
C 3.
import pandas as pd c1 c2 c3 c4
import pandas as pd com 90 70 60 50
d = {"com": [90,70,60,50], "english":[89,99,95,45], "eco":[34,45,67,97]} english 89 99 95 45
s = pd.DataFrame(d,index=['c1','c2','c3','c4']) eco 34 45 67 97
print(s))
D 4.
import pandas as pd com english eco
d= {"com": [90,70,60,50], "english":[89,99,95,45], "eco":[34,45,67,97]} c1 90 89 34
s=pd.Series(d) c2 70 99 45
print(s) c3 60 95 67
c4 50 45 97
b) Name Unit2
0 Aman 76
2 raj 80
c) Name Unit2
0 Aman 76
1 raman 78
2 raj 80
d) Name Unit1
0 Aman 18
1 raman 19
9. To change the 3th column's value at 2rd row as 95 in data frame, S you
can write [1]
a) S.at[1,2]=95
b) S[1,2]=95
c) S.iat[1,2]=95
d) S.iat[2,3]=95
12. What is true about India’s IT Act and IT (Amendment) Act? [1]
Statement 1: IT Act 2000 provided legal recognition to electronic
commerce
Statement 2: IT (Amendment) Act 2008 provided additional focus on
information security
a) Both Statements 1 and 2 are True
b) Statement 1 is True but Statement 2 is False
c) Both Statements 1 and 2 are False
d) Statement 1 is False but Statement 2 is True
13. Mr. Mohan is a business man His laptop was controlled by somebody in
an unauthorized way Identify the type of crime happened to him? [1]
a) Phishing
b) Cyber Trolls
c) Hacking
d) Cyber Bullying
14. Which of the following are not contributors of e-waste in the world? [1]
a) Refrigerators/freezers, washing machines, dishwashers
b) Personal computers, mobile phones
c) Gas cylinder
d) Televisions
15. ____ gives you right to exclude others from making, selling, using
or importing a particular product or service. [1]
a) Trademark
b) Patent
c) Copyright
d) Plagiarism
19. The command used to save plotted graph using pyplot function is__ [1]
a) matplotlib.pyplot.save()
b) matplotlib.pyplot.savefig()
c) matplotlib.pyplot.savepicture()
d) matplotlib.pyplot.saveimage()
20. Which of the following statements will create a given chart with [1]
city and corresponding total number of sales of BMW cars
a) import matplotlib.pyplot as plt
sales= {"lko": 200,"delhi":250, "bombay":380, "punjab":164,"hariyana":60}
city=sales.keys()
quantity=sales.values()
plt.plot(city,quantity)
plt.show()
CASE STUDY
a) df.loc[['Month','Passengers']][df['Month']=='Jan']
b) df[['Month','Passengers']][df['Month']=='Jan']
c) df.iloc[['Month','Passengers']][df['Month']=='Jan']
d) df(['Month','Passengers']][df['Month']=='Jan')
22. Choose the correct statement/ method for the required output: (5,3) [1]
a) df.index
b) df.shape()
c) df.shape
d) df.size
23. He wants to change the index of the Data Frame Identify the correct [1]
statement to change the index.
a) df.index[]=["Air India","Indigo","Spicejet","Jet","Emirates"]
b) df.index["Air India","Indigo","Spicejet","Jet","Emirates"]
c) df.index=["Air India","Indigo","Spicejet","Jet","Emirates"]
d) df.index()=["Air India","Indigo","Spicejet","Jet","Emirates"]
24. He want to see 2 rows from the top in the dataframe, which of the [1]
following statement is correct:
a) df.head()=2
b) df.head(n=2)
c) df.head(range(2))
d) All of the above
25. Which of the following code will print Year and Passenger? [1]
a) df.loc[:,df.columns!='Month']
b) df.loc[:,'Year':'Passengers']
c) df.loc['Year':'Passengers']
d) All of the above