Visual Basic
Evaluating Expressions Worksheet #1
Name -

Evaluate each expression and fill in the final value. Refer to the lecture notes if you are unfamiliar with any of the mathematical operators such as Mod.

___________________________  1.   4 + 2 - 2

___________________________  2.   4 - 2 + 2

___________________________  3. 12 * 3 + 2

___________________________  4. 12 + 3 * 2

___________________________  5. 24 / 2 * 3

___________________________  6. 24 / 12 / 2

___________________________  7.   2 ^ 2

___________________________  8.   3 ^ 2 * 2

___________________________  9.   10 Mod 3

___________________________  10.   12 Mod 12

___________________________  11.   25 Mod 3 * 2

___________________________  12.   100 Mod 83 + 4

___________________________  13.   24 - 2 * 3 ^ 2

___________________________  14.   3 * 4 ^ 2

___________________________  15.   (3 + 12) / 3 - 2

___________________________  16.   3 * 10 Mod 4

___________________________  17.   (1 + 5) ^ 2 * 3

___________________________  18.   10 - (8 - 2) + 1

___________________________  19.  91 ^ 2 * 0

___________________________  20.   (12 - 5) ^ 2 * 2