Topic 4 Flashcards
List two criteria to use when assessing whether a solution is satisfactory.
- Speed
2. Readability
What are sub-procedures?
Sub-procedures are procedures that have no use on their own but are used in other procedures to contribute to solving a larger problem, which are known as methods in Java.
List 3 benefits of modular programming.
- Reusability
- Debugging
- Organisation (split up workload)
List two examples of decision making statements.
- if (else)
2. switch
Every decision making statement returns a…
boolean
What are the 3 parts of a solution?
- Input
- Processes/procedures
- Output
Why is pre-planning important?
E.g.
we need somewhere to store information about what to code, inputs, outputs etc.
What are the two tasks in a software development cycle that must be conducted concurrently?
Testing and development
What are gantt charts used for?
Managing the period of time in which a task will be in development
What are pre-conditions? E.g.?
Pre-conditions are things that need to be tested before executing a solution. It is necessary for some solutions because the functions of a solution may have to rely on these pre-conditions, e.g. connecting to a database requires internet connection
What are post-conditions? E.g.?
Post-conditions are things that must be tested in order to check that the solution has done what it’s supposed to have done, e.g. printing out the results and checking if it is reasonable.
When are exceptions thrown?
An exception occurs when the program expects something but the input does not match as expected.
List 3 advantages of implementing parts concurrently.
- Efficiency/time
- Organisation in a large group
- Some parts may depend on other parts
What is concurrent processing?
Essentially multitasking, a real life example of this is the building of a car, where the different parts are pre-built separately but concurrently.
What is a major strength of concurrent processing?
Speed