QuizzesVector Operations & the Dot Product — Concept Check
intermediate
math-for-ai

Vector Operations & the Dot Product — Concept Check

Questions on Vector Operations & the Dot Product. The dot product multiplies two vectors into a single number that measures how much they point the same way — the core operation behind similarity search, attention, and every neuron.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Vector Operations & the Dot Product — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.You have two vectors, A and B. If their dot product is zero, what does this imply about the vectors?

    • AThey are perpendicular to each other.
    • BOne of the vectors is a zero vector.
    • CThey have different magnitudes.
    • DThey are parallel to each other.
  2. 2.In a machine learning model, the dot product of input vectors with weights is consistently negative. What does this indicate about the input vectors?

    • AThe vectors are perpendicular to the weights.
    • BThe input vectors have zero magnitude.
    • CThey are perfectly aligned with the weights.
    • DThey are mostly aligned in opposite directions to the weights.
  3. 3.When calculating cosine similarity, why is it important to divide the dot product by the vectors' lengths?

    • ATo ensure the vectors are normalized.
    • BTo ensure the result is within the range [-1, 1].
    • CTo make the dot product calculation faster.
    • DTo increase the magnitude of the dot product.
  4. 4.A document retrieval system uses cosine similarity to rank documents. If a document has a cosine similarity of 0 with a query, what does this mean?

    • AThe document is identical to the query.
    • BThe document is similar in meaning to the query.
    • CThe document is opposite in meaning to the query.
    • DThe document is unrelated to the query.
  5. 5.You computed the dot product of two vectors using NumPy's '@' operator and obtained a large positive number. What does this suggest about the vectors?

    • AThey are perpendicular to each other.
    • BThey have different magnitudes.
    • CThey are closely aligned in the same direction.
    • DOne of the vectors is a zero vector.
  6. 6.In a vector database, why might cosine similarity be preferred over the raw dot product for similarity search?

    • ACosine similarity is faster to compute.
    • BCosine similarity is easier to understand.
    • CCosine similarity provides a larger range of values.
    • DCosine similarity ignores magnitude, focusing on direction.
  7. 7.A neural network layer computes the dot product of inputs with weights. What is the significance of this operation?

    • AIt normalizes the inputs.
    • BIt scales the inputs to a fixed range.
    • CIt ensures the inputs are orthogonal.
    • DIt measures the alignment between inputs and weights.
  8. 8.If two vectors have a cosine similarity of -1, what can be inferred about their relationship?

    • AThey are identical in direction.
    • BOne of the vectors is a zero vector.
    • CThey are unrelated to each other.
    • DThey are pointing in exactly opposite directions.