Skip to main content
Module 4 · Manhattan Navigation

Lesson 2 · Tuples — Knowledge Checks

Name Date
  1. Given position = (3, 5), what does position[0] return?

    1. A.5
    2. B.3
    3. C.(3, 5)
    4. D.An error

    Answer Why?

  2. What happens when you run position[0] = 5 on a tuple?

    1. A.The row changes to 5
    2. B.You get a TypeError — tuples cannot be modified
    3. C.It creates a new tuple automatically
    4. D.Nothing happens

    Answer Why?

  3. Does (1, 4) == (4, 1) evaluate to True?

    1. A.Yes — they contain the same numbers
    2. B.No — the parts must match in order, and these are swapped
    3. C.Yes — tuples ignore order
    4. D.It causes an error

    Answer Why?

  4. Using this method, what's the Manhattan distance from (1, 1) to (4, 3)?

    1. A.7
    2. B.5
    3. C.3
    4. D.2

    Answer Why?