QUESTIONS AND CORRECT ANSWERS
Enumeration type - CORRECT ANSWER declares a name for a new type and possible
values for that type
He items within the braces ("enumerators") are named ___ - CORRECT
ANSWER constants
Constants - CORRECT ANSWER > not assigned a specific numeric value, but instead
must be referred to by the defined names
> can be used like the built-in types int, char, etc
State machine - CORRECT ANSWER a state machine is any device that stores the
status of something at a given time and can operate on input to change the status and/or cause
an action or output to take place for any given change
A programmer must include both the enumeration ___ - CORRECT ANSWER type
and the enumerator within that type, as in lightval = lightstate.RED;
Declare a new public enumeration type named hvacstatus with three named values hvacoff,
acon, furnaceon, in that order. - CORRECT ANSWER public enum hvacstatus
{hvacoff, acon, furnaceon}
> Declares a new type called hvacstatus.
Declare a variable of the enumeration type hvacstatus named systemstatus. - CORRECT
ANSWER hvacstatus systemstatus;
> This creates a new variable of type hvacstatus.