Chapter 11
- What direction does a program always flow in?
Top to bottom.
- When will an
IF
statement run?When the logical expression it contains evaluates to true.
- Will an
IF
statement be executed if the condition evaluates to false?No.
- What is a state machine?
A programming structure where an input dictates a machine state.
- What is a common way to implement state machines?
A
CASE
statement. - What is a
CASE
statement?A
CASE
statement is an easy way to implement a series of branches in a program. - What is the
CASE
statement syntax?CASE input OF 0: //code 1: //code 2: //code END_CASE
- Can you have an
IF
statement inside of aCASE
statement?Yes.
- What is the major difference between an
IF
and aCASE
statement?An
IF
statement can only evaluate one...