What is an algorithm?
A series of steps (sequence) to solve a specific problem.
State 3 methods of defining algorithms.
What is pseudocode? (2)
What is structured English?
A cross between pseudocode and written English.
What is a variable?
A named space in the memory that contains a single piece of data.
What is a constant?
The same as a variable except the data
cannot be changed in the program.
Name 3 techniques to make code readable.
State 2 types of a variable.
What is a local variable? (2)
What is a global variable?
Exists throughout the program and can be read/ written from any subroutine.
What is a parameter?
It is an item of data that is passed from one subroutine to another
What are the two ways of passing a parameter?
What is passing by value? (2)
What is passing by reference? (2)
What is difference between 5 DIV 3 and 5 MOD 3?
5 DIV 3 = 1 i.e. integer division
5 MOD 3=2 i.e. remainder after division
What is sorting?
Placing data into a specified order .e.g. alphabetical, numerical or other
State 2 sorts.
How does Bubble Sort work? (4)
When is Bubble sort most appropriate to use?
Works best on smaller, nearly sorted data.
How does Insertion Sort work? (4)
When does insertion sort works best?
Works best on small, jumbled up files.
What is searching?
Locating an item in a data structure
Name two types of searches.
How does a linear search work?
Starts at one end of a data structure and examines every element in order until the item is found.