wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Weeks 5-6 Quiz Exploratory Data

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the primary purpose of Exploratory Data Analysis (EDA)?

a)

A. To clean and preprocess data

b)

B. To identify patterns, trends, and outliers in the data

c)

C. To train machine learning models

d)

D. To visualize final insights

2.

Which of the following is NOT typically a part of EDA?

a)

A. Summary statistics

b)

B. Data cleaning

c)

C. Model training

d)

D. Data visualization

3.

Which function is commonly used to calculate summary statistics in pandas?

a)

A. describe()

b)

B. summary()

c)

C. calc_stats()

d)

D. analyze()

4.

What type of plot is useful for visualizing the distribution of a single numerical variable?

a)

A. Line plot

b)

B. Bar plot

c)

C. Histogram

d)

D. Box plot

5.

How can you visualize the relationship between two numerical variables in pandas?

a)

A. plot()

b)

B. scatter()

c)

C. line()

d)

D. groupby()

6.

Which of the following is a method to handle missing data in pandas?

a)

A. fillna()

b)

B. dropna()

c)

C. replace()

d)

D. All of the above

7.

Which of the following pandas functions is used to check for missing values?

a)

A. isnull()

b)

B. isna()

c)

C. both()

d)

D. A and B

8.

What is the default behavior of the dropna() function?

a)

A. Drops columns with missing values

b)

B. Drops rows with missing values

c)

C. Replaces missing values with zeros

d)

D. Replaces missing values with the mean

9.

Which of the following would you use to fill missing values with the mean of a column?

a)

A. fillna(method='mean')

b)

B. fillna(mean())

c)

C. fillna(df.mean())

d)

D. replace_na(df.mean())

10.

How do you replace missing values with a specific value, such as 0?

a)

A. df.fillna(0)

b)

B. df.replace(0)

c)

C. df.fill(0)

d)

D. df.replace_na(0)

11.

What type of plot is best suited to show the distribution of categorical data?

a)

A. Box plot

b)

B. Scatter plot

c)

C. Histogram

d)

D. Bar plot

12.

What is the purpose of a box plot in EDA?

a)

A. To visualize the frequency of categories

b)

B. To show the distribution and detect outliers

c)

C. To compare two numerical variables

d)

D. To display correlations

13.

Which function in Matplotlib creates a line plot?

a)

A. plt.plot()

b)

B. plt.scatter()

c)

C. plt.hist()

d)

D. plt.bar()

14.

How can you visualize the correlation between multiple variables in a DataFrame?

a)

A. Scatter plot

b)

B. Pair plot

c)

C. Line plot

d)

D. Pie chart

15.

Which of the following is the best way to detect outliers in a numerical variable?

a)

A. Histogram

b)

B. Box plot

c)

C. Line plot

d)

D. Pie chart

16.

Which of the following is a measure of central tendency?

a)

A. Variance

b)

B. Mean

c)

C. Standard deviation

d)

D. Range

17.

What does the corr() function in pandas compute?

a)

A. The sum of a column

b)

B. The mean of a column

c)

C. The correlation between columns

d)

D. The count of missing values

18.

What test would you use to check if two variables are related in EDA?

a)

A. Chi-square test

b)

B. T-test

c)

C. Regression analysis

d)

D. A and B

19.

What does the skewness of a data distribution indicate?

a)

A. The spread of the data

b)

B. Whether the data is normally distributed

c)

C. The direction of the tail in the distribution

d)

D. The central tendency of the data

20.

What type of graph would you use to visualize the relationship between a categorical variable and a numerical variable?

a)

A. Scatter plot

b)

B. Bar plot

t

c)

C. Box plot

d)

D. Pie char