Paper 2 - All Content Flashcards
What is abstraction?
Removing unnecessary detail from a problem to make it easier to understand and focus in on main elements.
What is decomposition?
Breaking down a problem into a series of sub problems to make it easier to understand and solve.
What is an input?
Allows user to put data into the computer system.
What is a output?
Displays the result of processing to the unit.
What is a process?
Turns a input into a output.
What shape is a process?
Rectangle.
What shape is a start/end?
Lozenge.
What shape is a input/output?
Parrelelogram.
What shape is a sub program?
Rectangle with two additional lines inside.
What shape is a decision?
Diamond, remember to add labels to branch arrows.
What direction do you have to go in trace tables?
Left to right, never go back on yourself.
What are the conditions required to run a binary search?
List must be in order, text and numbers.
What happens in a binary search?
Each time you select the middle item in a list, the irrelevant half is discarded. You repeat this until you have found the result.
What happens in a binary search?
Each time you select the middle item in a list, the irrelevant half is discarded. You repeat this until you have found the result.
Is a binary search efficient?
Yes.
What is a linear search?
Search that will work on any list. Starts at beginning of list and checks every item in order to see if it matches the search term.
What is a positive and negative of using a linear search?
Can search unordered lists, far less efficient than binary search.
What is a bubble sort?
At the end of every complete pass you put ONE item in order.
What is a merge sort?
Start with overall list and keep splitting it in half until you are left with one item in the sub list.
What is insertion sort?
Take first item and put it at top, you then take second item and put that in the correct position (left or right of card).
What is a variable?
Named location in memory which holds a value that can change during the running of a program.
What is a constant?
A constant is a value that cannot be changed during the running of the program.
What is MOD?
Modulus, remainder after INTEGER division is carried out,
What is DIV?
Integer division.