ACP Data Visualization & Analysis — Questions and Answers
Question 1: Which Python library is commonly used for data visualization?
- Scikit-learn
- Matplotlib (Correct answer)
- TensorFlow
- Flask
Correct answer: Matplotlib
Matplotlib is a widely used Python library that provides tools for creating static, animated, and interactive visualizations.
Question 2: What is the primary purpose of Seaborn in data visualization?
- Creating simple text reports
- Statistical data visualization (Correct answer)
- Managing databases
- Generating machine learning models
Correct answer: Statistical data visualization
Seaborn is built on Matplotlib and specializes in statistical data visualization, offering beautiful and informative visualizations with minimal code.
Question 3: Which chart type is best for showing data trends over time?
- Pie chart
- Line chart (Correct answer)
- Scatter plot
- Histogram
Correct answer: Line chart
A line chart is ideal for visualizing trends over time, showing how values change continuously.
Question 4: Which tool can be used to create interactive dashboards in Python?
- Matplotlib
- Plotly (Correct answer)
- NumPy
- Pandas
Correct answer: Plotly
Plotly is a powerful library that allows for interactive visualizations and dashboards, often used in web-based applications.
Question 5: How does a histogram differ from a bar chart?
- They are identical
- Histograms show distributions; bar charts show categories (Correct answer)
- Bar charts are only for numerical data
- Histograms are only used in AI
Correct answer: Histograms show distributions; bar charts show categories
A histogram is used for showing the distribution of continuous data, whereas a bar chart represents categorical data.
Question 6: Which method is used in Pandas to create summary statistics of a dataset?
- groupby()
- describe() (Correct answer)
- head()
- merge()
Correct answer: describe()
The `describe()` method in Pandas generates summary statistics, including mean, standard deviation, and percentiles of a dataset.
Which Python library is commonly used for data visualization?