Multiple choice

How does a linked list differ from an array?

  1. The size is dynamically allocated

  2. The size is static

  3. It is last-in-first-out

  4. It is first-in-first-out

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Arrays have a fixed size defined at creation, whereas linked lists can grow or shrink dynamically by allocating and deallocating memory for individual nodes as needed.