wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ML-Revised

Total questions: 25

Worksheet time: 17mins

Name
Class
Date
1.

Supervised learning requires:

a)

A. No labels

b)

B. Only images

c)

C. Labeled input-output pairs

d)

D. Rewards and penalties

2.

3. Which problem is solved using regression?

a)

A. Predict whether an email is spam

b)

B. Predict price of a house

c)

C. Classify animals into categories

d)

D. Recognize handwritten digits

3.

Polynomial regression can model:

a)

A. Only linear patterns

b)

B. Only categorical outputs

c)

C. Nonlinear relationships

d)

D. Reinforcement learning policies

4.

The cost function in linear regression is usually:

a)

A. Accuracy

b)

B. Entropy

c)

C. Mean Squared Error

d)

D. Gain Ratio

5.

High bias usually leads to:

a)

A. Underfitting

b)

B. Overfitting

c)

C. Better generalization

d)

D. High training accuracy

6.

Which evaluation metric is most sensitive to outliers?

a)

A. MAE

b)

B. MSE

c)

C. Accuracy

d)

D. Recall

7.

A supermarket wants to predict next month’s total sales. Which ML method should they use? answer in small letters

(a)  

8.

You are predicting house prices but the model is too simple and missing patterns. What problem is this?

a)

Underfitting

b)

overfitting

c)

Noise

d)

MSE

9.

A polynomial regression (degree 8) fits perfectly on training data but performs poorly on test data. What is happening?



(a)  

10.

Which metric is best for a model where outliers matter a lot, such as predicting medical dosage errors?

a)

MSE

b)

MAE

c)

LSE

d)

RMSE

11.

2. Perform 2 steps of gradient descent

Given:

  • Dataset: (x = 1, y = 3)

  • Initial values: b=0 m​=0

  • Learning rate: α=0.5

  • answer in small letter (m=? and b=?)



(a)  

12.

Hypothesis:

h(x)=b+m1x1+m2x2

Given:

  • Training example: (x1=2,  x2=3) y=10

  • Parameters: θ0=1,θ1=1,θ2=1

  • Learning rate: α=0.1

Perform one gradient descent update.

answer format (b=?, m1=?, m2=?)

(a)  

13.

Compute LSE

Predictions: [3, 5, 7]
Actual values: [2, 6, 7]



(a)  

14.

An e-commerce website wants to group customers into segments (e.g., bargain hunters, loyal customers, high spenders) based only on their purchase history and browsing behavior.

  • Which type of ML will you use?

a)

Supervised

b)

Unsupervised

15.

A data scientist builds a linear regression model to predict customer spending using many complex features: browsing patterns, device type, time of day, and more. The model has very low training accuracy and low test accuracy.

  • (a) Is this or ? Explain.

a)
  • underfitting

b)
  • overfitting

16.

A bank uses logistic regression to predict whether a customer will default on a loan.
They use 50 features (income, age, number of loans, spending patterns, etc.).
After training without regularization, the model overfits and gives unstable predictions on new customers. If the bank wants a simpler model with fewer active features, which type of regularization is better

a)

L1

b)

L2

17.

In L2 regularization (Ridge), the penalty term added to the loss is:

a)

A. λ∑∣wi​∣

b)

B. λ∑wi^2​

c)

C. λ∑∣yi​−y^​i​∣

d)

D. λ∑(yi​−y​i​)^2

18.

Which statement is true about L2 regularization?

a)

A. It forces some weights to become exactly zero.

b)

B. It tends to keep all weights small but non-zero.

c)

C. It cannot be used with gradient descent.

d)

D. It is only applied to the bias term.

19.

Regularization is mainly used to control:

a)

A. Bias

b)

B. Variance

c)

C. Learning rate

d)

D. Optimization algorithm

20.

Assume you have a model with weights w=[2,−4,1].
Compute the value of the L1 and L2 penalty terms for λ = 0.5:

  • (a) λ∑∣wi∣

  • (b) λ∑wi^2

  • write your answers in format (a=?, b=?)



(a)  

21.

Model:

h(x)=4+2x

Find prediction for x=7

(a)  

22.

he output of the logistic (sigmoid) function always lies between:

a)

A. −∞ to +∞

b)

B. −1 to +1

c)

C. 0 to 1

d)

D. 0 to ∞

23.

Logistic regression uses which of the following as its activation function?

a)

A. ReLU

b)

B. Sigmoid

c)

C. Tanh

d)

D. Softmax

24.

The logistic (sigmoid) function is:

σ(z)=1/1+e^(-z) compute σ(z) where z=0.5 and e=2.71

write your answers in numbers in two decimal format.

(a)  

25.

A logistic regression model is:

z=−2+0.8x1+0.5x2

For a person with x1=3 and x2=2

  • (a) Compute z.

  • (b)sigmoid function

  • write your answer in format (a=?, b=?)

  • answers having decimal valued should be written in 2 decimal format



(a)