IITP · Semester ISummaries · Quizzes · Assignments

DE-1 · AML

Advanced Machine Learning – 25 Question Quiz & Review

Source: IITP\Sem-1\AML\Quiz\AML quiz 25 question.md


Q1. Hold out method is a type of:

  • Options:
  • a) Training Method
  • b) Machine learning method
  • c) Data splitting method
  • d) Data Extraction
  • Answer: c) Data splitting method
  • Explanation: The holdout method partitions a dataset into separate subsets (such as training and testing sets) to evaluate model performance on unseen data.

Q2. Algorithm and model are the same thing in machine learning.

  • Options:
  • True
  • False
  • Answer: False
  • Explanation: An algorithm is a procedure or mathematical formula used to learn patterns, whereas a model is the trained output resulting from running the algorithm on a dataset.

Q3. Which kind of problem suffers from high randomness?

  • Options:
  • a) Deterministic programming
  • b) Explicit programming
  • c) Non-Deterministic programming
  • d) Implicit programming
  • Answer: c) Non-Deterministic programming
  • Explanation: Non-deterministic algorithms do not follow fixed execution paths for the same input, leading to inherent randomness in their outputs.

Q4. Zip Code is a type of variable:

  • Options:
  • a) Continuous
  • b) Ordinal
  • c) Ratio
  • d) Nominal
  • Answer: d) Nominal
  • Explanation: Zip codes are categorical labels represented numerically. They lack intrinsic numerical order or mathematical meaning, making them nominal variables.

Q5. Nominal variables are those having:

  • Options:
  • a) Intrinsic Ordering
  • b) Non-Intrinsic Ordering
  • c) Continuous Scale
  • d) Ratio Property
  • Answer: b) Non-Intrinsic Ordering
  • Explanation: Nominal variables represent discrete categories that have no natural or inherent ranking.

Q6. Machine Learning programming is:

  • Options:
  • a) Explicit Programming
  • b) Hardcoded Rules
  • c) Deterministic Logic
  • d) Implicit Programming
  • Answer: d) Implicit Programming
  • Explanation: In implicit programming, rules and decision logic are learned automatically from data rather than being hardcoded manually by a programmer.

Q7. In supervised learning, target/class variable can be:

  • Options:
  • a) Only Numerical Variable
  • b) All
  • c) Only Nominal Variable
  • d) Only Categorical Variable
  • Answer: b) All
  • Explanation: Supervised learning targets can be continuous/numerical (in regression models) or discrete/nominal/categorical (in classification models).

Q8. Adding a moderation term works with both polynomial and linear Regression:

  • Options:
  • True
  • False
  • Answer: True
  • Explanation: Moderation (interaction terms) captures how the relationship between two variables changes based on a third variable, applicable to both linear and polynomial models.

Q9. To test linear relationship of y (dependent) and x (independent) continuous variables, which plot is best suited?

  • Options:
  • a) Scatter plot
  • b) Barchart
  • c) Histogram
  • d) Box plot
  • Answer: a) Scatter plot
  • Explanation: Scatter plots display pairs of continuous variables on a 2D Cartesian plane, making linear trends immediately visible.

Q10. In a binary classification confusion matrix, what does the term "False Negative (FN)" represent?

  • Options:
  • a) Model predicts positive when actual is negative
  • b) Model predicts negative when actual is positive
  • c) Model predicts positive when actual is positive
  • d) Model predicts negative when actual is negative
  • Answer: b) Model predicts negative when actual is positive
  • Explanation: A False Negative occurs when the true class is positive (1), but the classifier incorrectly predicts negative (0).

Q11. Which of these is a commonly used loss function for binary classification?

  • Options:
  • a) Mean Squared Error
  • b) Binary Cross-Entropy
  • c) Sum of Squared Errors
  • d) Mean Absolute Error
  • Answer: b) Binary Cross-Entropy
  • Explanation: Binary Cross-Entropy (log loss) measures the discrepancy between true binary labels and predicted probability outputs.

Q12. Range of R-squared ($R^2$) in linear regression is:

  • Options:
  • a) $-\infty$ to $+\infty$
  • b) $0$ to $+\infty$
  • c) $-1$ to $+1$
  • d) $0$ to $1$
  • Answer: d) 0 to 1
  • Explanation: Standard $R^2$ indicates the proportion of dependent variable variance explained by the model, spanning from 0 (no variance explained) to 1 (100% variance explained).

Q13. Which function is used by logistic regression to convert probabilities into the range between [0, 1]?

  • Options:
  • a) Sigmoid
  • b) Square
  • c) Probit
  • d) Mode
  • Answer: a) Sigmoid
  • Explanation: The Sigmoid function maps any real-valued number smoothly into a bounded [0, 1] probability range.

Q14. In OLS linear regression, $R^2$ always:

  • Options:
  • a) Increases or decreases as we add features
  • b) Decreases as we add features
  • c) Does not depend on features
  • d) Increases (or stays same) as we add new features
  • Answer: d) Increases (or stays same) as we add new features
  • Explanation: In Ordinary Least Squares regression, adding an extra feature can never decrease standard $R^2$.

Q15. Line of best fit or regression line is found when:

  • Options:
  • a) $\sum |Y - h(X)|$ is maximum
  • b) $\sum (Y - h(X))$ is minimum
  • c) Sum of the square of residuals $\sum (Y - h(X))^2$ is minimum
  • d) Sum of the square of residuals $\sum (Y - h(X))^2$ is maximum
  • Answer: c) Sum of the square of residuals $\sum (Y - h(X))^2$ is minimum
  • Explanation: The Least Squares Method finds model parameters by minimizing the sum of squared prediction errors (SSE).

Q16. Gradient Descent is:

  • Options:
  • a) A classification method
  • b) A regression method
  • c) An optimizer
  • d) A loss function
  • Answer: c) An optimizer
  • Explanation: Gradient Descent is an iterative optimization algorithm that updates weights to minimize loss.

Q17. Which statement comparing MSE and SSE is correct?

  • Options:
  • a) Can't say
  • b) SSE is better than MSE performance metric for linear regression
  • c) MSE is better than SSE performance metric for linear regression
  • d) Both SSE and MSE are equally good
  • Answer: c) MSE is better than SSE performance metric for linear regression
  • Explanation: SSE scales with sample size, while MSE normalizes total error by $n$, allowing standardized cross-dataset comparisons.

Q18. In a simple linear regression model (one independent variable), changing the input variable by 1 unit changes the output variable by:

  • Options:
  • a) Its slope (coefficient)
  • b) Its intercept
  • c) No change
  • d) 1 unit
  • Answer: a) Its slope (coefficient)
  • Explanation: In $y = mx + c$, the slope $m$ defined the rate of change in $y$ per unit increase in $x$.

Q19. Cut off value in a classification problem is decided by the developer based on the need of the application:

  • Options:
  • True
  • False
  • Answer: True
  • Explanation: Decision thresholds can be adjusted from the default 0.5 based on specific domain priorities (e.g., minimizing False Negatives in medical diagnosis).

Q20. Accuracy is highest in classification with Cut off value = 0.5:

  • Options:
  • True
  • False
  • Answer: False
  • Explanation: On imbalanced datasets, setting the decision threshold to 0.5 rarely yields maximum overall accuracy.

Q21. Unsupervised algorithm cannot be applied if the dataset has a target variable:

  • Options:
  • True
  • False
  • Answer: False
  • Explanation: Unsupervised learning can still be performed on such datasets by simply excluding or ignoring the target column.

Q22. Supervised algorithm cannot be applied if a target variable is missing in the dataset:

  • Options:
  • True
  • False
  • Answer: True
  • Explanation: Supervised learning fundamentally requires target labels to compute errors and optimize model weights.

Q23. Predicting whether a given flight will be delayed or not is a:

  • Options:
  • a) Descriptive Analytics Problem
  • b) Regression Problem
  • c) Unsupervised Problem
  • d) Classification Problem
  • Answer: d) Classification Problem
  • Explanation: Predicting a discrete binary outcome ("Delayed" vs. "Not Delayed") is a classification problem.

Q24. In logistic regression, a very large positive coefficient for a predictor indicates:

  • Options:
  • a) The predictor strongly decreases the probability of success
  • b) The predictor strongly increases the probability of success
  • c) The predictor has no effect
  • d) Severe model bias
  • Answer: b) The predictor strongly increases the probability of success
  • Explanation: Positive coefficients increase log-odds, pushing predicted probability closer to 1.

Q25. Polynomial linear regression offers better performance than multiple linear regression in non-linear datasets:

  • Options:
  • True
  • False
  • Answer: True
  • Explanation: Non-linear datasets require non-linear curves, which polynomial terms can model effectively whereas standard multiple linear regression cannot.