Fundamentals Of Programming Flashcards
(12 cards)
What is an integer data type?
All integers (whole numbers), including negative numbers
What is a float/real data type?
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
What is a data type?
A data type is used to allow computers to interpret bit patterns and allocate a certain number of bits to a datum
What is a datum?
A finite sequence of 0s and 1s that does not have a meaning
What is a value?
A finite sequence of 0s and 1s which has a meaning due to a data type being assigned to it
What is a Boolean data type?
A value which is either true or false with true normally being represented with 1 and false being represented with 0
What is a character data type?
A data type which only stores single characters which normally use ASCII or Unicode
What is a string data type?
A sequence of characters
What is a date/time data type?
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
What is a pointer?
Holds the address of a certain location in memory
What is a reference?
A value that enables a program to indirectly access a particular data
What is a record?
A collection of different data types that relate to each other, each value is contained in a field which shows what each value represents