Maths & statistics quiz

Linear Algebra Quiz: Vectors, Matrices, Eigenvalues and Transformations

Test your linear algebra: vectors and norms, dot products and projections, matrix types and multiplication, systems of equations and rank, determinants and inverses, vector spaces and independence, linear transformations, eigenvalues and applications such as PCA and embeddings.

✅ Free · no login60 questions⏱ Timer📝 Explanations🖨 Mark sheet & PDFBeginner to advanced
Linear Algebra Quiz: free online quiz with timer and mark sheet by Codanics
Loading…

Linear Algebra Quiz

60 questions · 8 topics · timer · instant explanations · printable mark sheet.

  • Questions60 in the bank, 10–30 per attempt
  • Levels20 easy · 24 medium · 16 hard
  • TimeAbout 5–20 minutes
  • PriceFree, no login needed
  • Made byDr. Aammar Tufail, Codanics
  • Updated18 November 2026

In short: the Linear Algebra Quiz is a free online multiple-choice quiz by Codanics with 60 questions on vectors and dot products; matrix types and operations; systems of linear equations; determinants and inverses; vector spaces and rank; linear transformations; eigenvalues and eigenvectors; and data science applications. You choose the number of questions and the difficulty, answer against a timer, see an explanation after every answer and finish with a printable mark sheet.

🚀 Follow Codanics for more free quizzes and lessonsNew quizzes, free lessons, scholarships and PhD positions, straight to your phone.

What the Linear Algebra Quiz covers

Linear algebra is the language of machine learning: data are matrices, embeddings are vectors and PCA is an eigenvalue problem. Understanding it makes models less of a black box.

This quiz follows the Codanics linear algebra, vectors, matrices and linear transformation guides, with every numeric answer checked by computation.

  • Vectors and dot products 9 questions
  • Matrix types and operations 8 questions
  • Systems of linear equations 7 questions
  • Determinants and inverses 7 questions
  • Vector spaces and rank 7 questions
  • Linear transformations 7 questions
  • Eigenvalues and eigenvectors 7 questions
  • Data science applications 8 questions

Who it is for: Data science, AI and engineering students who want the maths behind machine learning, and anyone revising linear algebra for exams.

How the quiz works

  1. Type your name if you want it printed on the mark sheet (optional; it never leaves your browser).
  2. Choose 10, 20 or 30 questions, a difficulty (Easy, Mixed or Hard) and the timer: Standard, Relaxed or none.
  3. Answer each question before the timer runs out. Press A–D or 1–4 on a keyboard, or tap an option on your phone.
  4. Read the explanation after every answer, then press Next.
  5. At the end, get your score, grade, topic-wise breakdown and a full answer review. Print it or save it as a PDF.
  6. Retake the quiz for a fresh random set, or practise only the topics you found hard.

Free video lessons from Codanics

Score lower than you hoped? These free lessons from the Codanics YouTube channel cover the same topics, explained step by step.

▶ Full playlist: Linear algebra for data science and ML
Free on the Codanics YouTube channel, taught in Urdu/Hindi.

Sample questions with answers

Here are 9 questions from the bank, with answers and explanations. The quiz above draws from all 60.

1. What is a unit vector?
  1. A vector whose components are all equal to 1
  2. A vector with exactly one non-zero component
  3. A vector that always points along the x-axis
  4. A vector whose length (L2 norm) is 1

Answer: D. A vector whose length (L2 norm) is 1
A unit vector has magnitude 1 and is used to describe a direction only. [1, 1] has all ones but its length is √2, so it is not a unit vector.

2. What does this code print? (a = np.array([3, 4]))
import numpy as np
a = np.array([3, 4])
b = np.array([4, 3])
cos = a @ b / (np.linalg.norm(a) * np.linalg.norm(b))
print(round(cos, 2))
  1. 0.96
  2. 24
  3. 1.0
  4. 0.75

Answer: A. 0.96
It computes cosine similarity: a·b = 12 + 12 = 24 and both norms are 5, so 24 / 25 = 0.96. The vectors point in similar but not identical directions.

3. What is a symmetric matrix?
  1. A matrix whose diagonal entries are all 1
  2. A matrix whose determinant is zero
  3. A square matrix equal to its own transpose
  4. Any matrix with as many rows as columns

Answer: C. A square matrix equal to its own transpose
A is symmetric when A = Aᵀ, i.e. a_ij = a_ji. Covariance and correlation matrices are always symmetric.

4. How many solutions can a system of linear equations have?
  1. Exactly one or none, never more
  2. Any finite number, such as 2 or 3
  3. Always at least one solution
  4. Exactly one, infinitely many, or none

Answer: D. Exactly one, infinitely many, or none
Lines or planes either meet at one point, coincide (infinitely many solutions) or never meet (no solution). A linear system can never have exactly 2 solutions.

5. Which 2 × 2 matrix is singular (has no inverse)?
  1. [[2, 4], [1, 3]]
  2. [[1, 0], [0, 1]]
  3. [[0, 1], [1, 0]]
  4. [[2, 4], [1, 2]]

Answer: D. [[2, 4], [1, 2]]
det([[2, 4], [1, 2]]) = 2·2 − 4·1 = 0, so it is singular: its second row is half the first. The others have determinants 2, 1 and −1.

6. What is a basis of a vector space?
  1. Any set of vectors that includes the zero vector
  2. The largest set of vectors you can list in the space
  3. A linearly independent set that spans the space
  4. Any set of vectors that are all unit length

Answer: C. A linearly independent set that spans the space
A basis has just enough vectors: they span the space and none is redundant. The number of basis vectors is the dimension of the space.

7. Which pair of conditions defines a linear transformation T?
  1. T(u + v) = T(u) + T(v) and T(cv) = cT(v)
  2. T(u + v) = T(u)T(v) and T(cv) = T(v)
  3. T(v) = v + c and T(0) = c
  4. T(u + v) = T(u) − T(v) and T(cv) = c + T(v)

Answer: A. T(u + v) = T(u) + T(v) and T(cv) = cT(v)
A linear transformation preserves vector addition (additivity) and scalar multiplication (homogeneity). Every such T on Rⁿ can be written as multiplication by a matrix.

8. Which equation gives the eigenvalues λ of a square matrix A?
  1. A − λ = 0
  2. det(A − λI) = 0
  3. det(A) = λ
  4. Aλ = I

Answer: B. det(A − λI) = 0
Av = λv with v ≠ 0 means (A − λI)v = 0 has a non-zero solution, which happens only when A − λI is singular, i.e. det(A − λI) = 0 (the characteristic equation).

9. In PCA, what does an eigenvalue of the covariance matrix represent?
  1. The variance of the data along that component
  2. The mean of the data along that component
  3. The number of features in the dataset
  4. The correlation between two original features

Answer: A. The variance of the data along that component
The eigenvectors of the covariance matrix give the principal directions, and each eigenvalue is the variance captured along its direction. Sorting eigenvalues ranks the components.

Free guides and blogs to study

Free tools for your studies and research

Codanics also has 160+ free online tools for students and researchers: statistics calculators, meta-analysis, PDF and writing tools. They run in your browser, with no login.

Browse all free tools →

Frequently asked questions

Is the Linear Algebra Quiz free?

Yes. The Linear Algebra Quiz is completely free, with no sign-up, no login and no limit on attempts.

How many questions are in the Linear Algebra Quiz?

The question bank has 60 multiple-choice questions (20 easy, 24 medium and 16 hard) across 8 topics. Each attempt draws 10, 20 or 30 of them at random, so every attempt is different.

How does the timer work?

Each question has its own countdown: about 25 seconds for easy, 40 for medium and 55 for hard questions, plus 15 seconds when there is code to read. Choose Relaxed to double the time or switch the timer off to study at your own pace. Unanswered questions count as skipped.

Can I get a certificate or mark sheet?

Yes. When you finish, you get a mark sheet with your name, score, grade, time, topic-wise performance and every answer explained. Use Print or save as PDF to keep it. It is a self-assessment result, not an official certificate.

Are the answers and explanations correct?

Every question was written and reviewed for one clearly correct answer, and code questions were checked by running the code. If you think an answer is wrong, tell us on the Codanics WhatsApp channel or in the YouTube comments and we will fix it.

Is this harder than the Mathematics for Data Science quiz?

It goes deeper into linear algebra only, with more questions on rank, independence, transformations and eigenvalues. Take the maths quiz first for a broad overview.

Do I need a calculator?

Most calculations are small enough to do by hand, such as 2×2 determinants and dot products.

Is my data stored anywhere?

No. The quiz runs entirely in your browser. Your name, answers and score are not uploaded. Your best score and settings are remembered only in this browser so you can track your progress.

More free quizzes

See all Codanics quizzes → · Courses · Free tools · Blog

Follow Codanics

Created by Dr. Muhammad Aammar Tufail, Codanics. Published 18 November 2026, last updated 18 November 2026. Found a mistake or want a quiz on another topic? Tell us on the WhatsApp channel or contact us.