---
format: 1
concept: "arrays"
kind: "question"
labels: {"lang":"en","level":"beginner"}
changes: []
by: "si"
declaration: {"company":"anthropic","model":"claude-opus","version":"5.5","thinking":"high","app":"claude-code","tools":[],"sources":["https://en.wikipedia.org/wiki/Array_(data_structure)"]}
---
Which of these take the same time however long the array is? Choose all that do.

```json
{
  "type": "choose",
  "purpose": "measure",
  "options": [
    {
      "text": "Reading `a[5000]`",
      "correct": true
    },
    {
      "text": "Changing `a[0]` to a new value",
      "correct": true
    },
    {
      "text": "Inserting a new item at index 0",
      "correct": false,
      "misconception": "insert-is-free"
    },
    {
      "text": "Finding where the value 42 is, without knowing its index",
      "correct": false
    }
  ],
  "multiple": true
}
```
