We ran into a question on a computer science test that basically asked what is $\pi^3$ rounded up to the nearest whole number. The value of $\pi$ as defined by the programming language was $3.141592653589793$ and afterwards, we found out we would've needed to go to $3.1415$ to get the right answer. The difficult part is that the test allows no calculator, and you get on average one minute per question. Maybe there's some easy trick to solve this?
EDIT: Exact question:
What is the output by the code to the right?
System.out.println(Math.ceil(Math.pow(Math.PI, (int) Math.round(Math.max(3.45, 3.3)))));
(The language is Java)