Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) plt.scatter()(I) adds title to the plot
(B) plt.title()(II) plots scatter plot
(C) plt.plot()(III) module used for plotting graphs
(D) matplotlib.pyplot(IV) creates line chart

Solution

✅ Correct Option: 1
List IList II
(A) plt.scatter()(II) plots scatter plot
(B) plt.title()(I) adds title to the plot
(C) plt.plot()(IV) creates line chart
(D) matplotlib.pyplot(III) module used for plotting graphs

plt.plot() draws a line chart by default. A scatter plot needs plt.scatter(), which plots unconnected points.

matplotlib.pyplot is the module itself, and plt is the usual alias from import matplotlib.pyplot as plt. The other three are functions inside it.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question