Match List-I with List-II
List-I List-II (A) plt.figure() (I) Creates a pie chart (B) plt.pie() (II) Sets figure size (C) plt.bar() (III) Creates a bar chart (D) alpha=0.5 (IV) Sets transparency
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) plt.figure() | (I) Creates a pie chart |
| (B) plt.pie() | (II) Sets figure size |
| (C) plt.bar() | (III) Creates a bar chart |
| (D) alpha=0.5 | (IV) Sets transparency |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) plt.figure() | (II) Sets figure size |
| (B) plt.pie() | (I) Creates a pie chart |
| (C) plt.bar() | (III) Creates a bar chart |
| (D) alpha=0.5 | (IV) Sets transparency |
plt.figure() creates a new figure, and its figsize argument sets the size, e.g. plt.figure(figsize=(8, 5)).
alpha takes a value from 0 (fully transparent) to 1 (fully opaque), so 0.5 gives half transparency.
Related questions:
2025: 30 May Shift 2
2025: 13 May Shift 2
2025: 15 May Shift 2
2026: 31 May Shift 1
2025: 13 May Shift 2