1.5 What Kinds of Instructions Can Be Written in a Programming Language? | 17
Figure 1.9 Basic Control Structures of Programming Languages
...
...
...
SEQUENCE
SELECTION(also calledbranchhordecisionn))
IF condition THEN statement1 ELSE statement 2
LOOP(also calledrepetitionnoriterationn))
SUBPROGRAM(also calledprocedure, function, method,orsubroutine
ASYNCHRONOUS
Statement Statement Statement
Condition
Statement 2
Statement 1
Tr u eTr u e
Falsese
Condition
Statement 1
False
SUBPROGRAM 1
EVENT
ue
SUBPROGRAM 1
a meaningful collection
of any of the above
EVENTHANDLER
a subprogram executed
when an event occurs