Here are the answers for the quiz of last week:
- b=2 and an exception
- b=4 and no exception
- returns 2
- returns 1 and b=2
The difficult ones where definitely the last 3. Note that for #4 this is rejected by C# which forbids exiting from the finally clause (actually this is a .NET runtime restriction that has moved up to the language specification).
If you are unlucky and have to program in Java (instead of Eiffel as I do), you have to be careful when handling code that makes an extensive use of
try .. finally... with goto style code flow.