The procedure uses the equality operator to test whether the student's
response is equal to the correct answer. When forced to treat a TRUE condition
as a number, VB will take it to equal minus 1 (FALSE is taken to equal zero).
Thus for each correct response detected, minus 1 is subtracted from score, which
is equivalent to adding one to score.
Note that the = sign is ambiguous in Visual Basic - it's usually used as the
Assignment Operator to set a variable to the value to the expression the the
right of the operator, but sometimes it is used to test the equality of two
expressions. Only context and common sense tells you when the = sign is used in
one way and when it is used in the other. The score line of the above code
contains an example of both uses of the = operator.
In the messagebox line, the FORMAT function is used to specify that the
result is to be displayed as a percentage, with no decimal places.