What are the two ways algorithms can be defined?
What shape is the start/stop symbol?
What is represented by a rectangle?
What shape is a decision represented by?
What is represented by a parallelogram?
What shape is a connector (jump from one point in the sequence to another) represented by?
What do the arrows represent?
What is the use of a variable?
A variable is a named area of memory used to store data that may change when the program is running
What is the use of a constant?
A constant is a named area of memory used to store data which will not change
When are values passed by value?
This is where only the value of the data is passed and therefore it cannot be accidentally changed by the procedure
When are values passes by reference?
This is where the memory address of the data is passed and therefore the procedure can update the its value
What is the difference between a local and global variable?
Global variables can be changed anywhere in the program whereas local variables be used in the procedure where it is declared
What is a parameter?
A parameter is a variable / value that can be passed to / from the procedure
What is the difference between validation and verification?
- Verification checks if the data is accurate
What two features of does a recursive algorithm need?
- Needs a base case
Describe a bubble sort
Describe an insertion sort
Describe a quicksort
Give an advantage and disadvantage of recursion
Put these into order from most efficient to least efficient:
What can big O notation refer to?
- Memory efficiency
How would you analyse an algorithm’s time efficiency?
How would you analyse an algorithm’s memory efficiency?
What is lossless compression and where can it be used?
This is where no data is lost when compressing the file instead the data is stored more efficiently to reduce the file size
- e.g A word document