Data Types Flashcards

1
Q

what are the levels of Data abstraction? (5)

A
Atomic Data
Composite Data
Data Types
Data structures
abstract data structures ADT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Atomic data

A

consists of a single piece of info (char, int ,float)

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

composite data

A

data which can be broken down into various smaller parts or subfields. Multiple properties required; usually represented by a struct
Sometimes refers to type and sometimes to data

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

an example of composite data?

A

a point on a graph, phone number, geometric shape

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

Data Types

A

packages together data and ways of manipulating data together (operations & data)

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

Data type consists of 2 parts:

A

set of values

operations that can be performed

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

Data Structure

A

an aggregation of data elements into a set with defined relationships.

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

2 components of Data Structures:

A

elements are either data type or another data structure

a set of associations or relationships (structure) between elements

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

Examples of Data Structures:

A

Array, 2D array (matrix)

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

Abstract Data Type ADT

A

an abstraction that permits programmers to make use of the data structure without knowing its internal implementation.

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

T or F: We dont know what an ADT can do , but we know how its implemented .

A

False

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

Abstract data type consists of:

A

one or more data structures
operations (interface)
Encapsulation (hiding)

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