Which statement describes static and dynamic data structures correctly and gives an example?

Study for the End of Year 8 Computer Science Test. Prepare with flashcards and multiple choice questions, each with hints and explanations. Get ready for your exam!

Multiple Choice

Which statement describes static and dynamic data structures correctly and gives an example?

Explanation:
This is about fixed-size versus resizable data structures. Static structures have a fixed capacity that doesn’t change after creation, so they don’t automatically resize to accommodate more data. An array is a classic example: you decide its length up front and you can’t change that size without creating a new array. Dynamic structures, in contrast, can grow or shrink as elements are added or removed, so they adapt to how much data you need to store; a list is a typical example because you can append and delete items as needed. So, describing static as having a fixed size with an array as a concrete example best matches how these structures behave. The other statements either flip the properties or describe resizing in a way that doesn’t fit how static and dynamic structures work.

This is about fixed-size versus resizable data structures. Static structures have a fixed capacity that doesn’t change after creation, so they don’t automatically resize to accommodate more data. An array is a classic example: you decide its length up front and you can’t change that size without creating a new array. Dynamic structures, in contrast, can grow or shrink as elements are added or removed, so they adapt to how much data you need to store; a list is a typical example because you can append and delete items as needed. So, describing static as having a fixed size with an array as a concrete example best matches how these structures behave. The other statements either flip the properties or describe resizing in a way that doesn’t fit how static and dynamic structures work.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy