Answer:

LET OUNCES = GALLONS * 128                 ' statement 4

Statement 4 does 4 things:

  1. Finds memory for the variable OUNCES.
  2. Looks in GALLONS to get the value 3.5
  3. Calculates 3.5 * 128
  4. Puts the result 448 in OUNCES.

Step one is performed because OUNCES has not been seen before in this program so memory must be found for it now.

Last Statement

After statement 4 memory looks like:

KEGSIZE
5
LEFTOVER
1.5
GALLONS
3.5
OUNCES
448

(Of course, there are many other things in memory, but we are not concerned with them now.)

Finally, the last statement is executed:

PRINT "glasses of soda =", OUNCES / 8      ' statement 5

QUESTION 13:

What will this statement write to the monitor?