logo CodeStepByStep logo

ExpressionsExam4

Language/Type: C# 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 double).

5 + 2 * 3 + 12 / 5
13 / 2 / 2.0 + 5 / 2.0 / 2
18 % 5 + 2 % 5 + 28 % 11 % 4
6 == 3 * 2 && !(7 < 6) && 1 + 1 != 3
2 + 2 + 2 + "2" + 2 + 2 + 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.