Programming #2 Flashcards
1
Q
Procedure
A
- A block of code that performs a set task
- Takes in 0,1 or more parameters
2
Q
Function
A
- A block of code that performs a set task
- Takes in 0,1 or more parameters
- Returns a value
3
Q
Passing by Value
A
The function receives a copy of the original value and only makes changes to the copy of the original variable and not the original variable itself
4
Q
Passing by Reference
A
The function receives the memory location of the data and makes changes to the original variable
5
Q
Parameter
A
An item of data that is passed to a subroutine and is used as a variable within that subroutine
6
Q
Sequence
A
Executes instructions one after the other
7
Q
Iteration
A
Iteration (looping) allows us to reuse sections of code using FOR and WHILE loops
8
Q
Branching
A
Allows a program to change direction depending on the boolean expression