Fundamentals Of Programming Flashcards

(12 cards)

1
Q

What is an integer data type?

A

All integers (whole numbers), including negative numbers

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

What is a float/real data type?

A

Any number that has a decimal place, computers cannot represent irrational numbers exactly and they are approximated as there are a limited number of bits

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

What is a data type?

A

A data type is used to allow computers to interpret bit patterns and allocate a certain number of bits to a datum

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

What is a datum?

A

A finite sequence of 0s and 1s that does not have a meaning

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

What is a value?

A

A finite sequence of 0s and 1s which has a meaning due to a data type being assigned to it

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

What is a Boolean data type?

A

A value which is either true or false with true normally being represented with 1 and false being represented with 0

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

What is a character data type?

A

A data type which only stores single characters which normally use ASCII or Unicode

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

What is a string data type?

A

A sequence of characters

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

What is a date/time data type?

A

Can represent dates and times (e.g. 16/09/2023), sometimes they are combined and at other times they are stored as separate data types

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

What is a pointer?

A

Holds the address of a certain location in memory

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

What is a reference?

A

A value that enables a program to indirectly access a particular data

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

What is a record?

A

A collection of different data types that relate to each other, each value is contained in a field which shows what each value represents

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