Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) color='red'(I) changes line style
(B) linestyle='_ _'(II) changes color of line
(C) width=0.5(III) adds a title
(D) plt.legend()(IV) changes width of the bar

Solution

✅ Correct Option: 3
List IList II
(A) color='red'(II) changes color of line
(B) linestyle='_ _'(I) changes line style
(C) width=0.5(IV) changes width of the bar
(D) plt.legend()(III) adds a title

Strictly, plt.legend() shows a legend and plt.title() adds a title, but (III) is the only List II item left for (D) once (A), (B) and (C) are matched.

width is a parameter of plt.bar(), so it controls bar width, not line width (that is linewidth).

Keyboard Shortcuts

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