Its simple Preetha...
You have set b1 and b2 to true by calls to setB1 and setB2.
And in your if else conditions, you finally hit the final else part (because for & to pass, both the operands should evaluate to true).
In the final else part, you say "assert false", which means, "throw assertion error here if the condition is false". Since, you have explicitly mentioned false, it WILL throw an assertion error, but only if assertions are enabled by -ea or -enableassertions while running
java command...
If assertions are not enabled, your "assert false" statement does not mean anything..ie. it does not come into picture during runtime.
So, as per the above explanation, options a and d are correct.
Assertions are placed in such control blocks like if-else to ensure that the program flow does not reach some unintended code...in the eg you have given, we are ensuring that both b1 and b2 variables are true. If anyone is false, assertion error is thrown. As per this, option f is correct.
Hope I am clear.
A small suggestion: Please use the "CODE" marker to properly indent your code...You know, its difficult to read the code if it is not indented, that too, in such code where there are many if-else's

[ November 17, 2008: Message edited by: Rekha Srinath ]