0% found this document useful (0 votes)
10 views

Lesson 06 6.02 Knowledge Check

Uploaded by

bharat.suthar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Lesson 06 6.02 Knowledge Check

Uploaded by

bharat.suthar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Knowledge Check

Knowledge
Check
Which of the following methods is used to set the title?
1

A. plot()

B. plt.title()

C. plot.title()

D. title()
Knowledge
Check
Which of the following methods is used to set the title?
1

A. plot()

B. plt.title()

C. plot.title()

D. title()

The correct answer is B

plt.title() is used to set the title.


Knowledge
Check
Which of the following methods is used to adjust the distances between the
2 subplots?

A. plot.subplots_adjust()

B. plt.subplots_adjust()

C. subplots_adjust()

D. plt.subplots.adjust()
Knowledge
Check
Which of the following methods is used to adjust the distances between the
2 subplots?

A. plot.subplots_adjust()

B. plt.subplots_adjust()

C. subplots_adjust()

D. plt.subplots.adjust()

The correct answer is B

plt.subplots_adjust() used to adjust the distances between the subplots.


Knowledge
Check
Which of the following libraries needs to be imported to display the plot on Jupyter
3 notebook?

A. %matplotlib

B. %matplotlib inline

C. import matplotlib

D. import style
Knowledge
Check
Which of the following libraries needs to be imported to display the plot on Jupyter
3 notebook?

A. %matplotlib

B. %matplotlib inline

C. import matplotlib

D. import style

The correct answer is B

To display the plot on jupyter notebook: import matplotlib


%matplotlib inline
Knowledge
Check
Which of the following keywords is used to decide the transparency of the plot line?
4

A. Legend

B. Alpha

C. Animated

D. Annotation
Knowledge
Check
Which of the following keywords is used to decide the transparency of the plot line?
4

A. Legend

B. Alpha

C. Animated

D. Annotation

The correct answer is B

Alpha decides the line transparency in line properties while plotting line plot/ chart.
Knowledge
Check
Which of the following plots is used to represent data in a two-dimensional manner?
5

A. Histogram

B. Heat Map

C. Pie Chart

D. Scatter Plot
Knowledge
Check
Which of the following plots is used to represent data in a two-dimensional manner?
5

A. Histogram

B. Heat Map

C. Pie Chart

D. Scatter Plot

The correct answer is B

Heat Maps are used to represent data in a two-dimensional manner.


Knowledge
Check
Which of the following statements limits both x and y axes to the interval [0, 6]?
6

A. plt.xlim(0, 6)

B. plt.ylim(0, 6)

C. plt.xylim(0, 6)

D. plt.axis([0, 6, 0, 6])
Knowledge
Check
Which of the following statements limits both x and y axes to the interval [0, 6]?
6

A. plt.xlim(0, 6)

B. plt.ylim(0, 6)

C. plt.xylim(0, 6)

D. plt.axis([0, 6, 0, 6])

The correct answer is D

plt.axis([0, 6, 0, 6]) statement limits both x and y axes to the interval [0, 6].

You might also like