exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 22 discussion

Actual exam question from Microsoft's 98-388
Question #: 22
Topic #: 1
[All 98-388 Questions]

You need to evaluate the following code segment:

What happens when the code segment is run?

  • A. iNum has a value of 0.
  • B. An exception is thrown.
  • C. iNum has a value of 2.
  • D. iNum has a value of 3.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KaleIsGross
Highly Voted 4 years, 2 months ago
Answer is C
upvoted 5 times
...
Abdullahsawaftah
Most Recent 3 years, 11 months ago
true,i checked by running the code myself.====> 2 is the answer.
upvoted 3 times
...
Abhitera
4 years, 3 months ago
Answer shoud be 3 as it does round of
upvoted 1 times
benblakemore
4 years, 3 months ago
Incorrect, casting to int ignores trailing decimal values and results in 2. I checked by running the code myself.
upvoted 8 times
Abhitera
4 years, 3 months ago
Ya true brother...u r right
upvoted 2 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...