exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 5 discussion

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

You need to analyze the following code segment. Line numbers are included for reference only.

What is the output of line 12 when you run printInt()?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
godzlupet
2 years ago
Selected Answer: A
cprrect
upvoted 1 times
...
Abdullahsawaftah
3 years, 11 months ago
can you tell me how the answer is 0? i think its 1
upvoted 1 times
ln1593
3 years, 10 months ago
The num variable was still equal to 1 even after the function was called. Therefore num = num(1) - 1 = 0. The num variable in addOne() is different than the num variable in printInt().
upvoted 1 times
...
...
Abhitera
4 years, 4 months ago
Cool correct answer
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 ...