Barkat,
Thank you for your feedback.
I only have about a minute so I can only write a very quick response now.
f. The assert statement indicates that the programmer expects no more than one boolean, b1, b2, or b3 to be true.
The assert statement is placed after a series of if/else statements. The first "if" is processed if all of the booleans are false. The second is processed if only b1 is true. The third is processed if only b2 is true. The assert statement verifies that only b3 is true.
assert b3 & !b2 & !b1;
This suggests that the programmer expects the three booleans to be in only one of four states--all are false or only one is true. This expectation is an example of an invariant and the assertion is used to verify that the expectation is correct.