Data types Flashcards

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

Define and give an example of an Integer

A

A whole number e.g. 127, -56

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

Define and give an example of a Real/Float

A

A number with a decimal point e.g. 3.4, -980.6

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

Define Boolean

A

Data that can have one of 2 values- True or False

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

Define and give an example of a Char

A

A single character, any number, letter, or symbol on its own e.g. 5, &

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

Define and give an example of Date/Time

A

A value that states the date and time in any format e.g. 2019-07-23, 16:17

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

Define and give an example of a Record

A

A collection of related data where each piece of data has its own data type e.g. record(person) contains age(integer) and name(string)

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

Define and give an example of an Array

A

An array contains a series of values of the same data type, length is defined when the array is declared and is NOT variable e.g. [0,9,7,4,3]

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

Define a Pointer/ Reference

A

A pointer stores the memory address of a value or objected located in computer memory

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