Creating algorithms Flashcards
What is a construct?
A component from which something is built.
What is a selection?
A construct that allows a choice to be made between different alternatives.
What does iteration mean?
A construct that means the repetition of a process. An action is repeated until a desired outcome or a condition is met. Often referred to as a loop.
What is an IF, THEN, ELSE statement?
It allows a choice to be made on whether or not a condition is met. EG: If it is cold, then take coat. Else wear T-shirt.
What is a relational operator?
An operator that compares two values.
What is a nested IF statement?
It is one or more if statements inside each other. It is used when there are more than two possible corses of action.
What is an indefinite iteration?
It goes on indefinitely until a condition is met.q
What is a definite iteration?
Stops after a certain number of loops.
What is a logical operator?
Yes or no using AND, OR, NOT.
What is a random number?
A number within a certain range randomly chosen. Each number has an equal chance of being selected.
What is a nested loop?
A loop within another loop. Executes all it’s functions every time the biger loop runs.
What is concatenation?
The linking together of two or more items of information.
What is a logic error?
A problem causing incorrect or unexpected behaviour.
What is a trace table?
A method of finding logic errors.
What is a simulation?
A representation of a real world process or system.