wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Workshop_quiz_on Sk-learn

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is Scikit-learn primarily used for?

a)

Data visualization

b)

Web development

c)

Machine learning

d)

Database management

2.

Scikit-learn is built on top of which libraries?

a)

TensorFlow and Keras

b)

NumPy, SciPy, and Matplotlib

c)

PyTorch and Pandas

d)

Statsmodels and Seaborn

3.

Which module in Scikit-learn is used for preprocessing data?

a)

sklearn.model_selection

b)

sklearn.preprocessing

c)

sklearn.metrics

d)

sklearn.pipeline

4.

What is the purpose of train_test_split()?

a)

To train the model

b)

To split data into training and testing sets

c)

To scale the data

d)

To evaluate accuracy

5.

Which method is used to fit a model in Scikit-learn?

a)

.predict()

b)

.score()

c)

.fit()

d)

.train()

6.

What is the purpose of .predict() method?

a)

To evaluate model accuracy

b)

To make predictions on new data

c)

To train the model

d)

To shuffle the dataset

7.

Which of the following is NOT a supervised learning algorithm in Scikit-learn?

a)

Linear Regression

b)

Decision Tree

c)

K-Means

d)

Random Forest

8.

Which Scikit-learn class is used for standardizing features?

a)

MinMaxScaler

b)

StandardScaler

c)

Normalizer

d)

LabelEncoder

9.

What does the score() method generally return for classifiers?

a)

Confusion matrix

b)

Model accuracy

c)

Loss function value

d)

Precision score

10.

Which Scikit-learn function helps perform cross-validation?

a)

cross_val_score()

b)

model_selection()

c)

validation_curve()

d)

fit_predict()

11.

Which of the following is used for feature selection?

a)

SelectKBest

b)

StandardScaler

c)

GridSearchCV

d)

LabelEncoder

12.

What does Pipeline do in Scikit-learn?

a)

Automates ML workflow steps

b)

Stores datasets

c)

Tunes hyperparameters

d)

Visualizes model performance

13.

Which module provides tools for hyperparameter tuning?

a)

sklearn.metrics

b)

sklearn.grid_search

c)

sklearn.model_selection

d)

sklearn.preprocessing

14.

What is the purpose of LabelEncoder?

a)

Normalizes data

b)

Encodes categorical labels as numbers

c)

Reduces dimensionality

d)

Scales features

15.

Which method is used to evaluate a regression model in Scikit-learn?

a)

accuracy_score()

b)

r2_score()

c)

confusion_matrix()

d)

f1_score()