TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Data visualization using pyplot: line chart, pie chart and bar chart: Book Back MCQs with Answers & Explanations

Share this chapter: Telegram

Every Book Back multiple-choice question from Data visualization using pyplot: line chart, pie chart and bar chart (12th Standard Computer Science, Samacheer Kalvi) — each with the correct option highlighted and a clear, worked explanation. Free to read in English and Tamil.

Answer key at a glance

Q1
Which is a Python package used for 2D charts?
  • A. matplotlib.pyplotCorrect
  • B. matplotlib.pip
  • C. matplotlib.numpy
  • D. matplotlib.plt
Explanation. The matplotlib.pyplot module is a collection of functions that make matplotlib work like MATLAB, enabling the creation of 2D charts in Python.
Q2
Identify the package manager for installing Python packages, or modules.
  • A. Matplotlib
  • B. PIPCorrect
  • C. plt.show()
  • D. python package
Explanation. PIP is the standard package manager for Python used to install and manage additional packages and modules.
Q3
Which of the following feature is used to represent data and information graphically?
  • A. Data List
  • B. Data Tuple
  • C. Classes and Objects
  • D. Data VisualizationCorrect
Explanation. Data visualization is the graphical representation of data and information using visual elements like charts, graphs, and maps.
Q4
.......... is a collection of resources assembled to create a single unified visual display.
  • A. Interface
  • B. DashboardCorrect
  • C. Objects
  • D. Graphics
Explanation. A dashboard is a collection of resources compiled to create a single unified visual display of database metrics and charts.
Q5
Which of the following module should be imported to visualize data and information in Python?
  • A. csv
  • B. getopt
  • C. mysql
  • D. matplotlibCorrect
Explanation. Matplotlib is the core data visualization library in Python that must be imported to create graphical plots.
Q6
............ is a type of chart which displays information as a series of data points connected by straight line segments.
  • A. csvCorrect
  • B. Pie chart
  • C. Bar chart
  • D. All the above
Explanation. The textbook options carry a misprint where the first option displays 'csv' instead of the correct answer, which is a Line chart.
Q7
Read the code: import matplotlib.pyplot as plt plt.plot(3,2) plt.show() Identify the output for the above coding.
  • A.
    The four options show different Matplotlib output plots of the code plt.plot(3,2) with various axis ranges and plotted points., choice A
    Correct
  • B.
    The four options show different Matplotlib output plots of the code plt.plot(3,2) with various axis ranges and plotted points., choice B
  • C.
    The four options show different Matplotlib output plots of the code plt.plot(3,2) with various axis ranges and plotted points., choice C
  • D.
    The four options show different Matplotlib output plots of the code plt.plot(3,2) with various axis ranges and plotted points., choice D
Explanation. The code plots a single point at coordinates (3, 2). Matplotlib automatically scales the axes and renders the corresponding plot panel.
Q8
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 chartCorrect
  • B. Bar chart
  • C. Pie chart
  • D. Scatter plot
Explanation. A line chart is used to track changes or visualize trends in data over continuous time intervals.
Q9
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 correctCorrect
  • D. Both the statements are wrong
Explanation. Both statements are correct. In Matplotlib, plt.pie() builds a pie chart, and autopct formats and displays the percentage slices.
Take the Book Back practice test → Open the app

More for this chapter

Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About these Data visualization using pyplot: line chart, pie chart and bar chart questions

These are the Book Back multiple-choice questions for Data visualization using pyplot: line chart, pie chart and bar chart from the Tamil Nadu State Board (Samacheer Kalvi) 12th Standard Computer Science syllabus. Each question shows the correct option and an original, step-by-step explanation so you understand the method, not just the answer. Use the answer key above to jump to any question, then take the practice test to check yourself under exam-like conditions.

Frequently asked questions

How many MCQs are there in Data visualization using pyplot: line chart, pie chart and bar chart?

This chapter has 9 book-back multiple-choice questions, each with the correct answer and a step-by-step explanation.

Are these 12th Standard Computer Science MCQs free to practise online?

Yes. Every question, answer and explanation here is free, and you can also take them as a timed practice test.

Where can I find the Data visualization using pyplot: line chart, pie chart and bar chart book-back answers?

The correct option for each question is highlighted on this page with a worked explanation, plus a quick answer-key summary at the top.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 15 Data manipulation through SQL