Data Structures Basics Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are structured data types?

A

data types made out o primitive data types , which are formatted to store related data in an organised way.

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

What is the most common structured data type?

A

A string, it is made up of characters

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

What are some common structued data types?

A

arrays (many dimensions)
records
tuple

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

What is an abstract data type?

A

(ADT) is a structured data type created by the programmer rather than being implemented into the programming language.

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

What are some types of ADT?

A
  • trees
  • graphs
  • queues
  • stacks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What types of ADT and structured data types can there be?

A

Dynamic and static

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

What is a dynamic data type?

A

collection of memory allocated which can change size, the memory is allocated using a heap (during execution)

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

What is a disadvantage of an abstract data type?

A

can cause overflow errorsif memory limit is exceeded (the program will crash)

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

What is a static data type?

A

fixed in size and this size cannot be changed during execution e.g. array
it becomes a specific size before execution

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

When would we use a dynamic data structure

A

when we aren’t fully sure of the size

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