Lesson 4.2.8.1

4.2.8.1 Vectors and vector operations Quiz: AQA Computer Science, Unit 2

20 questions

In partnership with Revision Ninja

Lesson 4.2.8.1, Vectors and vector operations: 20 multiple choice questions for the AQA Computer Science (7517), Unit 2: Fundamentals of data structures, written with Revision Ninja.

Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.

Host this setFree Play

The 20 questions

  1. What mathematical notation represents a 4-vector over the set of real numbers?

    • ℝ⁴
    • 4ℝ
    • ℝ × 4
    • ℝ + 4
  2. In a function representation of a vector, what does mapping index 1 to 3.14159 mean?

    • Value at index 0
    • Value at index 1
    • Dimension count
    • Vector length
  3. Which Python list correctly represents the 2-vector over the reals with entries 2.0 and 3.0?

    • 2.0 & 3.0
    • (2.0 3.0)
    • {2.0: 3.0}
    • [2.0, 3.0]
  4. In the function representation of a vector f: S → ℝ, what is the co-domain?

    • Set of reals
    • Set of integers
    • Domain set
    • Index set
  5. Geometrically, what operation does adding two vectors together achieve?

    • Reflection
    • Scaling
    • Rotation
    • Translation
  6. Geometrically, what operation does multiplying a vector by a scalar achieve?

    • Rotation
    • Translation
    • Reflection
    • Scaling
  7. For vectors u = [u1, ..., un] and v = [v1, ..., vn], which expression is the dot product?

    • u1v1 x u2v2 x ... x unvn
    • u1v1 + u2v2 + ... + unvn
    • u1 + v1 + ... + un + vn
    • (u1+v1)(u2+v2)...(un+vn)
  8. What is the dot product of [1, 2, 3] and [4, 5, 6]?

    • 27
    • 15
    • 21
    • 32
  9. What is the dot product of [3, 0] and [0, 4]?

    • 7
    • 0
    • -12
    • 12
  10. What is the angle between the vectors [1, 1] and [1, 0]?

    • 90 degrees
    • 30 degrees
    • 45 degrees
    • 60 degrees
  11. With alpha = 0.25 and beta = 0.75, what is the convex combination alpha u + beta v for u = [0, 0] and v = [4, 8]?

    • [3, 6]
    • [2, 4]
    • [4, 8]
    • [1, 2]
  12. Which pair (alpha, beta) gives a valid convex combination alpha u + beta v?

    • (0.3, 0.7)
    • (-0.2, 1.2)
    • (0.5, 0.6)
    • (1, 1)
  13. How is the vector [2, 3] represented as a dictionary in the spec's index-to-value form?

    • {2: 0, 3: 1}
    • {'x': 2, 'y': 3}
    • [0: 2, 1: 3]
    • {0: 2, 1: 3}
  14. A 2-vector [2.0, 3.0] is drawn as an arrow with its tail at the origin. Where is the head?

    • (0.0, 0.0)
    • (2.0, 3.0)
    • (5.0, 5.0)
    • (3.0, 2.0)
  15. If the dot product of two non-zero vectors is negative, what type of angle is between them?

    • Acute
    • Obtuse
    • Right angle
    • Reflex
  16. What is the angle between u = [3, 4] and v = [4, 3], to one decimal place?

    • About 53.1 degrees
    • About 16.3 degrees
    • About 74.0 degrees
    • About 37.0 degrees
  17. Let u = [0, 0] and v = [10, 0]. Which point is alpha u + beta v with alpha = 0.2 and beta = 0.8?

    • [10, 0]
    • [0.2, 0]
    • [8, 0]
    • [2, 0]
  18. Compute a + b and then multiply the result by 2, where a = [1, 2] and b = [3, -1].

    • [8, -2]
    • [4, 2]
    • [10, 4]
    • [8, 2]
  19. When representing a vector as a dictionary, what must all values belong to?

    • The same key
    • A binary tree
    • Different data types
    • The same field
  20. Which pair of vectors is orthogonal?

    • [1, 1] and [1, 1]
    • [1, 2] and [2, 1]
    • [3, 0] and [1, 1]
    • [1, -2] and [2, 1]

All AQA Computer Science quizzes