New ! Computer Science MCQ Practise Tests



Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:10:00 Hrs
Total Marks : 10

    Multiple Choice Question 

    10 x 1 = 10
  1. Which is a python package used for 2D graphics?

    (a)

    matplotlib.pyplot

    (b)

    matplotlib.pip

    (c)

    matplotlib.numpy

    (d)

    matplotlib.plt

  2. Identify the package manager for Python packages, or modules.

    (a)

    Matplotlib

    (b)

    PIP

    (c)

    plt.show()

    (d)

    python package

  3. Read the following code: Identify the purpose of this code and choose the right option from the following.
    C:\Users\YourName\AppData\Local\Programs\Python\Python36-32\Scripts>pip –version

    (a)

    Check if PIP is Installed

    (b)

    Install PIP

    (c)

    Download a Package

    (d)

    Check PIP version

  4. Read the following code: Identify the purpose of this code and choose the right option from the following.
    C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list

    (a)

    List installed packages

    (b)

    list command

    (c)

    Install PIP

    (d)

    packages installed

  5. To install matplotlib, the following function will be typed in your command prompt. What does “-U”represents?
    Python –m pip install –U pip

    (a)

    downloading pip to the latest version

    (b)

    upgrading pip to the latest version

    (c)

    removing pip

    (d)

    upgrading matplotlib to the latest version

  6. Observe the output figure. Identify the coding for obtaining this output.

    (a)

    import matplotlib.pyplot as plt
    plt.plot([1,2,3],[4,5,1])
    plt.show()

    (b)

    import matplotlib.pyplot as plt
    plt.plot([1,2],[4,5])
    plt.show()

    (c)

    import matplotlib.pyplot as plt
    plt.plot([2,3],[5,1])
    plt.show()

    (d)

    import matplotlib.pyplot as plt
    plt.plot([1,3],[4,1])
    plt.show()

  7. Read the code:
    a. import matplotlib.pyplot as plt
    b. plt.plot(3,2)
    c. plt.show()
    Identify the output for the above coding

    (a)

    (b)

    (c)

    (d)

  8. Which key is used to run the module?

    (a)

    F6

    (b)

    F4

    (c)

    F3

    (d)

    F5

  9. Identify the right type of chart using the following hints.
    Hint 1: This chart is often used to visualize a trend in data over intervals of time.
    Hint 2: The line in this type of chart is often drawn chronologically.

    (a)

    Line chart

    (b)

    Bar chart

    (c)

    Pie chart

    (d)

    Scatter plot

  10. Read the statements given below. Identify the right option from the following for pie chart.
    Statement A: To make a pie chart with Matplotlib, we can use the plt.pie() function.
    Statement B: The autopct parameter allows us to display the percentage value using the Python string formatting.

    (a)

    Statement A is correct

    (b)

    Statement B is correct

    (c)

    Both the statements are correct

    (d)

    Both the statements are wrong

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

Reviews & Comments about 12th Standard Computer Science English Medium - Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment