logo CodeStepByStep logo

expressions1

Language/Type: PHP expressions mod
Author: Melissa Hovik (on 2018/01/05)

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

8 + 5 * 3 / 2
1.5 * 4 * 7 / 8 + 3.4
73 % 10 - 6 % 10 + 28 % 3
3 / 12 / 0.5 / (1.0 * 2) + 10 / 5
10 > 11 == 4 / 3 > 1

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.