Skip to content

Selection and iteration

Introduced
Handout Watch lesson
Vocabulary
English Meaning
selection/sɪˈlekʃn/Choosing which branch of instructions to execute according to a condition.
iteration/ˌɪtəˈreɪʃn/Repeating a sequence of instructions or calculations.
trace table/treɪs ˈteɪbl/A table recording variable values and outputs as an algorithm's steps are followed.
nested/ˈnestɪd/Contained within another structure of the same or a related kind, such as a loop inside a loop.
logic error/ˈlɒdʒɪk ˈerə/A mistake in an algorithm or program that produces an incorrect result despite valid syntax.
count-controlled loop/kaʊnt kənˈtrəʊld luːp/A loop that repeats according to a counter, usually for a specified number of iterations.
array/əˈreɪ/An indexed collection of elements arranged in one or more dimensions.
pre-condition loop/priː kənˈdɪʃn luːp/A loop that tests its continuation condition before executing its body, so the body may run zero times.
post-condition loop/pəʊst kənˈdɪʃn luːp/A loop that tests its continuation or termination condition after executing its body, so it runs at least once.
dry run/draɪ rʌn/Tracing an algorithm by hand using example inputs and recording changes in its values.

Handout

Log in or create account

IGCSE, A-Level & AP