Murtuza,
The exam won't contain any questions that might cause you to wish that you had a calculator. The
Java programmer certification exam is not a math
test. It is unlikely to contain questions that require you to evaluate arithmetic expressions involving large numbers or decimal points. For that reason, the second question is unlikely to appear on the real exam.
The first question requires you to know how Java handles negative operands with the remainder operator, %. The exam is likely to have questions involving the remainder operator, but the operands are most likely to be positive integral values. The correct result is likely to be something that can easily be calculated in your head.
[ August 09, 2004: Message edited by: Dan Chisholm ]