logo Practice-It logo

expressions

Language/Type: Java expressions mod
Author: Marty Stepp (on 2010/12/28)

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

-(6 + 3 - 2 * 3)
15 % 6 + 5 % 5 + 12 % 7 % 3
9 / 2 / 2.0 + 9 / 2.0 / 2
5 + 6 + "7" + 8 + 9 + 2 * 3
!(3 < 7 && -1 != 8)

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.