Practice mode Data Structures

Which statement best distinguishes a static data structure from a dynamic one?

Correct answer A. A static structure has a size fixed when it is created, while a dynamic one can grow or shrink at run time

Explanation

The static versus dynamic distinction is about size. A plain C array declared with 10 elements keeps that capacity for its lifetime, whereas a linked list allocates nodes as needed and can grow or shrink. Static structures can still hold changeable values and are often indexable; searching speed depends on organisation, not on whether the size is fixed.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.