0
0
Intro to Computingfundamentals~10 mins

Arrays and lists in Intro to Computing - Draw & Build Visually

Choose your learning style9 modes available
Draw This - beginner

Draw a diagram showing an array of 5 numbers: [10, 20, 30, 40, 50]. Label each element with its index (0 to 4).

5 minutes
Hint 1
Hint 2
Hint 3
Grading Criteria
Diagram shows 5 boxes in a row
Each box contains one number from the list
Indexes labeled from 0 to 4 below the boxes
Boxes are connected in a single horizontal line
Solution
  +-----+-----+-----+-----+-----+
  | 10  | 20  | 30  | 40  | 50  |
  +-----+-----+-----+-----+-----+
    0     1     2     3     4  

This diagram shows an array as a row of boxes. Each box holds one number from the list.

The numbers are 10, 20, 30, 40, and 50.

Below each box is its index, starting from 0 on the left to 4 on the right.

This helps us find values quickly by their position.

Variations - 2 Challenges
[beginner] Draw a diagram showing a list of 4 fruits: ["apple", "banana", "cherry", "date"]. Label each element with its position starting at 1.
[intermediate] Draw a diagram showing an array of 6 numbers: [5, 15, 25, 35, 45, 55]. Label each element with its index (0 to 5) and show how to access the element at index 3.