Save
...
Paper 2 - Programming
Section 6 - Programming
Program Flow
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Wendy A
Visit profile
Cards (6)
IF Statements
allow you to check if a condition is true or
false.
SWITCH
statements check the
value
of a
variable
. They are
neater.
DO
UNTIL
loop is at the
END
of look.
WHILE
loop is at
start
of
loop.
NOT Gate: Does the opposite, when you
input
1
it
outputs
0
(vice versa).
A)
NOT gate
1
AND
Gate
: If you input:
0
and 0 =
output
0.
If you input : 1 and 0 input = 0.
Need 2 ones
to be
1
.
A)
AND gate
1
OR
Gate
: only need one 1 to be 1. input: 1 and 0 = 1.
A)
OR gate
1