nerdexam
Microsoft

98-361 · Question #324

You are developing a C# program. You write the following code: - int x = 10 - int y = ++x - int x = y++; What will be the variable z after all the above statements are executed?

The correct answer is B. 11. See the full explanation below for the reasoning.

Question

You are developing a C# program. You write the following code:

  • int x = 10
  • int y = ++x
  • int x = y++;

What will be the variable z after all the above statements are executed?

Options

  • A10
  • B11
  • C12
  • D13

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    81% (25)
  • C
    6% (2)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice