exam questions

Exam MB-500 All Questions

View all questions & answers for the MB-500 exam

Exam MB-500 topic 4 question 18 discussion

Actual exam question from Microsoft's MB-500
Question #: 18
Topic #: 4
[All MB-500 Questions]

HOTSPOT -
You are a Dynamics 365 Finance developer.
You have the following code: (Line numbers are included for reference only.)

You need to evaluate the code.
What is the correct output for the method? To answer, select the appropriate option in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 2: One, Three, Four, Five -
By using a finally block, you can clean up any resources that are allocated in a try block, and you can run code even if an exception occurs in the try block.
Reference:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/try-finally

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
examcram22
Highly Voted 2 years ago
(5,2) - this should be - One, Two, Four, Five Finally is always executed.
upvoted 15 times
lamawehbe
11 months, 3 weeks ago
i agree
upvoted 1 times
...
...
Betitren
Highly Voted 1 year, 10 months ago
The first example with (5, 2) is One, Two, Four and Five, and the second example with (4, 0) is One, Three, Four and Five.
upvoted 6 times
lamawehbe
11 months, 3 weeks ago
i agree
upvoted 1 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 ...