Recall & Review
beginner
What is an array in simple terms?
An array is a collection of items stored one after another in memory, like a row of mailboxes where each box holds one item.
Click to reveal answer
beginner
When is it best to use an array instead of other data structures?
Use arrays when you know the number of items in advance and need fast access to items by their position.
Click to reveal answer
intermediate
How does accessing an element in an array compare to a linked list?
Accessing an element by position in an array is very fast because items are next to each other, but in a linked list you must follow links one by one.
Click to reveal answer
intermediate
What is a downside of arrays compared to other data structures like linked lists?
Arrays have a fixed size, so you cannot easily add or remove items once created without making a new array.
Click to reveal answer
beginner
Why might you choose a linked list over an array?
Choose a linked list if you need to add or remove items often and don’t know the total number of items ahead of time.
Click to reveal answer
Which data structure provides the fastest access to elements by index?
✗ Incorrect
Arrays store elements in contiguous memory, so accessing by index is very fast.
When should you avoid using arrays?
✗ Incorrect
Arrays have fixed size, so frequent additions or removals are inefficient.
What is a key limitation of arrays compared to linked lists?
✗ Incorrect
Arrays cannot change size easily once created.
Which data structure is best if you need to add elements at the start frequently?
✗ Incorrect
Linked lists allow fast insertion at the start without shifting elements.
If you know the exact number of elements and want simple storage, which should you choose?
✗ Incorrect
Arrays are simple and efficient when size is known.
Explain when and why you would choose an array over other data structures.
Think about speed and size predictability.
You got /4 concepts.
Describe the main differences between arrays and linked lists in terms of usage and performance.
Compare size flexibility and access speed.
You got /4 concepts.
