Data types Flashcards
Define and give an example of an Integer
A whole number e.g. 127, -56
Define and give an example of a Real/Float
A number with a decimal point e.g. 3.4, -980.6
Define Boolean
Data that can have one of 2 values- True or False
Define and give an example of a Char
A single character, any number, letter, or symbol on its own e.g. 5, &
Define and give an example of Date/Time
A value that states the date and time in any format e.g. 2019-07-23, 16:17
Define and give an example of a Record
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)
Define and give an example of an Array
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]
Define a Pointer/ Reference
A pointer stores the memory address of a value or objected located in computer memory