click below
click below
Normal Size Small Size show me how
Computer Science
Component 2
| Question | Answer |
|---|---|
| What is abstraction? | Removing unnecessary/irrelevant details to focus on the relevant details |
| What is decomposition? | Breaking larger problems in to smaller problems. Smaller are easier to solve. |
| What is algorithmic thinking? | Identifying the steps involved in breaking a problem down |
| What is the symbol for Start/End in a flow chart? | Oval |
| What is the symbol for Input/Output in a flow chart? | Parallelogram |
| What is the symbol for Process in a flow chart? | Rectangle |
| What's pseudocode? | Formal english (if 14 equals this then) |
| What are syntax errors? | Errors with the code that stop it from working |
| What are logic errors? | Errors in a code that do not terminate the code. |
| What's binary search? | List in order, divides by two |
| What's bubble sort? | Compares two values and puts in to correct order |
| What's insertion sort? | Goes through each number and immediately puts each number in the right place |
| What's merge sort? | Splits in to individuals, goes in to pairs, and then groups and keeps merging. |
| What is DIV? | Ignores remainder |
| What is MOD? | Only shows remainder |
| What is a function? | A sub-program that returns a value |
| What is a procedure? | A sub-program that does not return a value |
| What is authentication? | Only allows authorised users to access information |
| What is verification? | Checking data has been entered correctly |
| What is validation? | Checks data is sensible |
| What is a type check? | Checks a data type |
| How are the number of combinations found for a truth table? | 2 to the power of the amount of inputs. |
| What does IDE stand for? | Integrated Development Environment. |
| What is an IDE? | A software program used to help programmers build software |
| What is the role of the translator (interpreter)? | Allows the code to run, translates from written to machine code. |
| Give another feature of an IDE. | Code editor, used to create code and auto indents |
| How do you start a file? | myfile=open("hello.txt", "w'') |
| How do you write in a file? | myfile.write("hello") |
| How do you close a file? | myfile.close() |