Ch.8 Programming Flashcards
variable
a named memory location that can store data
the data can change whilst a program is running
constant
a named memory location that can store data
the data cannot change whilst a program is running
identifier
a name given to a variable, constant, data structure or subroutine
assignment
a type of programming statement that stores data in a variable or constant
string
a data type (any characters including letter, numbers and/or symbols)
data type
the characteristics of a piece of data
common data types: string, integer, real, boolean
integer
a data type (whole numbers)
real
a data type (decimal numbers)
single
a data type (decimal numbers)
double
a data type (decimal numbers)
boolean
a data type (true or false)
char
a single character
e.g. “A”, “1”, “*”
casting
converting data from one data type to another data type
output
data that is displayed to the user usually on-screen
concatenation
joining two or more strings together
input
the user entering data into the program, usually from a keyboard
arithmetic operator
a symbol that performs a mathematical function
e.g. “+” adds two values together
MOD
remainder division
the remainder after the division is performed
e.g. MOD(5,2) = 2
DIV
integer division
the remainder from the division is ignored
e.g. DIV(5,2) = 2