logo Practice-It logo

expressions

Language/Type: Java expressions mod
Author: Whitaker Brand (on 2010/12/28)

Trace the evaluation of the following expressions, and give their resulting values.

3 * 4 + 5 * 6 + 7 * -2
1.5 * 2.0 + (5.5 / 2) + 5 / 4
23 % 5 + 31 / 4 % 3 - 17 % (16 % 10)
"1" + 2 + 3 + "4" + 5 * 6 + "7" + (8 + 9)
345 / 10 / 3 * 55 / 5 / 6 + 10 / (5 / 2.0)
1 / 2 > 0 || 4 == 9 % 5 || 1 + 1 < 1 - 1

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.