Quiz: How Well Do You Know Python?

11 Questions | Total Attempts: 107

SettingsSettingsSettings
Please wait...
Quiz: How Well Do You Know Python?

Are you an expert in Python, or simply curious about the programming language? Whatever the case, take our online quiz and answer quiz questions to see how strong is your knowledge of Python.


Questions and Answers
  • 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 – versio
    • A. 

      Check if PIP is Installed

    • B. 

      Install PIP

    • C. 

      Download a Package

    • D. 

      Check PIP version

  • 4. 
     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

  • 5. 
    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()

  • 6. 
    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. 

      Option 1

    • B. 

      Option 2

    • C. 

      Option 3

    • D. 

      Option 4

  • 7. 
     Which key is used to run the module?
    • A. 

      F6

    • B. 

      F4

    • C. 

      F3

    • D. 

      F5

  • 8. 
    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

  • 9. 
     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

  • 10. 
     The plot method on Series and DataFrame is just a simple wrapper around ____________
    • A. 

      Gplt.plot()

    • B. 

      Plt.plot()

    • C. 

      Plt.plotgraph()

    • D. 

      None of these

  • 11. 
    Type question here. Example: Practice makes you [Blank]
Back to Top Back to top