exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 2 question 4 discussion

Actual exam question from Microsoft's 70-480
Question #: 4
Topic #: 2
[All 70-480 Questions]

DRAG DROP -
You are developing an application that reads information from a file.
The application must:
✑ Execute a block of code if there is an error accessing the file
✑ Execute a second block of code whether or not there is an error accessing the file
You need to ensure that the error handling requirements are met.
Which three statements should you implement in sequence? (To answer, move the appropriate statements from the list of actions to the answer area and arrange them in the correct order.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Explanation -
The fileopen statement is put within the try clause.
The catch(e) will catch a fileopen error.
The finally clause will be executed regardless of whether an error occurs in the try clause proceeding it

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
lejake888
Highly Voted 5 years, 6 months ago
Pretty sure this is the answer: try catch(e) finally
upvoted 15 times
...
DAshutosh246
Most Recent 5 years, 6 months ago
the answer is confusing!
upvoted 2 times
...
Huda
6 years ago
The question not complete
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 ...