Data Types Flashcards
What are data types used to describe?
They describe the type of data a variable contains in a computer program
What is an Integer data type?
A positive or negative whole number
What is a Real/Float data type?
A number that contains a decimal point
What is a Boolean data type?
Can represent two logical states “True” or “False”
What is a Character data type?
Represents a single alphanumeric data item
What is a String data type?
one or more characters
What is a Date/time data type?
Contains details of an instant in time
What is a Pointer/reference data type?
A data object that contains the memory location of another variable. A form of indirect addressing
What is a records data type?
Made up of a list of elements which can contain a group of fixed length fields of different data types
What is an arrays data type?
Made up of a list of data elements that are the same data type and size. Can be one or more dimensional
What is a built in data type?
Give some examples
A data type that the programming language offers built in support.
Integer, Byte, Boolean, Real, Character, Strings
What are user defined data types?
A data type declared by the user to meet their specific requirements
What are variables?
Variables are used to store data that may change when the program is executed
What are Constants and how are they represented?
Constants are used to store data that does not change. They are declared in all capital letters.
What is assignment?
Assignment is where a value is computed within a program and assigned to a variable