MauryaHub PYQ Practice

Machine Learning Foundations · Quiz 1 · Jan 2026

Machine Learning Foundations · Quiz 1 · Jan 2026

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

16 / 16 published solutions

Question 2 MCQ · 2.0 marks

Let the vectors
Source diagram or notation
be orthogonal. Which of the following must be true?
6406536344498.Source diagram or notation
6406536344499.Source diagram or notation
6406536344500.Source diagram or notation
6406536344501.Source diagram or notation

Published solution

**1. Apply orthogonality:** For real vectors, orthogonality means their dot product is zero. Here \((1,a,2)\cdot(2,-1,b)=2-a+2b\). **2. Rearrange:** \(2-a+2b=0\) gives \(a-2b=2\). This condition is both necessary and sufficient for these two vectors to be orthogonal. **Answer: A — a-2b=2.** A: **Correct:** It is the rearranged zero-dot-product equation. B: **Incorrect:** It gives \(a-2b=-2\), the wrong sign. C: **Incorrect:** It also gives \(a-2b=-2\). D: **Incorrect:** It would leave the dot product equal to 2, not zero.

Report a correction for Q2

Question 3 MCQ · 2.0 marks

Consider the function
Source diagram or notation
:
Source diagram or notation
Which of the following is true?
6406536344513.Source diagram or notation
is continuous at
Source diagram or notation
, but not differentiable at
Source diagram or notation
.
6406536344514.Source diagram or notation
is both continuous and differentiable at
Source diagram or notation
.
6406536344515.Source diagram or notation
is neither continuous nor differentiable at
Source diagram or notation
.
6406536344516.Source diagram or notation
is differentiable at
Source diagram or notation
, but not continuous at
Source diagram or notation
.

Published solution

**1. Check continuity at the joining point:** For \(x\le1\), \(f(x)=x^2+2\); for \(x>1\), \(f(x)=x+2\). Both one-sided limits at 1 equal 3, and \(f(1)=3\). Thus the function is continuous there. **2. Compare one-sided derivatives:** The left derivative is \(2x|_{x=1}=2\), while the right derivative is 1. Since these differ, the derivative at 1 does not exist. **Answer: A — continuous but not differentiable at x=1.** A: **Correct:** The values match but the one-sided slopes differ. B: **Incorrect:** The slopes 2 and 1 prevent differentiability. C: **Incorrect:** Both limits equal the function value, so continuity does hold. D: **Incorrect:** Differentiability implies continuity; moreover the derivative here does not exist.

Report a correction for Q3

Question 4 MCQ · 3.0 marks

Consider the following matrices:
Source diagram or notation
Which of the following is true?
6406536344502.Source diagram or notation
is diagonalizable,
Source diagram or notation
is not diagonalizable.
6406536344503.Source diagram or notation
is not diagonalizable,
Source diagram or notation
is diagonalizable.
6406536344504.
Both
Source diagram or notation
and
Source diagram or notation
are diagonalizable.
6406536344505.
Neither
Source diagram or notation
nor
Source diagram or notation
is diagonalizable

Published solution

**1. Examine the Jordan block:** \(A=\begin{pmatrix}1&1\\0&1\end{pmatrix}\) has eigenvalue 1 twice, but \((A-I)v=0\) forces the second coordinate to zero. Its eigenspace has dimension one, so it lacks two independent eigenvectors. **2. Examine the second matrix:** \(B=\begin{pmatrix}2&0&0\\0&0&1\\0&1&0\end{pmatrix}\) is real symmetric. More explicitly its eigenpairs include \(2,(1,0,0)\); \(1,(0,1,1)\); and \(-1,(0,1,-1)\). These three independent eigenvectors give a diagonalization. **Answer: B — A is not diagonalizable; B is diagonalizable.** A: **Incorrect:** It reverses both classifications. B: **Correct:** A is defective, whereas B has a complete eigenbasis. C: **Incorrect:** A has only one independent eigenvector. D: **Incorrect:** B is diagonalizable, so this rejects too much.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

Consider a dataset
Source diagram or notation
for a regression problem where each element is of the form
Source diagram or notation
, for
Source diagram or notation
.
Source diagram or notation
is the feature and
Source diagram or notation
is the label of the
Source diagram or notation
data-point.
Source diagram or notation
Let
Source diagram or notation
be two regression models such that:
Source diagram or notation
Which of the following options is correct?
6406536344506.Source diagram or notation
has the lower mean squared loss.
6406536344507.Source diagram or notation
has the lower mean squared loss.
6406536344508.
Both models have same mean squared loss.

Published solution

**1. Evaluate both models:** For inputs 1, 2, 3, the labels are 1, 4, 7. Model \(f_1(x)=2x-1\) predicts 1, 3, 5; \(f_2(x)=3x-2\) predicts 1, 4, 7. **2. Average the squared errors:** \(L_1=(0^2+(-1)^2+(-2)^2)/3=5/3\), while \(L_2=0\). Therefore the second model has lower mean squared loss. **Answer: B — f₂ has the lower mean squared loss.** A: **Incorrect:** Its mean squared loss is \(5/3>0\). B: **Correct:** It exactly matches all three labels, giving zero loss. C: **Incorrect:** Their losses are unequal.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Which of the following is a basis for the column space of the matrix
Source diagram or notation
given below?
Source diagram or notation
6406536344509.Source diagram or notation
6406536344510.Source diagram or notation
6406536344511.Source diagram or notation
6406536344512.Source diagram or notation

Published solution

**1. Find the column dependency:** The columns are \(c_1=(1,2,1)^T\), \(c_2=(1,-1,0)^T\), \(c_3=(2,1,1)^T\). Since \(c_3=c_1+c_2\), the first two columns span the column space. **2. Prove independence and reject other candidates:** If \(\alpha c_1+\beta c_2=0\), the third coordinate gives \(\alpha=0\), then \(\beta=0\). Thus the space has dimension two. Every vector in it satisfies \(y=3z-x\); this also tests proposed vectors outside the space. **Answer: A — {(1,2,1), (1,-1,0)}.** A: **Correct:** It gives the two independent spanning columns. B: **Incorrect:** \((1,0,0)\) fails \(y=3z-x\), so the pair is not in the column space. C: **Incorrect:** It includes the dependent third column, so it is a spanning set but not a basis. D: **Incorrect:** \((1,3,2)\) fails \(3=3(2)-1\); it is outside the space.

Report a correction for Q6

Question 7 MSQ · 3.0 marks

Source diagram or notation
The matrix has eigenvalues
Source diagram or notation
and
Source diagram or notation
. Which of the following options is/are correct?
6406536344517.Source diagram or notation
6406536344518.Source diagram or notation
6406536344519.Source diagram or notation
6406536344520.Source diagram or notation

Published solution

**1. Use trace:** The sum of eigenvalues is the trace, so \(m+n=0+3=3\). **2. Use determinant:** For \(P=\begin{pmatrix}m&2\\1&n\end{pmatrix}\), \(\det P=mn-2=0(3)=0\). Thus \(mn=2\). The parameters are consequently 1 and 2, in either order. **Answer: B, C — B and C — mn=2 and m+n=3.** A: **Incorrect:** The determinant condition requires \(mn=2\), not zero. B: **Correct:** It follows from \(mn-2=0\). C: **Correct:** It is the trace equation. D: **Incorrect:** The eigenvalue sum is 3, not 2.

Report a correction for Q7

Question 8 MSQ · 3.0 marks

Which of the following is/are true?
6406536344521.
If
Source diagram or notation
and
Source diagram or notation
are matrices of the same size, then
Source diagram or notation
.
6406536344522.
The rank of a matrix is equal to the number of non-zero rows in it.
6406536344523.
If
Source diagram or notation
is a matrix which is obtained by permuting the rows of the
Source diagram or notation
identity matrix, then the rank of
Source diagram or notation
is
Source diagram or notation
.
6406536344524.
If
Source diagram or notation
is a non-zero column vector in
Source diagram or notation
, then the rank of the matrix
Source diagram or notation
is
Source diagram or notation
.

Published solution

**1. Test the claimed rank formulas:** Rank is subadditive, not generally additive. For \(A=I,B=-I\), \(\operatorname{rank}(A+B)=0\). Counting nonzero rows works after echelon reduction, not for an arbitrary matrix: \(\begin{pmatrix}1&0\\1&0\end{pmatrix}\) has two nonzero rows but rank one. **2. Establish the two valid claims:** Row permutations are invertible operations, so a permuted \(I_5\) retains rank five. For nonzero real \(u\), every column of \(uu^T\) is a multiple of \(u\), and at least one is nonzero, giving rank one. **Answer: C, D — C and D.** A: **Incorrect:** Cancellation can reduce the rank of a sum. B: **Incorrect:** Nonzero rows can be dependent unless the matrix is in an appropriate echelon form. C: **Correct:** Permuting identity rows preserves full rank. D: **Correct:** A nonzero real outer product has a one-dimensional column space.

Report a correction for Q8

Question 9 MSQ · 3.0 marks

Let
Source diagram or notation
and
Source diagram or notation
be two lines in
Source diagram or notation
defined in parametric form:
Source diagram or notation
For example, every point on line
Source diagram or notation
is of the form
Source diagram or notation
. Which of the following is/are true?
6406536344525.Source diagram or notation
and
Source diagram or notation
are parallel
6406536344526.Source diagram or notation
and
Source diagram or notation
are not parallel
6406536344527.Source diagram or notation
and
Source diagram or notation
intersect at a point
6406536344528.Source diagram or notation
and
Source diagram or notation
do not intersect at any point

Published solution

**1. Compare direction vectors:** The directions \((4,-4,5)\) and \((8,-3,1)\) are not scalar multiples, so the lines are not parallel. **2. Solve the first two coordinate equations:** Intersection would require \(4t-8s=1\) and \(-4t+3s=-1\). Adding gives \(s=0\), then \(t=1/4\). **3. Check the third coordinate:** On the first line, \(z=-1+5/4=1/4\); on the second, \(z=5\). They do not match, so the lines do not meet. They are skew. **Answer: B, D — B and D — nonparallel and nonintersecting.** A: **Incorrect:** Their direction vectors are not proportional. B: **Correct:** The directions fail the proportionality test. C: **Incorrect:** The only parameters satisfying x and y fail the z equation. D: **Correct:** There is no common point after all three coordinates are checked.

Report a correction for Q9

Question 10 MSQ · 3.0 marks

Which of the following is/are true ?
6406536344533.
Every square matrix with real entries has at least one real eigenvalue.
6406536344534.
A set of two eigenvectors corresponding to the same eigenvalue of a square matrix must be linearly dependent.
6406536344535.
Given a square matrix of order
Source diagram or notation
, the set of all eigenvectors for an eigenvalue
Source diagram or notation
, along with the zero vector, forms a subspace of
Source diagram or notation
.
6406536344536.
A square matrix is not invertible if and only if
Source diagram or notation
is one of its eigenvalues.

Published solution

**1. Use counterexamples for A and B:** The real rotation matrix \(\begin{pmatrix}0&-1\\1&0\end{pmatrix}\) has only the nonreal eigenvalues \(\pm i\). For \(I_2\), the independent vectors \(e_1,e_2\) share eigenvalue 1. Thus A and B are false. **2. Identify the eigenspace:** Eigenvectors for a real eigenvalue \(\lambda\), together with zero, form \(\ker(A-\lambda I)\), a subspace. Finally, \(A\) is singular exactly when \(Av=0\) has a nonzero solution, which is precisely the eigenvalue-zero condition. **Answer: C, D — C and D.** **Convention note:** C uses the usual real-vector-space setting and a real eigenvalue. For complex eigenvalues/eigenvectors, the corresponding eigenspace is considered over the complex field instead. A: **Incorrect:** Even-order real matrices can have only nonreal conjugate eigenvalues. B: **Incorrect:** An eigenspace can have dimension greater than one. C: **Correct:** The set including zero is the nullspace of a linear map. D: **Correct:** A nontrivial null vector is an eigenvector for eigenvalue zero.

Report a correction for Q10

Question 11 MSQ · 2.0 marks

Suppose you are building a credit card fraud detection system and have two approaches: (i) Manually writing rules such as "If transaction amount is above Rs. 50,000 and the location is overseas, mark it as fraud.” (ii) Training a model using millions of past transactions labeled as fraud or not fraud. Which of the following options is/are correct?
6406536344529.
Approach (i) is not machine learning.
6406536344530.
Approach (ii) is machine learning.
6406536344531.
Both approaches are machine learning.
6406536344532.
Neither approach is machine learning.

Published solution

**1. Distinguish rules from learning:** A programmer-specified fraud threshold is an explicit decision rule. Its parameters are not being learned from examples in the described approach. **2. Identify supervised learning:** Training on historical transactions with fraud/not-fraud labels learns a decision function from labeled examples. Therefore (i) is not machine learning as described, while (ii) is supervised machine learning. **Answer: A, B — Approach (i) is not machine learning.; Approach (ii) is machine learning..** A: **Correct:** The decision rule is manually specified rather than learned. B: **Correct:** The model learns a classification rule from labeled transactions. C: **Incorrect:** It incorrectly treats the manual rule as a learning procedure. D: **Incorrect:** It incorrectly excludes the explicitly trained model.

Report a correction for Q11

Question 12 NAT · 2.0 marks

Source diagram or notation
Consider the function
Source diagram or notation
given by . If the best linear approximation to
Source diagram or notation
at
Source diagram or notation
is given as
Source diagram or notation
, find
Source diagram or notation
. Your answer should be an integer.

Published solution

**1. Write the tangent approximation:** At \(x_0=0\), \(h(x)=f(0)+f^{\prime}(0)x\). Here \(f(x)=(1+2x)^{-5}\), so \(f(0)=1\). **2. Differentiate using the chain rule:** \(f^{\prime}(x)=-10(1+2x)^{-6}\), hence \(f^{\prime}(0)=-10\). Thus \(a=1,b=-10\), and \(a-b=1-(-10)=11\). **Answer: 11.**

Report a correction for Q12

Question 13 NAT · 3.0 marks

Find the directional derivative of the function
Source diagram or notation
given by
Source diagram or notation
at the point
Source diagram or notation
Source diagram or notation
in the direction of the vector . Your answer should be an integer.

Published solution

**1. Compute the gradient:** For \(f=x^2y-yz^3+z\), \[\nabla f=(2xy,\ x^2-z^3,\ 1-3yz^2).\] At \((1,-2,0)\), this is \((-4,1,1)\). **2. Check and use the direction:** \(u=(-2,-1,2)/3\) has norm one. The directional derivative is \[D_uf=\nabla f\cdot u=\frac{8-1+2}{3}=3.\] **Answer: 3.**

Report a correction for Q13

Question 14 NAT · 3.0 marks

Source diagram or notation
Let be the projection matrix that projects vectors in
Source diagram or notation
onto the line
Source diagram or notation
.
Source diagram or notation
Let be the matrix that projects vectors in
Source diagram or notation
onto the nullspace of
Source diagram or notation
. Based on the above data, answer the given subquestions.
Find
Source diagram or notation
. Your answer should be an integer.

Published solution

**1. Identify a spanning direction:** The line \(y=3x\) is spanned by \(v=(1,3)^T\). Its orthogonal projection matrix is \[P=\frac{vv^T}{v^Tv}=\frac1{10}\begin{pmatrix}1&3\\3&9\end{pmatrix}.\] **2. Sum the entries:** \(a+b+c+d=(1+3+3+9)/10=16/10\). Therefore \(10(a+b+c+d)=16\). **Answer: 16.**

Report a correction for Q14

Question 15 NAT · 1.0 marks

Source diagram or notation
Let be the projection matrix that projects vectors in
Source diagram or notation
onto the line
Source diagram or notation
.
Source diagram or notation
Let be the matrix that projects vectors in
Source diagram or notation
onto the nullspace of
Source diagram or notation
. Based on the above data, answer the given subquestions.
Find
Source diagram or notation
. Your answer should be an integer.

Published solution

**1. Project onto the complementary subspace:** For an orthogonal projector \(P\), its nullspace is orthogonal to its image. Thus the orthogonal projector onto \(\ker P\) is \(A=I-P\). With \(P=\frac1{10}\begin{pmatrix}1&3\\3&9\end{pmatrix}\), \[A=\frac1{10}\begin{pmatrix}9&-3\\-3&1\end{pmatrix}.\] **2. Evaluate the required sum:** \(10(e+f+g+h)=9-3-3+1=4\). The negative off-diagonal entries are essential. **Answer: 4.**

Report a correction for Q15

Question 16 NAT · 2.0 marks

Consider the matrix
Source diagram or notation
given below:
Source diagram or notation
Based on the above data, answer the given subquestions.
If
Source diagram or notation
is the smallest eigenvalue of
Source diagram or notation
, enter the value of
Source diagram or notation
. Your answer should be an integer.

Published solution

**1. Form the characteristic polynomial:** For \(A=\begin{pmatrix}1&5\\4&2\end{pmatrix}\), \[\det(A-\lambda I)=(1-\lambda)(2-\lambda)-20=\lambda^2-3\lambda-18.\] **2. Factor and order the roots:** \((\lambda-6)(\lambda+3)=0\), so the eigenvalues are 6 and \(-3\). The smallest is \(-3\). **Answer: -3.**

Report a correction for Q16

Question 17 NAT · 2.0 marks

Consider the matrix
Source diagram or notation
given below:
Source diagram or notation
Based on the above data, answer the given subquestions.
If
Source diagram or notation
is an eigenvector of
Source diagram or notation
corresponding to
Source diagram or notation
, find
Source diagram or notation
. Enter your answer correct to two decimal places.

Published solution

**1. Identify the eigenvalue:** \(\det(A-\lambda I)=(\lambda-6)(\lambda+3)\), so the smallest eigenvalue is \(-3\). **2. Apply the eigenvector equation:** With \(v=(a,-1)^T\), \(Av=(a-5,4a-2)^T=-3(a,-1)^T\). The first coordinate gives \(a-5=-3a\), hence \(a=5/4=1.25\). **3. Verify the remaining coordinate:** \(4(5/4)-2=3\), as required by \(-3(-1)=3\). **Answer: 1.25.**

Report a correction for Q17