What is a sequence?
A control structure in which a set of instructions is each executed once, in order in which they are written
What is selection? (Branching)
A control structure in which an option of statements is provided and a condition is used to decide which (if any) statements should be executed
What are some examples of selection?
What is iteration?
Control structure in which a group of statements is executed repeatedly (Loops)
What are condition controlled loops?
-Condition that allows us to exit the loop once a particular condition has been met
What is a while loop?
-While loop = condition tested before loop, if condition = false the loop will be ignored. If true the loop will be executed until the condition becomes false. Condition tested on each iteration
What is a Do loop?
What are for loops?
What is variable Scope?
-Range of statements for which it is valid
What is a local variable? +/-?
-Declared in a sub area of the program code, may be in a function or procedure. Values in these variables will only be accessible from the sub program they are declared in. Should be used where ever possible
-Eg; A variable declared within a for loop can only be accessed whilst in that loop. Once the loop has ended the variable can no longer be accessed. (Local variable)
+Only used when sub program is called so main memory usage is limited
-Limited scope
What is a global variable? +/-
-Declared in the root area of the program code (usually the beginning)
-Values stored in these variables will be accessible from any area of the code
+Can be accessed anywhere
-Sit and take up main memory
-Create complications when integrating modules as different modules may have the same global variables but with different values
What are functions?
What are procedures?
- Act independently of the rest of the program and do not usually return a value to the procedure call
What is a parameter?
How are parameters passed by value?
What is passing by reference?
What is an IDE?
What does the code editor do?
What is the automated build process?
-Performs syntax checking, then complies and links your code, and generates an executable program with one click
What does the debugger do?
What are subroutines?
What is recursion?
What does it mean to think concurrently?