Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) plot(*args[, scalex, scaley, data])(I) A scatter plot of x versus y.
(B) scatter(x, y[, s, c, marker, cmap, norm, ...])(II) Plot a histogram.
(C) hist(x[, bins, range, density, weights, ...])(III) Plot x versus y as lines and/or markers.
(D) bar(x, height[, width, bottom, align, data])(IV) Make a bar plot.

Solution

✅ Correct Option: 2
List IList II
(A) plot()(III) Plot x versus y as lines and/or markers
(B) scatter()(I) A scatter plot of x versus y
(C) hist()(II) Plot a histogram
(D) bar()(IV) Make a bar plot

plot() draws lines by default, and markers only if you set them, while scatter() draws only points. This is the pair most often swapped.


Option 1: swaps A and B, treating plot() as the scatter plot.

Keyboard Shortcuts

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