1.2.1: be able to follow and write algorithms (flowcharts, pseudocode, program code) that use sequence, selection, repetition (count-controlled, condition-controlled) and iteration (over every item in a data structure), and input, processing and output to solve problems
Keyword | Definition |
---|---|
algorithm | step by step instructions to solve a problem |
boolean expression | question with a true or false answer |
count-controlled repetition | repeating instructions a set number of times |
data structure | variable which stores multiple values (such as a string, record or array) |
input | data that goes into an algorithm |
iteration | executing instructions multiple times - once for each value in a data structure |
output | information that comes out of an algorithm |
post-conditioned repetition | repeating instructions one or more times based on a boolean expression |
pre-conditioned repetition | repeating instructions zero or more times based on a boolean expression |
process | calculations performed within an algorithm |
selection | instructions which choose what is executed next based on a boolean expression |
sequence | more than one instruction that have to be executed in a particular order |