Match List-I with List-II
List-I List-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
Match List-I with List-II
| List-I | List-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 I | List 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.
Related questions:
2025: 21 May Shift 1
2026: 26 May Shift 1
2026: 29 May Shift 1