4.10 - 4.14 Types / Structures Flashcards

:)

1
Q

What are the 5 data types

A

Integer, Real(Float), Boolean, Character, String

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

What are the three different types of data structures

A

Records, Arrays and Lists

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

Structures can either be…

A

Dynamic or static

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

State the use of a Boolean data type

A

True or False

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

Describe the data structure “Lists”

A

A form of array, Stores data in the order added to memory, Can store different types of data integer, float, string, character…), Dynamic data structure, Data can be inserted / deleted from a list, Can traverse (or loop (for/while)) through a list, Can search a list

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

Describe the Data structure “Array”

A

Holds a fixed number of data items, Must be the same data type (integer, float, string, character…), Data items are known as elements, An array is an example of a static data structure, Data can be deleted from an array, not inserted, Can traverse (or loop (for/while)) through an array, Can search an array

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

An example of 1D array could be..

A

used for recording temperatures after a science experiment

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

An example of 2D array could be..

A

used for recording temperatures
and liquid density after a science experiment

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

Describe the Data structure “Records”

A

Can hold data of different types, A record holds information about one person, place or item, A record is made up of different fields, with different
data types

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

What is the structure of a Record

A

Key Field, File/Table and Fields

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

What should each Record have?

A

Each record should have a key field, this
will make each record unique

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

What is a File/Table

A

A file / table is a collection of records

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

What is a Record made up of?

A

A record is made up of fields that hold a
specific piece of information. A field is made up of one specific data
type

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