Array Index Quiz


What is an array index?

Show Answer

What is the index of the first item in an array?

Show Answer

Given our_array = [1, 2, 3, 4, 5], what will the following return?

our_array[0]
our_array[3]
our_array[-1]
our_array[16]

Show Answer

Given our_array = ["a", "b", "c"], how would you retrieve the second value ("b") from our_array?

Show Answer