Programming - terminology Flashcards
What is the definition of declaration?
A statement of a variable name, data type and sometimes initial value - in most languages, must be done before the variable is used.
What is the definition of input?
Input is taking data into the program. For example, this could be a click of the mouse, selection of a value in a combo box or a value typed into a textbox.
What is the definition of output?
Output is data produced from the program. This could displayed on-screen or sent to a printer.
What is the definition of assignment?
Assignment is setting a variable to a value.
What is the definition of variables?
A variable is a value represented by a name. The value can be changed throughout the program. The scope of the variable is where it can be used in the program (local or global).
What is the definition of local variable?
A local variable is used in one sub-routine only.
What is the definition of global variable?
A global variable can be used anywhere in the program
What is the definition of constants?
A constant is like a variable but is not changed; it is always the same. e.g. pi
What is the definition of sub-routines?
A sub-routine is part of a program and allows the program to be broken into chunks.
A sub-routine can be called from th main program as many times as needed.