IITP · Semester ISummaries · Quizzes · Assignments

EAI 6103 — Advanced Machine Learning

Quiz 1 — Question Bank (25 Q, full options)

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

Source: class WhatsApp group (Chats/WhatsApp-Cheat-code/chat.md), set posted 22 Oct 2026 by a classmate ("AML"). Status: all 25 marked answers re-verified — 25/25 correct (two have small caveats noted inline).


Quick answer key

Q Ans Q Ans Q Ans
1 d 10 a 19 False
2 a 11 c 20 b
3 d 12 c 21 True
4 c 13 True 22 d
5 b 14 False 23 c
6 a 15 a 24 a
7 b 16 False 25 a
8 False 17 c
9 d 18 True

Q1. Range of R-squared is:

a) −∞ to +∞ b) 0 to +∞ c) −1 to +1 d) 0 to 1

✅ d) 0 to 1 — for a model with an intercept fitted by OLS on the training data, R² = 1 − SSE/SST ∈ [0,1]. Note: without an intercept, or on test data, R² can go negative — which is the trap behind option (a).

Q2. Which function does logistic regression use to map a score into [0,1]?

a) Sigmoid b) Square c) Probit d) Mode

✅ a) Sigmoid — σ(z) = 1/(1+e⁻ᶻ). Related: probit (Φ, the normal CDF) is a different link used by probit regression; it is not what logistic regression uses.

Q3. Which statement is correct (effect of adding a new feature on R²)?

a) R² may increase or decrease b) R² always decreases c) R² does not depend on features d) R² always increases

✅ d) R² always increases — with OLS, adding any feature cannot raise SSE, so R² is non-decreasing. Related: this is exactly why adjusted R² exists — it penalises the extra parameter and can decrease (that is the intent behind option a).

Q4. In practice, the line of best fit is found when:

a) Σ|Y−h(X)| is maximum b) Σ(Y−h(X)) is minimum c) Σ(Y−h(X))² is minimum d) Σ(Y−h(X))² is maximum

✅ c) SSE is minimum — least squares. Related: (b) is degenerate (positive and negative residuals cancel); (a) is least-absolute-deviations — a valid but different estimator (robust to outliers, no closed form).

Q5. In classification, "class label" refers to:

a) The output of a regression model b) The predicted category of an input c) The input features d) The name of the model

✅ b) The predicted category — the discrete category assigned to an input.

Q6. To test a linear relationship between continuous y and x, which plot is best?

a) Scatter plot b) Bar chart c) None d) Histogram

✅ a) Scatter plot

Q7. Clustering comes under:

a) Classification b) Unsupervised c) Regression d) Predictive analytics

✅ b) Unsupervised — no labels are used.

Q8. Polynomial linear regression does not offer better performance than multiple linear regression on a nonlinear dataset.

✅ False — a polynomial basis can fit curvature that a straight hyperplane cannot; that is precisely when it wins.

Q9. Which algorithm is unsupervised?

a) Logistic regression b) Linear regression c) None d) K-means clustering

✅ d) K-means

Q10. A programming approach where we must match a specific pattern:

a) Explicit b) Implicit c) Deterministic d) Non-deterministic

✅ a) Explicit programming — the rules are written by hand.

Q11. Gradient descent is:

a) A classification method b) A regression method c) An optimiser d) A loss function

✅ c) An optimiser — it minimises any differentiable objective (regression, classification, neural nets). Related: it is not tied to a task type, which is why (a) and (b) are both wrong.

Q12. Which statement is correct (SSE vs MSE for linear regression)?

a) Can't say b) SSE is better c) MSE is better d) Both equally good

✅ c) MSE is better — MSE = SSE/n, so it is normalised by sample size and comparable across dataset sizes. Caveat: SSE and MSE rank models identically; "better" only matters for comparability, not for the fitted coefficients.

Q13. The cut-off value in a classification problem is decided by the developer based on the application.

✅ True — the threshold trades precision against recall and should follow the error costs.

Q14. Regression is unsupervised and classification is supervised.

✅ False — both regression and classification are supervised. The split is by target type, not by supervision.

Q15. Which metric evaluates a model with a continuous output?

a) Squared error b) Accuracy c) AUC-ROC d) Recall

✅ a) Squared error

Q16. Accuracy is highest in classification with cut-off = 0.5.

✅ False — 0.5 is only the default; the optimal threshold depends on the class balance and error costs, and accuracy is a poor objective under imbalance.

Q17. Hold-out is a type of:

a) Training method b) ML method c) Data splitting method d) Data extraction e) Data transformation

✅ c) Data splitting

Q18. Linear regression is a supervised ML algorithm.

✅ True

Q19. An unsupervised algorithm cannot be applied if the dataset has a target variable.

✅ False — it can be applied; you simply ignore the target (e.g. clustering for segmentation or anomaly detection).

Q20. In supervised learning, the target can be:

a) Only numerical b) All c) Only nominal d) Only categorical

✅ b) All

Q21. A supervised algorithm cannot be applied if the target is missing.

✅ True — no labels ⇒ nothing to minimise the loss against; use unsupervised or semi-supervised instead.

Q22. Predicting whether a flight will be delayed:

a) Descriptive analytics b) Regression c) Unsupervised d) Classification

✅ d) Classification — the output is a binary category. (If you predicted the number of minutes, it would be regression.)

Q23. Unlabelled data is used in:

a) Supervised b) Training c) Unsupervised d) Preprocessing

✅ c) Unsupervised learning (also in pretraining and semi-supervised settings, but c is the direct answer).

Q24. In simple linear regression, if the input changes by 1 unit, the output changes by:

a) Its slope (coefficient) b) The intercept c) No change d) 1

✅ a) The slope — dy/dx = w. The intercept sets the level, not the sensitivity.

Q25. Which statement is correct (comparing model families)?

a) Can't say b) Multiple regression is better than logistic c) Polynomial is better than logistic d) Logistic is better than polynomial

✅ a) Can't say — the families solve different problems (continuous vs categorical target) and cannot be ranked without data and task.