S11 - 54 selection Flashcards
1
Q
what are the three basic programming constructs?
A
sequence, selection and iteration
2
Q
define sequence
A
2 or more statements executed one after the other
3
Q
the second statement…
A
is an assignment statement in which a value is assigned to a variable
4
Q
when is a switch statement useful?
A
when a choice has to be made between several alternatives
5
Q
a switch statement is an alternative…
A
structure to a nested if statement
6
Q
state the 3 boolean operators
A
AND, OR, NOT