Resource Library
Below you can find all of the different resources in the Guide: practice problems, former Google interview questions, online courses, videos, and more.
Back to all resources
Test your knowledge of arrays/lists!
Test your knowledge of arrays/lists with this short quiz. Even if you're not an expert, this quiz will give you immediate feedback to help you better understand the concepts.
Quiz
1. True or False: An array/list stores values in a specific order
An array is a data structure that stores a collection of elements in a sequence an ordered sequence. It has a beginning and an end unlike some other data types (e.g. sets)
2. If an array has the following values in order: 5, 2, 9, 3, what value is at index 2?
Indexes start at 0 for arrays, so 5 is at index 0, 2 at index 2, 9 at index 2, and 0 at index 3.
3. True or False: An array/list can have a different array stored inside of it
An array/list can store any type of value, including another array/list. When that occurs, it's referred to as a two-dimensional array.
4. True or False: The size of an array can be increased or decreased
This depends on the implementation of the array. Some implementations (e.g. an array in C++) can not be resized. Other implementations (e.g. ArrayList in Java) can be.