wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Analytics Unit 3 Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which Python library is commonly used for creating scatter plots?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

SciPy

2.

In Matplotlib, which function is used to create a scatter plot?

a)

plot()

b)

scatter()

c)

lineplot()

d)

bar()

3.

How can you add a title to a scatter plot in Matplotlib?

a)

plt.title()

b)

plt.heading()

c)

plt.caption()

4.

What is the purpose of the alpha parameter in scatter()?

a)

To set the alignment of markers

b)

To control the transparency of markers

c)

To change the shape of markers

d)

To set the aspect ratio of the plot

5.

What does the hue parameter in sns.scatterplot() control?

a)

Size of markers

b)

Transparency of markers

c)

Color of markers based on a categorical variable

d)

Style of the markers

6.

What does the covariance between two variables indicate?

a)

The linear relationship between two variables

b)

Differences between two variables

c)

The average of the two variables

d)

The spread of the data

7.

Which function in Pandas is used to compute the correlation coefficient matrix?

a)

cov()

b)

corr()

c)

correlation()

d)

matrix()

8.

What is the range of the Pearson correlation coefficient?

a)

-∞ to +∞

b)

0 to 1

c)

-1 to 1

d)

-1 to 0

9.

What does a correlation value of -1 signify?

a)

Perfect positive correlation

b)

No correlation

c)

Perfect negative correlation

d)

Partial negative correlation

10.

In Pandas, how do you calculate the covariance between two columns of a DataFrame?

a)

df.corr()

b)

df.cov()

c)

df.covariance()

d)

df.variance()

11.

Which method in Pandas is used to calculate the Spearman rank correlation?

a)

df.corr(method='pearson')

b)

df.corr(method='spearman')

c)

df.corr(method='kendall')

d)

df.spearman()

12.

Which library in Python is commonly used for linear regression?

a)

Matplotlib

b)

NumPy

c)

scikit-learn

d)

Seaborn

13.

hat does the fit() method do in scikit-learn's regression models?

a)

Tests the model on data

b)

Fits the regression line to the training data

c)

Predicts the output for the test data

d)

Normalizes the data

14.

Which of the following is the correct class for performing linear regression in scikit-learn?

a)

sklearn.linear_model.LinearRegression

b)

sklearn.model.LinearRegression

c)

sklearn.linear.LinearModel

d)

sklearn.regression.Linear

15.

Which metric are used to evaluate the accuracy of a regression model?

a)

a) Mean Squared Error (MSE)

b)

b) RR squared

c)

c) R-squared (R²)

d)

d) Both (a) and (c)