Answer:

The ^ operator is higher priority than any of the others, so it is done first. (If you are having trouble remembering priorities, notice that the operators from lowest to highest priority are the same order you learned them in grade school.)

10 * 3 ^ 2 - 5  =  10 * 9 - 5
     -----

Now the rest follows the usual order: 10 * 9 - 5 = 90 - 5 = 85.

Arithmetic in Basic Programs

We are still talking about QBasic programs. Arithmetic expressions are just a part of them. Now that you know about operator priority you should be able to do more complicated arithmetic in PRINT statements (and elsewhere, when we get to it...)

QUESTION 12:

What will the following program print to the monitor?

' Mixed Operators
'
PRINT  3 + 12 / 2
END