Important Notice:

Practice-It will be discontinued as of November 1st, 2024. After this date, the website will remain online for a transitional period, but login will be restricted to University of Washington NetID authentication. This marks the next phase towards the platform's full retirement. Thank you for your use and support of the application over the years.

If you are looking for an alternative, a similar tool, CodeStepByStep, was developed independently by the original author of Practice-It, and is available at codestepbystep.com**

logo Practice-It logo

expressions

Language/Type: Java basics expressions mod
Author: Marty Stepp (on 2020/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 * 3 / 8 + 2.5 * 2
26 % 10 % 4 * 3
(5 * 7.0 / 2 - 2.5) / 5 * 2
12 / 7 * 4.4 * 2 / 4
"hello 34 " + 2 * 4
"2 + 2 " + 3 + 4
3 + 4 + " 2 + 2"
41 % 7 * 3 / 5 + 5 / 2 * 2.5
22 + 4 * 2
10.0 / 2/4
23 % 8 % 3
17 % 10 / 4
8 / 5 + 13 / 2 / 3.0
12 - 2 - 3
6/2 + 7/3
6 * 7 % 4
(2.5 + 3.5) / 2
9 / 4 * 2.0 - 5/4
3 * 4 + 2 * 3
177 % 100 % 10 / 2
9 / 2.0 + 7 / 3 - 3.0 / 2
813 % 100 / 3 + 2.4
27 / 2 / 2.0 * (4.3 + 1.7) - 8 / 3
89 % (5 + 5) % 5
4.0 / 2 * 9 / 2
392 / 10 % 10 / 2
53 / 5 / (0.6 + 1.4) / 2 + 13 / 2
8 * 2 - 7 / 4
37 % 20 % 3 * 4
2.5 * 2 + 8 / 5.0 + 10 / 3
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.