0% found this document useful (0 votes)
11 views4 pages

Class 12 Thipmcq

Uploaded by

ram Dindu
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)
11 views4 pages

Class 12 Thipmcq

Uploaded by

ram Dindu
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/ 4

IMPORTANT MULTIPLE CHOICE QUESTIONS

Subject: Informatics Practices (Code-065)


CLASS – XII TERM -I SESSION 2021-2022
UNIT 1 - DATA HANDLING USING PANDAS AND
DATA VISUALISATION
(PART- 1)

1. The command used to give a heading to a graph is ___


a. plt.show()
b. plt.plot()
c. plt.xlabel()
d. plt.title() (CORRECT)

2. Given a Pandas series called Sequences, the command which will display
the first 4 rows is .

a. print(Sequences.head(4)) (CORRECT)
b. print(Sequences.Head(4))
c. print(Sequences.heads(4)
d. print(Sequences.Heads(4))

3. Given the following Series S1 and S2:


S1 S2
A 10 A 80
B 40 B 20
C 34 C 74
D 60 D 90
Write the command to find the sum of series S1 and S2

a. Print(S1+ S2) (CORRECT)


b. Print(S1-S2)
c. Print(S1*S2)
d. Print(S1/S2)

4. Using Python Matplotlib ________ can be used to count how many


values fall into each interval

a. line plot
b. bar graph
c. histogram (CORRECT)
d. none of the above
5. In a DataFrame, Axis= 1 represents the _______elements.

a. Row element
b. Column element (CORRECT)
c. None of the above
d. All the above

6. In a DataFrame, Axis= 0 represents the _______elements.

a. Row element (CORRECT)


b. Column element
c. None of the above
d. All the above

7. Consider the following DataFrame df and answer any four questions


from (i)- (v)

rollno name UT1 UT2 UT3 UT4


1 Prerna Singh 24 24 20 22
2 Manish Arora 18 17 19 22
3 Tanish Goel 20 22 18 24
4 Falguni Jain 22 20 24 20
5 Kanika Gupta 15 20 18 22
6 Raman Kaur 20 15 22 24

Write down the command that will give the following output.

a. print(df.max)
b. print(df.max()) (correct)
c. print(df.max(axis=1))
d. print(df.max, axis=1)
8. The teacher needs to know the marks scored by the student with roll
number 4. Help her to identify the correct set of statement/s from the
given options :

a. df1=df[df[‘rollno’]==4] (correct)
print(df1)
b. df1=df[rollno==4]
print(df1)
c. df1=df[df.rollno=4]
print(df1)
. d. df1=df[df.rollno==4]
print(df1) (correct)

9. Which of the following statement/s will give the exact number of values
in each column of the dataframe?
i. print(df.count())
ii. print(df.count(0))
iii. print(df.count)
iv. print(df.count(axis=’index’))
Choose the correct option:

a. both (i) and (ii) (correct)


b. only (ii)
c. (i), (ii) and (iii)
d. (i), (ii) and (iv)

10. The command to install the matplotlib is:

a. install pip matplotlib


b. install matplotlib
c. pip matplotlib
d. pip install matplotlib (correct)

You might also like