logo Practice-It logo

BJP3 Self-Check 2.3: expressions2

Language/Type: Java basics expressions mod
Author: Leslie Ferguson (on 2013/04/01)

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a .0 at the end of a double).

4.0 / 2 * 9 / 2
2.5 * 2 + 8 / 5.0 + 10 / 3
12 / 7 * 4.4 * 2 / 4
4 * 3 / 8 + 2.5 * 2
(5 * 7.0 / 2 - 2.5) / 5 * 2
41 % 7 * 3 / 5 + 5 / 2 * 2.5
10.0 / 2/4
8 / 5 + 13 / 2 / 3.0
(2.5 + 3.5) / 2
9 / 4 * 2.0 - 5/4
9 / 2.0 + 7 / 3 - 3.0 / 2
813 % 100 / 3 + 2.4
27 / 2 / 2.0 * (4.3 + 1.7) - 8 / 3
53 / 5 / (0.6 + 1.4) / 2 + 13 / 2
2 * 3 / 4 * 2 / 4.0 + 4.5 - 1
89 % 10 / 4 * 2.0 / 5 + (1.5 + 1.0 / 2) * 2

You must log in before you can solve this problem.


Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.