programming Flashcards
what is an algorithm?
an algorithm is a set of rules which need to be followed in a specific order in order for them to be successful.
how can algorithms be expressed?
as a flowchart or as pseudo code
what is a flowchart?
a flowchart is a diagrammatic representation of the data
flow and structure for the solution
what is pseudo code?
pseudo code is a structured form of English used to
define the steps needed to solve a problem
name the purpose of the following shapes in a flowchart:
- diamond
- square
- rounded square
- diamond: decision
- square: inputs, outputs, processes
- rounded square: start and stop
what language is pseudo code in?
English
is pseudo code written in code?
no, it is written in English
what do the arrows in a flowchart symbolise?
the direction of data flow.
true or false?:
algorithms can be executed in any order.
false: they must be followed in a specific order.
what is an iteration?
an iteration is a loop in the code.