2.1 Key differences Flashcards

1
Q

What is a function vs procedure?

A

A function is a set of instructions or a block of code designed to perform a specific task. A procedure on the other hand is a function, that does not return any output.

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

Differentiate between Abstract Datatype, and a data structure

A

An ADT is a conceptual definition of data, while a data structure is the concrete implementation of an ADT

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