Paper 1 2017 And Others Flashcards

1
Q

Explain the difference between dynamic and static structures

A

Static structures have a fixed size which is determined before compile time .
Whereas
Dynamic structures size can grow and shrink during run time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain two differences between dynamic and static structures

A

Size
Memory - memory needed for dynamic as they pointers which are used for this and static don’t need memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Static implementation is less efficient than dynamic implementation explain why?

A

This is because dynamic implementation uses a pointer which makes it easy to insert data quickly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly