4.1 General Principals Flashcards
What is procedural programming?
It is viewing solutions as a sequence of instructions.
What are these sequences of instructions called?
Subroutines.
Why are subroutines good?
They can be selected and repeated based on conditions.
What is decomposition?
Breaking down large complex problems into smaller ones.
What happens once you’ve decomposed a problem?
Turn it into a sub solution.
Why is important to consider the order of events?
Efficiency,
Resources available
Priority of processes
What is event driven programming?
The programmer needs to compartmentalise so that the user can access bits when they wish to.
What is important about planning?
Allowing to spot where areas might go wrong.
Create a strong order of events.
Get correct required outcome.
What is a subprogram?
Performs a specific task - can be called by name.
What is a sub process?
A series of commands to perform a task. But not a result.
Why are sub procedures good?
Makes problem easier to understand and solve.
What is logical thinking?
Decision making, this or that, yes or no.
What needs to be considered when looking at decisions?
Conditions. e.g. =, >, AND, etc.
A decision is a combination of…
Conditions and Operators
What does thinking ahead programming entail?
Inputs and outputs
Pre planning
Exceptions