Match List-I with List-II
List-I List-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
Match List-I with List-II
| List-I | List-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 I | List 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).
Related questions:
2026: 23 May Shift 1
2026: 24 May Shift 1
2025: 15 May Shift 2
2026: 29 May Shift 2
2025: 20 May Shift 1