wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Logistic Regression and k-NN

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

  Logistic Regression is mainly used for:

a)

Feature selection

b)

Classification problems

c)

Clustering problems

d)

Regression problems

2.

  Logistic Regression uses (a)   function to map values into probabilities.
(ans : all small case letters)

3.

  In k-NN, “k” refers to:


a)

Number of clusters

b)

Number of training samples

c)

Number of nearest neighbors considered

d)

Number of features

4.

(a)   distance metric is most commonly used in k-NN.

(ans : in small case)

5.

If k in k-NN is too small, the model may:
(ans : in small case)

(a)  

6.

  k-NN is considered a:

a)

Parametric model

b)

Generative model

c)

Probabilistic model

d)

Non-parametric model

7.

In k-NN, when classes are imbalanced, the best solution is:


a)

Use weighted voting

b)

Remove features

c)

Use smaller k

d)

Use sigmoid activation

8.

The cost function used in Logistic Regression is:

a)

Hinge loss

b)

Euclidean distance

c)

Cross-Entropy

d)

Mean Squared Error (MSE)

9.

  k-NN works best when:

a)

Data is very high-dimensional

b)

Data has many missing values

c)

Features are categorical only

d)

Data is low-dimensional and well-separated

10.

Which of the following is TRUE about k-NN?

a)

Training is slow, prediction is fast

b)

Training is fast, prediction is slow

c)

Both training and prediction are slow

d)

Both training and prediction are fast

11.

Logistic Regression uses (a)   to estimate parameters.
(answer in short form : give all in capital letters)

12.

  The output of Logistic Regression is interpreted as (a)   of belonging to a class.
(ans : all small case)

13.

  The range of the sigmoid function in Logistic Regression is:
ans : provide in format "start_range , end_range"




(a)  

14.

  k-NN is considered a:

a)

Clustering algorithm

b)

Parametric model

c)

Non-parametric model

d)

Semi-supervised model

15.

The logit function in Logistic Regression is defined as:
(function : give in all small case letters without space)

(a)  

16.

Which of the following is NOT true about k-NN?

a)

It needs feature scaling

b)

It requires training time

c)

It predicts based on majority vote

d)

It is a lazy learner

17.

Which is a disadvantage of Logistic Regression?

a)

Cannot handle binary classification

b)

Cannot be extended to multi-class problems

c)

Cannot interpret coefficients

d)

Requires features to be linearly separable

18.

k-NN suffers when the dataset has:

a)

Small number of features

b)

Balanced data

c)

Large number of features

d)

Normalized data

19.

Which of the following is TRUE about Logistic Regression?


a)

It can predict probabilities

b)

It only works with categorical input features

c)

It is non-parametric

d)

It doesn’t require optimization

20.

  Logistic Regression can be used for:

a)

Predicting stock prices

b)

Predicting exam scores

c)

Predicting whether a student passes/fails

d)

All of the above