chapter

    Unit 2 — Machine Learning Practice Questions for Gate Da

    GATE DA Unit 2 — Machine Learning: 3 chapters, 30 practice questions and one solved question from each chapter.

    A question from this chapter

    Question 1
    Level 4: Challenger

    Consider a hard-margin SVM trained on the following 2D dataset with labels :

    The optimal decision boundary is , with weight vector and bias .

    Which of the following statements are correct?

    Question 2
    Level 4: Challenger

    Consider a regression dataset with a single feature (no intercept term) and three observations:

    The ridge regression coefficient with regularization parameter is computed using the closed-form solution

    What is the value of ?

    Question 3
    Level 4: Challenger

    Consider the Lasso regression problem , where and . What is the minimum value of the regularization parameter for which the optimal coefficient is exactly zero?

    Free preview ends here

    Login to view the complete practice questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Unit 2 — Machine Learning Practice Questions for GATE DA

    GATE DA Unit 2 — Machine Learning: 3 chapters, 30 practice questions and one solved question from each chapter.

    About Unit 2 — Machine Learning Practice Questions

    30 practice questions for Unit 2 — Machine Learning in GATE DA, sorted chapter by chapter and graded from basic to exam level, each with a full solution.

    Unit 2 — Machine Learning Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Chapter 1 — Unit 2 — Machine Learning00%10
    Chapter 2 — Unit 2 — Machine Learning00%10
    Chapter 3 — Unit 2 — Machine Learning00%10

    More from Machine Learning

    One Solved Question from Each Unit 2 — Machine Learning Chapter

    Question 1 · Chapter 1 — Unit 2 — Machine Learning MSQ

    Consider a hard-margin SVM trained on the following 2D dataset with labels :

    The optimal decision boundary is , with weight vector and bias .

    Which of the following statements are correct?

    1. A.

      The margin width is $2$.

    2. B.

      The support vectors are and .

    3. C.

      The geometric margin (distance from any support vector to the decision boundary) is $1$.

    4. D.

      The functional margin of is $2$.

    Correct Answer:

    ["A","B","C","D"]

    Step-by-Step Solution

    Key idea: this is a direct formula application for SVM geometry. You can recognise it from the explicit mention of the decision boundary, weight vector, and the request to identify support vectors and compute margins.

    Insight: the margin width is , support vectors satisfy , and the functional margin of a point is .

    Exam route (fastest legal path):

    1. Margin width .
    2. Check each point:
    • : . Support vector.
    • : . Not a support vector.
    • : . Support vector.
    • : . Support vector.
    1. Geometric margin .
    2. Functional margin of (computed in step 2).

    Learning route (full justification):

    Step 1: The margin width is the distance between the two supporting hyperplanes . This distance is .

    Step 2: A point is a support vector if it lies exactly on one of the supporting hyperplanes, i.e., .

    Step 3: The geometric margin is the distance from a support vector to the decision boundary, which is .

    Step 4: The functional margin of any point is , which measures how confidently the point is classified.

    The tempting wrong path: a student might use the wrong formula for the margin width, computing instead of . This would lead to rejecting option A. Another mistake is to think that all points with are support vectors, when only those with equality are. This would incorrectly include . The break is at Step 2, where the tight constraint must be checked.

    Generalisation: for a linear SVM, the margin width is always , and only points that satisfy the constraint with equality are support vectors. Points with functional margin are correctly classified but not on the margin boundary.

    Verification: check that all points satisfy : , , , . All , so the solution is feasible. The margin width $2$ is consistent with the distance between and .

    Answer: A, B, C, D.

    Question 2 · Chapter 2 — Unit 2 — Machine Learning MCQ

    Consider a regression dataset with a single feature (no intercept term) and three observations:

    The ridge regression coefficient with regularization parameter is computed using the closed-form solution

    What is the value of ?

    1. A.

      0.50

    2. B.

      1.00

    3. C.

      2.00

    4. D.

      3.00

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a direct-application ridge regression question. With a single feature and no intercept, is a column vector, so is a scalar and the formula reduces to .

    Step 1: Form and .

    Step 2: Compute .

    Step 3: Compute .

    Step 4: Apply the ridge formula: .

    Answer: 1.00 (Option B).

    Question 3 · Chapter 3 — Unit 2 — Machine Learning MCQ

    Consider the Lasso regression problem , where and . What is the minimum value of the regularization parameter for which the optimal coefficient is exactly zero?

    1. A.

      4

    2. B.

      8

    3. C.

      16

    4. D.

      24

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The Lasso objective is . The optimal if and only if $0$ is in the subdifferential of at . This gives a condition on based on the gradient of the smooth part.

    Step 1: The smooth part is . Its gradient is .

    Step 2: At , .

    Step 3: The subdifferential of the non-smooth part at is .

    Step 4: The optimality condition for is .

    Step 5: This requires . The minimum value of is 8.

    Answer: 8.