Learn with Yasir

Share Your Feedback

A. Multiple-Choice Questions (5)


A. Multiple-Choice Questions (5)

Select the correct answer for each question.

Question 1. What is the main purpose of a line chart?

A. To display text information.

B. To show changes and trends over time.

C. To display images.

D. To store numerical values.

Question 2. Which Matplotlib function is used to create a line chart?

A. plt.bar()

B. plt.scatter()

C. plt.plot()

D. plt.pie()

Question 3. Which parameter is used to display circular markers?

A. color="o"

B. marker="o"

C. linestyle="o"

D. markersize="o"

Question 4. Which function is used to display gridlines?

A. plt.grid()

B. plt.title()

C. plt.legend()

D. plt.xlabel()

Question 5. Which chart is generally more suitable for comparing sales of different products?

A. Line Chart

B. Area Chart

C. Bar Chart

D. Scatter Plot