Recall & Review
beginner
What is an array in simple terms?
An array is a collection of items stored in a single, ordered list where each item can be accessed by its position number.
Click to reveal answer
beginner
Why are arrays considered simple compared to other data structures?
Because arrays store items in a straight line, making it easy to find and use each item by its position without extra links or rules.
Click to reveal answer
beginner
How do you access an element in an array?
You access an element by its index, which is its position number starting usually from zero.
Click to reveal answer
intermediate
What is a key limitation of arrays?
Arrays have a fixed size, so you must decide how many items to store before using them, which can waste space or limit storage.
Click to reveal answer
beginner
Give a real-life example that helps explain arrays.
Think of an egg carton holding eggs in a row. Each egg has a spot you can count to find it quickly, just like an array stores items in order.
Click to reveal answer
What makes arrays easy to use?
✗ Incorrect
Arrays store items in a fixed order and you can find any item by its position number, making them simple to use.
What is the starting index of most arrays?
✗ Incorrect
Most programming languages start array indexes at 0, meaning the first item is at position zero.
Which of these is NOT a characteristic of arrays?
✗ Incorrect
Arrays do not link items with pointers; they store items in order and access them by position.
Why might arrays waste memory?
✗ Incorrect
Since arrays have a fixed size, if you allocate more space than needed, the extra space is wasted.
Which real-life object is a good example of an array?
✗ Incorrect
A bookshelf with numbered slots stores books in order and you can find a book by its slot number, like an array.
Explain why arrays are considered the simplest data structure.
Think about how you find items in a list by counting their place.
You got /4 concepts.
Describe a real-life example that helps understand how arrays work.
Imagine something where you count spots to find what you want.
You got /4 concepts.