New ! Computer Science MCQ Practise Tests



Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart Three and Five Marks Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 40
    5 x 3 = 15
  1. Draw the output for the following data visualization plot.
    import matplotlib.pyplot as plt
    plt.bar([1,3,5,7,9],[5,2,7,8,2], label="Example one")
    plt.bar([2,4,6,8,10],[8,6,2,5,6], label="Example two", color='g')
    plt.legend()
    plt.xlabel('bar number')
    plt.ylabel('bar height')
    plt.title('Epic Graph in Another Line! Whoa')
    plt.show()

  2. Write any three uses of data visualization.

  3. Write the coding for the following:
    a. To check if PIP is Installed in your PC.
    b. To Check the version of PIP installed in your PC.
    c. To list the packages in matplotlib.

  4. Write the plot for the following pie chart output.

  5. Write a python code to display the following plot.

  6. 5 x 5 = 25
  7. Explain in detail the types of pyplots using Matplotlib.

  8. Explain the purpose of the following functions:
    a. plt.xlabel
    b. plt.ylabel
    c. plt.title
    d. plt.legend()
    e. plt.show()

  9. Write a python code to display the following, plot.

  10. Write the key differences between Histogram and bar graph.

  11. Write s python code to display to following plot.
    Program

*****************************************

Reviews & Comments about 12th Computer Science - Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart Three and Five Marks Questions

Write your Comment