Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) plt.ylabel()(I) configures the gridlines
(B) linestyle='dotted'(II) changes width of the bars
(C) plt.grid()(III) sets the label for y-axis
(D) width=0.5(IV) changes line style

Solution

✅ Correct Option: 2
List IList II
(A) plt.ylabel()(III) sets the label for y-axis
(B) linestyle='dotted'(IV) changes line style
(C) plt.grid()(I) configures the gridlines
(D) width=0.5(II) changes width of the bars

The width argument belongs to plt.bar() and controls bar thickness, while linewidth controls the thickness of a line. Do not mix the two up.

Keyboard Shortcuts

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