Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 11 MCQs Data visualization

ECAP776 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Introduction to matplotlib Easy

    Which Python module is commonly imported as plt for data visualization?

  2. Question 2 of 60 Introduction to matplotlib Easy

    Which statement correctly imports matplotlib.pyplot using its conventional alias?

  3. Question 3 of 60 Introduction to matplotlib Easy

    Which function displays a completed Matplotlib figure on the screen?

  4. Question 4 of 60 Line plot Easy

    Which Matplotlib function creates a basic line plot?

  5. Question 5 of 60 Line plot Easy

    What is a line plot commonly used to show?

  6. Question 6 of 60 Line plot Easy

    Which function adds a label to the horizontal axis of a line plot?

  7. Question 7 of 60 Multiple subplots in one figure Easy

    What is a subplot in Matplotlib?

  8. Question 8 of 60 Multiple subplots in one figure Easy

    Which function can create a figure and multiple axes at the same time?

  9. Question 9 of 60 Multiple subplots in one figure Easy

    In plt.subplots(2, 2), how many subplots are created?

  10. Question 10 of 60 Bar chart Easy

    Which function creates a vertical bar chart in Matplotlib?

  11. Question 11 of 60 Bar chart Easy

    A bar chart is most suitable for comparing which type of data?

  12. Question 12 of 60 Bar chart Easy

    Which function creates horizontal bars in Matplotlib?

  13. Question 13 of 60 Histogram Easy

    Which Matplotlib function creates a histogram?

  14. Question 14 of 60 Histogram Easy

    What do the bars in a histogram usually represent?

  15. Question 15 of 60 Histogram Easy

    What does the bins argument control in a histogram?

  16. Question 16 of 60 Box and whisker plot Easy

    Which function creates a box and whisker plot?

  17. Question 17 of 60 Box and whisker plot Easy

    What does the line inside the box of a standard box plot represent?

  18. Question 18 of 60 Scatter plot Easy

    Which function creates a scatter plot in Matplotlib?

  19. Question 19 of 60 Scatter plot Easy

    What is a scatter plot commonly used to examine?

  20. Question 20 of 60 Pie charts Easy

    Which Matplotlib function creates a pie chart?

  21. Question 21 of 60 Introduction to matplotlib Medium

    Which code correctly imports Matplotlib's plotting interface using its conventional alias?

  22. Question 22 of 60 Introduction to matplotlib Medium

    A script creates a plot successfully but no window appears when it is run outside a notebook. Which statement should normally be added after the plotting commands?

  23. Question 23 of 60 Line plot Medium

    What does the following code plot?

    plt.plot([1, 2, 3], [2, 4, 1], "r--o")

  24. Question 24 of 60 Line plot Medium

    A program must plot temperature values against the corresponding days and include a legend. Which code is correct?

  25. Question 25 of 60 Line plot Medium

    Given x = [1, 2, 3, 4], which value of y can be used directly in plt.plot(x, y)?

  26. Question 26 of 60 Multiple subplots in one figure Medium

    What is selected by plt.subplot(2, 3, 4)?

  27. Question 27 of 60 Multiple subplots in one figure Medium

    After fig, axes = plt.subplots(2, 2), which expression accesses the subplot in the second row and first column?

  28. Question 28 of 60 Multiple subplots in one figure Medium

    Labels in a figure containing several subplots overlap one another. Which Matplotlib call is designed to improve their spacing automatically?

  29. Question 29 of 60 Bar chart Medium

    A store wants to compare sales for the categories Books, Games, and Music. Which command produces an appropriate vertical bar chart?

  30. Question 30 of 60 Bar chart Medium

    For grouped bars, the first series uses positions x and width w. Which positions should the second series use to place its bars immediately beside the first series?

  31. Question 31 of 60 Bar chart Medium

    Which function should replace plt.bar() when category names are long and horizontal bars would improve readability?

  32. Question 32 of 60 Histogram Medium

    What is the main effect of changing bins=5 to bins=20 in plt.hist(data, bins=...) while keeping the data unchanged?

  33. Question 33 of 60 Histogram Medium

    Consider data = [1, 2, 2, 3, 8, 9] and bins with edges [0, 5, 10]. How many observations fall into the first bin?

  34. Question 34 of 60 Histogram Medium

    Two datasets contain different numbers of observations. Which argument helps compare their histogram shapes using normalized area rather than raw counts?

  35. Question 35 of 60 Box and whisker plot Medium

    In a standard box plot, what does the line drawn inside the box represent?

  36. Question 36 of 60 Box and whisker plot Medium

    For a box plot, and . Using the rule, which value would be plotted as an upper outlier?

  37. Question 37 of 60 Scatter plot Medium

    A scatter plot shows heavy overlap among points. Which modification most directly makes dense regions easier to observe without changing point positions?

  38. Question 38 of 60 Scatter plot Medium

    In plt.scatter(x, y, s=sizes, c=values, cmap="viridis"), what does cmap="viridis" control?

  39. Question 39 of 60 Pie charts Medium

    Given sizes = [50, 30, 20], which explode argument separates only the second slice from the center?

  40. Question 40 of 60 Pie charts Medium

    Which argument displays each pie slice's percentage with one digit after the decimal point?

  41. Question 41 of 60 Introduction to matplotlib Hard

    Consider: fig, (ax1, ax2) = plt.subplots(1, 2); plt.sca(ax1); ax2.plot([0, 1], [0, 1]); plt.title("T"). Which axes receives the title?

  42. Question 42 of 60 Introduction to matplotlib Hard

    After fig = plt.figure() and plt.close(fig), assuming another reference to fig is retained, which statement is correct?

  43. Question 43 of 60 Line plot Hard

    What visible result is produced by plt.plot([0, 1, 2, 3], [4, np.nan, 6, 7]) under normal linear-axis settings?

  44. Question 44 of 60 Line plot Hard

    Given x = [0, 2, 1, 3] and y = [0, 4, 1, 9], what does plt.plot(x, y) do?

  45. Question 45 of 60 Line plot Hard

    What is the final x-axis range after ax.plot([0, 1], [0, 1]); ax.set_xlim(0, 10); ax.plot([20, 30], [2, 3])?

  46. Question 46 of 60 Multiple subplots in one figure Hard

    What does fig, axs = plt.subplots(1, 1, squeeze=False) guarantee about axs?

  47. Question 47 of 60 Multiple subplots in one figure Hard

    Consider fig, (a, b) = plt.subplots(2, 1, sharex=True); a.set_xlim(2, 8); b.set_xlim(0, 5). What are the final x limits?

  48. Question 48 of 60 Bar chart Hard

    What happens when plt.bar(["A", "A", "B"], [2, 5, 3]) is executed?

  49. Question 49 of 60 Bar chart Hard

    For a = [3, -2, 4] and b = [-1, 5, -3], the calls ax.bar(x, a) and ax.bar(x, b, bottom=a) are made. What are the y-coordinates of the second bars' top boundaries?

  50. Question 50 of 60 Bar chart Hard

    With ax.bar([2], [5], width=-0.8, align="edge"), which horizontal interval does the bar occupy?

  51. Question 51 of 60 Histogram Hard

    What bin counts are returned by plt.hist([0, 1, 2], bins=[0, 1, 2])?

  52. Question 52 of 60 Histogram Hard

    For data [0.2, 0.8, 2, 3], bins [0, 1, 4], and density=True, what are the two histogram heights?

  53. Question 53 of 60 Histogram Hard

    Data [0.2, 0.8, 1.5] have weights [1, 3, 2]. With bins [0, 1, 3] and density=True, what heights are produced?

  54. Question 54 of 60 Box and whisker plot Hard

    Using the default whis=1.5, where does the upper whisker end for the data [1, 2, 3, 4, 100]?

  55. Question 55 of 60 Box and whisker plot Hard

    For [1, 2, 3, 4, 100], what changes when showfliers=False is passed while the default whis is retained?

  56. Question 56 of 60 Scatter plot Hard

    In plt.scatter, marker size s is measured in points squared. Ignoring edge effects, how must s change to double a marker's diameter?

  57. Question 57 of 60 Scatter plot Hard

    What is the likely interpretation of ax.scatter([0, 1, 2], [1, 2, 3], c=(0.2, 0.4, 0.6), cmap="viridis")?

  58. Question 58 of 60 Pie charts Hard

    What total angular span is drawn by ax.pie([0.2, 0.3], normalize=False)?

  59. Question 59 of 60 Pie charts Hard

    For ax.pie([1, 3], startangle=90, counterclock=False), at what angle is the midpoint ray of the first wedge?

  60. Question 60 of 60 Pie charts Hard

    What does explode=[0.2, 0] do in ax.pie([1, 1], explode=[0.2, 0])?

That's unit 11

Answer a few questions and your score shows up here.