What is a variable?
What are the global variables?
What are the negatives of global variables?
What are the positives of global variables?
What is a local variable?
Can only be accessed within the scope of the sub-program where it is created
A parameter that is passed into a subroutine becomes a local variable in the subroutine e.g. LoadLevel(Difficulty)
What is an IDE?
Integrated Development Environment (IDE) - A program used for developing programs, made from several components.
What tools are provided by an IDE to develop software?
What tools are provided by an IDE to debug software?
What are the three programming constructs?
What is an example of a count controlled loop?
FOR Loop - Will run for a set number of predetermined times.
What is an example of a condition controlled loop?
WHILE / DO WHILE - Will run whilst a condition is true or false
What are parameters?
Parameters are the variables listed between the brackets, after the procedure/function name e.g.
They become local variables in the routines that they are passed to.
characterMovement(inputKey, characterx, charactery)
What does passing by value mean?
By Value (ByVal)
* Does not override the original data
* A local copy of the data is used
* Data is discarded when the subprogram exits
What does passing by reference mean?
By Reference (ByRef)
* Changes are made to the original data
* Memory location of data is sent
* Changes remain after the subprogram exits
* Uses less memory
What is a function?
What is a procedure?
What are the benefits of modularity in coding?
Breaking code down into functions / procedures / scripts