Practice-It! logo

Self-Check 2.2: Expressions 1

Added by: Marty Stepp
Keywords: 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 a .0 at the end of a double).

2 + 3 * 4 - 6
14 / 7 * 2 + 30 / 5 + 1
(12 + 3) / 4 * 2
(238 % 10 + 3) % 7
(18 - 7) * (43 % 10)
2 + 19 % 5 - (11 * (5 / 2))
813 % 100 / 3 + 2.4
26 % 10 % 4 * 3
22 + 4 * 2
23 % 8 % 3
12 - 2 - 3
6/2 + 7/3
6 * 7 % 4
3 * 4 + 2 * 3
177 % 100 % 10 / 2
89 % (5 + 5) % 5
392 / 10 % 10 / 2
8 * 2 - 7 / 4
37 % 20 % 3 * 4
17 % 10 / 4

You must log in before you can solve this problem.

user
Log In

If you do not understand how to solve a problem or why your solution code doesn't work, please contact your TA or instructor.

If something seems wrong with the Practice-It system itself (errors, slow performance, incorrect problem descriptions/tests, etc.), please contact us.


Is there a problem?
Contact a Practice-It administrator.