logo Practice-It logo

expressions1

Language/Type: JavaScript expressions
Author: Melissa Medsker-Galloway (on 2016/11/18)

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).

1 + 2 * 3 + 7 * 2 % 5
1 * 5 + 3 * 4 % 2
1 + 9 % 3 * 1 - 12
2.5 * 3.0 + 2.75 * 4.0 / 2.0
2 / 3 * 12.0 + 9 / 2.25
22.0 + 8 / 3 * 6.0 - 6 / 3

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.