logo CodeStepByStep logo

expressions5

Language/Type: PHP 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 Float).

3 * (5 - 2) - 3 - 2 * 2
4 * 7 % 8 + 132 % 10 + 3 % 4
9 + 9 . "9 + 9" + 9 . 9
19 / 2 / 2.0 + 2.5 * 6 / 2 + 0.5 * 4
1 < 3 + 4 || !(5 / 2 == 2)

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.