State the order of evaluation of the operators in each of the following C# statements and show the value of x after each statement is performed:

a) x = 7 + 3 * 6 / 2 - 1;
b) x = 2 % 2 + 2 * 2 - 2 / 2;
c) x = (3 * 9 * (3 + (9 * 3 / (3))));


a) *, /, +, -, =; Value of x is 15.
b) %, *, /, +, -, =; Value of x is 3.
c) x = (3 * 9 * (3 + (9 * 3 / (3))));
6 4 5 3 1 2
Value of x is 324.

Computer Science & Information Technology

You might also like to view...

How can you ease the managing of permissions across different objects?

What will be an ideal response?

Computer Science & Information Technology

When you click on a video in a presentation, the video Tools tab displays two tabs: the Format tab and the ________ tab

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which Cisco IOS command is used to disable the use of the zero subnet?

A) no subnet-zero B) ip classless C) no ip classless D) no ip subnet-zero

Computer Science & Information Technology

If you have a JavaScript event that occurs in one frame and the effect of the event is only seen within the same frame, then your JavaScript code should reside ____.

A. in the same frame file B. in a separate frame file C. in a separate file that has nothing to do with the frame D. any of the above

Computer Science & Information Technology