Data Analysis MCQs | JoinMyTutor
MCQs on data analysis using Python and libraries.
Data Analysis & Visualization
MCQs on data analysis and visualization with Python.
-
Which library is commonly used for data analysis in Python?
- A. numpy
- B. pandas
- C. matplotlib
- D. scikit-learn
Answer: B — Pandas provides DataFrame structures for analysis.
-
Which Pandas object represents tabular data?
- A. Series
- B. Array
- C. DataFrame
- D. Matrix
Answer: C — DataFrame is a 2D labeled data structure in Pandas.
-
Which method gives basic statistical summary of a DataFrame?
- A. describe()
- B. summary()
- C. stats()
- D. info()
Answer: A — df.describe() shows count, mean, std, min, max, etc.
-
Which method reads a CSV file into Pandas?
- A. pd.read_csv()
- B. pd.read_file()
- C. pd.load_csv()
- D. pd.csv_read()
Answer: A — pd.read_csv("file.csv") reads CSV into a DataFrame.
-
Which method drops missing values in a DataFrame?
- A. dropna()
- B. fillna()
- C. remove_na()
- D. delete_na()
Answer: A — df.dropna() removes rows with NaN values.
-
Which function plots a line chart in Matplotlib?
- A. plt.line()
- B. plt.plot()
- C. plt.show()
- D. plt.draw()
Answer: B — plt.plot() is used for line charts.
-
Which library is based on Matplotlib for statistical plotting?
- A. Seaborn
- B. Plotly
- C. Bokeh
- D. Altair
Answer: A — Seaborn provides high-level statistical plots.
-
Which function displays the plot in Matplotlib?
- A. plt.display()
- B. plt.show()
- C. plt.render()
- D. plt.draw()
Answer: B — plt.show() renders and displays the figure.
-
Which Seaborn function creates a correlation heatmap?
- A. sns.heatmap()
- B. sns.corrmap()
- C. sns.matrix()
- D. sns.table()
Answer: A — sns.heatmap() visualizes correlation matrices.
-
Which parameter in plt.plot() sets the line color?
- A. color
- B. c
- C. Both A and B
- D. linestyle
Answer: C — You can use color="red" or c="red" to set line color.
-
Which module in Plotly creates interactive plots in Python?
- A. plotly.express
- B. plotly.graph_objects
- C. plotly.figure_factory
- D. All of the above
Answer: D — All modules in Plotly can create plots in different ways.
-
Which function creates a scatter plot in Plotly Express?
- A. px.scatter_plot
- B. px.scatter
- C. px.plot_scatter
- D. px.plot
Answer: B — px.scatter() generates scatter plots.
-
Which Plotly function creates bar charts?
- A. px.bar()
- B. px.hist()
- C. px.column()
- D. px.barchart()
Answer: A — px.bar() creates bar charts.
-
Which parameter sets the x-axis variable in Plotly Express?
- A. x
- B. y
- C. data_frame
- D. labels
Answer: A — x="column_name" defines the x-axis.
-
Which method renders the interactive Plotly figure in Jupyter Notebook?
- A. fig.show()
- B. plt.show()
- C. fig.render()
- D. fig.plot()
Answer: A — fig.show() displays Plotly figures interactively.
💡 Tips & Common Mistakes
Remember to review concepts carefully. Fill in custom tips for data-analysis here.
📅 Last Updated: November 20, 2026
Vinod Kumar
Senior Full-Stack InstructorPython & JavaScript Tutor at JoinMyTutor
Vinod teaches practical Python and JavaScript—ranging from basics to advanced web apps—with a focus on clear mental models, code readability, and interview preparation. He authors both the Python and JavaScript tracks on JoinMyTutor.