×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Logistic Regression MCQs (Multiple-Choice Questions)

Logistic Regression is a supervised machine learning algorithm primarily used for classification problems. It estimates the probability of an outcome by applying the sigmoid function to a linear combination of input features.

Logistic Regression MCQs

These Logistic Regression MCQs cover important concepts such as classification, sigmoid function, probability, log-odds, decision thresholds, log loss, regularization, model training, prediction, multiclass classification, and implementing Logistic Regression using Python and scikit-learn.

List of Logistic Regression MCQs

The following Logistic Regression multiple-choice questions are useful for students, machine learning learners, Python programmers, and candidates preparing for technical examinations and interviews.

1. What type of machine learning problem is Logistic Regression primarily used for?

  1. Classification
  2. Clustering
  3. Dimensionality reduction
  4. Association rule mining

Answer: A) Classification

Explanation:

Logistic Regression is primarily used to model classification outcomes by estimating the probability of an event or class.

2. What does Logistic Regression typically predict before applying a classification threshold?

  1. A probability
  2. A database record
  3. A cluster identifier
  4. A text document

Answer: A) A probability

Explanation:

Logistic Regression produces a probability between 0 and 1, which can then be converted into a class using a threshold.

3. Which function is used by Logistic Regression to transform the linear model output into a probability?

  1. Sigmoid function
  2. ReLU function
  3. Step function only
  4. Cosine function

Answer: A) Sigmoid function

Explanation:

The sigmoid function transforms the linear output into a value strictly between 0 and 1, allowing it to be interpreted as a probability.

4. What is the mathematical form of the standard sigmoid function?

  1. 1 / (1 + e^-x)
  2. 1 / (1 - e^-x)
  3. e^x + 1
  4. x / (1 + e)

Answer: A) 1 / (1 + e^-x)

Explanation:

The standard sigmoid function is defined as 1 divided by 1 plus e raised to the negative input. Its output is always greater than 0 and less than 1.

5. What is the output of the sigmoid function when its input is 0?

  1. 0
  2. 0.25
  3. 0.5
  4. 1

Answer: C) 0.5

Explanation:

For an input of 0, the sigmoid function evaluates to 1 divided by 2, which is 0.5.

6. What is the range of the standard sigmoid function?

  1. Less than -1 to greater than 1
  2. 0 to 1, inclusive
  3. Greater than 0 and less than 1
  4. -1 to 1

Answer: C) Greater than 0 and less than 1

Explanation:

The sigmoid function approaches 0 and 1 but does not actually reach either value for finite inputs.

7. In Logistic Regression, what does the linear combination of features represent before applying the sigmoid function?

  1. The log-odds
  2. The final class label
  3. The confusion matrix
  4. The accuracy score

Answer: A) The log-odds

Explanation:

The linear expression consisting of the bias and weighted features represents the log-odds, which is then passed through the sigmoid function.

8. Which equation represents the linear component of a Logistic Regression model?

  1. z = b + w1x1 + w2x2 + ... + wNxN
  2. z = x1 / x2
  3. z = x1² + x2²
  4. z = sin(x)

Answer: A) z = b + w1x1 + w2x2 + ... + wNxN

Explanation:

The linear component combines the bias with the weighted input features. The resulting value is passed to the sigmoid function.

9. What does the parameter b generally represent in the Logistic Regression equation?

  1. Bias
  2. Batch size
  3. Binary label
  4. Baseline accuracy

Answer: A) Bias

Explanation:

The parameter b represents the bias or intercept of the linear component of the Logistic Regression model.

10. What do the parameters w1, w2, and other w values represent?

  1. Learned feature weights
  2. Class labels
  3. Probability thresholds
  4. Loss values

Answer: A) Learned feature weights

Explanation:

The weights determine how strongly individual features contribute to the linear model output.

11. What is log-odds?

  1. The logarithm of the odds of an event
  2. The average model accuracy
  3. The logarithm of the number of features
  4. The difference between training and test loss

Answer: A) The logarithm of the odds of an event

Explanation:

Log-odds is the natural logarithm of the ratio between the probability of an event and the probability of its complement.

12. If the predicted probability of an event is 0.8, what are the odds of the event?

  1. 0.2
  2. 0.8
  3. 4
  4. 5

Answer: C) 4

Explanation:

The odds are calculated as p divided by 1-p. For p = 0.8, the odds are 0.8 / 0.2 = 4.

13. Which probability corresponds to odds of 1?

  1. 0.1
  2. 0.25
  3. 0.5
  4. 0.9

Answer: C) 0.5

Explanation:

When the probability of an event equals the probability of its complement, the odds are 0.5 / 0.5 = 1.

14. What happens to the sigmoid output as its input becomes very large and positive?

  1. It approaches 0
  2. It approaches 0.5
  3. It approaches 1
  4. It becomes negative

Answer: C) It approaches 1

Explanation:

As the input to the sigmoid becomes increasingly positive, the output approaches 1 without reaching it for a finite input.

15. What happens to the sigmoid output as its input becomes very large and negative?

  1. It approaches 0
  2. It approaches 0.5
  3. It approaches 1
  4. It becomes greater than 1

Answer: A) It approaches 0

Explanation:

As the input becomes increasingly negative, the sigmoid output approaches 0 without reaching it for a finite input.

16. What is the predicted probability when the log-odds value z is 1?

  1. Approximately 0.119
  2. Approximately 0.269
  3. Approximately 0.731
  4. Approximately 0.982

Answer: C) Approximately 0.731

Explanation:

Applying the sigmoid function to z = 1 gives approximately 0.731.

17. What is the purpose of a classification threshold in Logistic Regression?

  1. To convert a predicted probability into a class
  2. To calculate the number of features
  3. To normalize every feature
  4. To calculate the training dataset size

Answer: A) To convert a predicted probability into a class

Explanation:

A probability produced by Logistic Regression can be converted into a binary class by comparing it with a selected threshold.

18. If a binary classifier uses a threshold of 0.5, what class is commonly predicted when the probability is 0.8?

  1. Positive class
  2. Negative class
  3. Unknown class
  4. Training class

Answer: A) Positive class

Explanation:

With a threshold of 0.5, a predicted probability of 0.8 is above the threshold and is therefore assigned to the positive class under the usual binary-classification convention.

19. What is the primary loss function associated with binary Logistic Regression?

  1. Log Loss
  2. Mean absolute error only
  3. Hinge loss only
  4. Euclidean distance

Answer: A) Log Loss

Explanation:

Binary Logistic Regression commonly uses log loss, also known as logistic loss or cross-entropy loss.

20. Why is log loss useful for Logistic Regression?

  1. It measures the quality of probabilistic predictions
  2. It converts features into strings
  3. It removes all features from the model
  4. It guarantees 100% accuracy

Answer: A) It measures the quality of probabilistic predictions

Explanation:

Log loss evaluates how close predicted probabilities are to the actual binary labels and strongly penalizes confident incorrect predictions.

21. What happens to log loss when a model makes a very confident incorrect prediction?

  1. The loss can become very large
  2. The loss always becomes zero
  3. The loss becomes negative
  4. The loss becomes exactly 0.5

Answer: A) The loss can become very large

Explanation:

Log loss heavily penalizes predictions that assign very high probability to the wrong class.

22. What is the target label convention used in binary Logistic Regression's standard log-loss formula?

  1. Labels are represented as 0 or 1
  2. Labels must always be -1 or 1
  3. Labels must be text strings
  4. Labels must be floating-point values greater than 1

Answer: A) Labels are represented as 0 or 1

Explanation:

In the standard binary log-loss formulation, the target label y takes values 0 or 1.

23. Why is regularization used in Logistic Regression?

  1. To help reduce overfitting
  2. To increase the number of labels automatically
  3. To remove the sigmoid function
  4. To convert classification into clustering

Answer: A) To help reduce overfitting

Explanation:

Regularization constrains model parameters and can help improve generalization by reducing overfitting. Google emphasizes the importance of regularization when training Logistic Regression models.

24. Which of the following is a common type of regularization used with Logistic Regression?

  1. L2 regularization
  2. JPEG regularization
  3. HTML regularization
  4. Binary tree regularization

Answer: A) L2 regularization

Explanation:

L2 regularization adds a penalty related to the squared magnitude of model weights and is commonly used with Logistic Regression.

25. Which regularization technique can produce sparse model coefficients?

  1. L1 regularization
  2. L2 regularization only
  3. No regularization
  4. Batch normalization

Answer: A) L1 regularization

Explanation:

L1 regularization can drive some coefficients to exactly zero, which can result in a sparse model.

26. Which Python library provides a commonly used Logistic Regression implementation?

  1. scikit-learn
  2. Beautiful Soup
  3. Flask
  4. Requests

Answer: A) scikit-learn

Explanation:

scikit-learn provides Logistic Regression through sklearn.linear_model.LogisticRegression.

27. Which import statement is used to import Logistic Regression from scikit-learn?

  1. from sklearn.linear_model import LogisticRegression
  2. from sklearn.logistic import Regression
  3. import sklearn.LogisticRegression
  4. from sklearn.classification import Logistic

Answer: A) from sklearn.linear_model import LogisticRegression

Explanation:

In scikit-learn, the LogisticRegression estimator is located in the sklearn.linear_model module.

28. Which method is commonly used to train a scikit-learn Logistic Regression model?

  1. fit()
  2. train()
  3. learn()
  4. build()

Answer: A) fit()

Explanation:

scikit-learn estimators are generally trained using the fit() method with feature data and target labels.

29. Which method is commonly used to obtain class predictions from a trained scikit-learn Logistic Regression model?

  1. predict()
  2. classify()
  3. estimate()
  4. class()

Answer: A) predict()

Explanation:

The predict() method produces predicted class labels for input samples.

30. Which method can be used with scikit-learn Logistic Regression to obtain predicted probabilities?

  1. predict_proba()
  2. predict_probability()
  3. probability()
  4. get_probability()

Answer: A) predict_proba()

Explanation:

scikit-learn's predict_proba() method returns estimated class probabilities for supported classifiers, including Logistic Regression.

31. Which attribute of a trained scikit-learn Logistic Regression model contains the learned coefficients?

  1. coef_
  2. weights
  3. parameters
  4. coefficients

Answer: A) coef_

Explanation:

scikit-learn stores the learned feature coefficients of Logistic Regression in the coef_ attribute.

32. Which attribute stores the intercept learned by scikit-learn Logistic Regression?

  1. intercept_
  2. bias
  3. offset
  4. constant

Answer: A) intercept_

Explanation:

The intercept_ attribute contains the learned intercept term of the fitted Logistic Regression model.

33. What does the C parameter control in scikit-learn Logistic Regression?

  1. The inverse of regularization strength
  2. The number of classes only
  3. The number of input features
  4. The classification threshold

Answer: A) The inverse of regularization strength

Explanation:

In scikit-learn, a smaller C means stronger regularization, while a larger C means weaker regularization.

34. What is the default regularization penalty in the current scikit-learn LogisticRegression documentation?

  1. L1
  2. L2
  3. Elastic Net
  4. None

Answer: B) L2

Explanation:

The current scikit-learn documentation lists L2 as the default penalty for LogisticRegression.

35. Which solver supports Elastic-Net regularization in scikit-learn Logistic Regression?

  1. saga
  2. liblinear only
  3. lbfgs only
  4. newton-cg only

Answer: A) saga

Explanation:

According to the current scikit-learn documentation, Elastic-Net regularization is supported by the saga solver.

36. Which solver in scikit-learn supports L1 and L2 regularization but not Elastic-Net?

  1. liblinear
  2. lbfgs
  3. newton-cg
  4. sag

Answer: A) liblinear

Explanation:

The current documentation states that the liblinear solver supports L1 and L2 regularization, but not Elastic-Net.

37. Can Logistic Regression be used for multiclass classification?

  1. Yes
  2. No, never
  3. Only with regression targets
  4. Only without features

Answer: A) Yes

Explanation:

Logistic Regression can be extended to multiclass classification. scikit-learn supports multiclass Logistic Regression with several solvers.

38. Which situation represents binary classification?

  1. Predicting whether an email is spam or not spam
  2. Predicting one of ten unrelated categories
  3. Grouping customers without labels
  4. Reducing 100 features to two dimensions

Answer: A) Predicting whether an email is spam or not spam

Explanation:

Binary classification involves choosing between two classes, such as spam and not spam.

39. Which problem is an example of multiclass classification?

  1. Predicting whether a message is spam or not spam
  2. Predicting whether a customer will buy or not buy
  3. Classifying an image as cat, dog, bird, or horse
  4. Predicting house price

Answer: C) Classifying an image as cat, dog, bird, or horse

Explanation:

A multiclass problem contains more than two possible classes. The example contains four possible categories.

40. What is overfitting in Logistic Regression?

  1. When the model learns patterns specific to training data and generalizes poorly
  2. When the model has no features
  3. When the sigmoid function is removed
  4. When every prediction is exactly 0.5

Answer: A) When the model learns patterns specific to training data and generalizes poorly

Explanation:

Overfitting occurs when a model fits the training data too closely and performs poorly on previously unseen data.

41. Which technique can help control overfitting in Logistic Regression?

  1. Regularization
  2. Removing the target labels
  3. Increasing every coefficient without restriction
  4. Using random class names

Answer: A) Regularization

Explanation:

Regularization penalizes large model coefficients and can help a Logistic Regression model generalize better to unseen data.

42. What does a positive Logistic Regression coefficient generally indicate?

  1. An increase in the feature is associated with increased log-odds of the modeled positive outcome, holding other features constant
  2. The feature is always irrelevant
  3. The probability must equal 0
  4. The model is necessarily overfitting

Answer: A) An increase in the feature is associated with increased log-odds of the modeled positive outcome, holding other features constant

Explanation:

A positive coefficient increases the linear predictor and therefore increases the modeled log-odds of the positive outcome when other features are held constant.

43. What does a negative Logistic Regression coefficient generally indicate?

  1. An increase in the feature is associated with decreased log-odds of the modeled positive outcome, holding other features constant
  2. The feature is always removed
  3. The probability becomes exactly zero
  4. The model must be underfitting

Answer: A) An increase in the feature is associated with decreased log-odds of the modeled positive outcome, holding other features constant

Explanation:

A negative coefficient decreases the linear predictor and therefore decreases the modeled log-odds of the positive outcome when other features remain constant.

44. What is a decision boundary in Logistic Regression?

  1. A boundary separating predicted classes according to a classification rule
  2. The training dataset itself
  3. The model's loss history
  4. The list of feature names

Answer: A) A boundary separating predicted classes according to a classification rule

Explanation:

A decision boundary separates regions of feature space that are assigned to different classes according to the model and selected classification threshold.

45. What happens when the classification threshold is increased for a binary classifier?

  1. It generally becomes harder for examples to be classified as positive
  2. Every example becomes positive
  3. The sigmoid function is removed
  4. The number of features automatically increases

Answer: A) It generally becomes harder for examples to be classified as positive

Explanation:

A higher threshold requires a larger predicted probability before an example is assigned to the positive class. This generally reduces positive predictions.

46. Which metric measures the proportion of predicted positive examples that are actually positive?

  1. Precision
  2. Recall
  3. Specificity
  4. Mean squared error

Answer: A) Precision

Explanation:

Precision measures how many of the examples predicted as positive are actually positive.

47. Which metric measures the proportion of actual positive examples that are correctly identified?

  1. Recall
  2. Precision
  3. Mean absolute error
  4. R-squared

Answer: A) Recall

Explanation:

Recall measures the proportion of actual positive examples that the classifier correctly identifies as positive. Google discusses recall as one of the key metrics for binary classification.

48. Which metric can be misleading when a binary classification dataset is highly imbalanced?

  1. Accuracy
  2. Recall
  3. Precision
  4. F1 score

Answer: A) Accuracy

Explanation:

Accuracy can appear very high when one class dominates the dataset, even if the model performs poorly on the minority class.

49. Which statement best describes Logistic Regression in Python?

  1. It is a machine learning algorithm that can be implemented using Python libraries such as scikit-learn
  2. It is a Python programming language feature
  3. It is a Python syntax rule
  4. It is a Python package manager

Answer: A) It is a machine learning algorithm that can be implemented using Python libraries such as scikit-learn

Explanation:

Logistic Regression is a machine learning algorithm, not a Python-specific technology. Python libraries such as scikit-learn provide implementations for using it in Python programs.

50. Which statement best describes Logistic Regression?

  1. It estimates probabilities for classification using a sigmoid transformation of a linear model
  2. It is an unsupervised clustering algorithm
  3. It is a database indexing algorithm
  4. It is a programming language compiler

Answer: A) It estimates probabilities for classification using a sigmoid transformation of a linear model

Explanation:

Logistic Regression combines a linear model with the sigmoid function to produce probabilities that can be used for classification.

Advertisement
Advertisement

Comments and Discussions!

Load comments ↻


Advertisement
Advertisement
Advertisement

Copyright © 2026 www.includehelp.com. All rights reserved.