logo CodeStepByStep logo

expressionsExam5

Language/Type: Java expressions %

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 "" quotes around a String or a .0 at the end of a double).

1 + 5 + 15 / 2 + 4 * 3 - 2
3.0 * (23 % 5) / 2 + 2 * 7 / 3
2 + 2 + "[" + 2 + 4 * 2 + "]" + 3 + 5
!(3 < 2) && (4.3 > 3 || 3 < 2)
20 % 3 + 74 % 5 + 3 % 8

You must log in before you can solve this problem.

Log In

Need help?

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

Is there a problem? Contact a site administrator.

©, all rights reserved.