Which of the following is the statement that must be applied second?

You work as a developer at ABC.com. The ABC.com network consists of a single domain named
ABC.com.
You have been instructed to develop an application that accesses data from a file. You have been
informed that in the event of an error occurring when the file is read, a block of code should be
triggered. Also, another block of code must be triggered regardless of whether this error occurs or
not.

To achieve this, you require the use of three statements that must be applied in a specific order.
Which of the following is the statement that must be applied second?

You work as a developer at ABC.com. The ABC.com network consists of a single domain named
ABC.com.
You have been instructed to develop an application that accesses data from a file. You have been
informed that in the event of an error occurring when the file is read, a block of code should be
triggered. Also, another block of code must be triggered regardless of whether this error occurs or
not.

To achieve this, you require the use of three statements that must be applied in a specific order.
Which of the following is the statement that must be applied second?

A.
The completely statement.

B.
The finally statement.

C.
The restore statement.

D.
The throw statement.

E.
The debug statement.

F.
The throw statement.

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Helpful_Coder

Helpful_Coder

The answer is incorrect. The question is asking about a try, catch finally sequence. In this case, the second command called would be catch, not finally.

Reference:
http://www.w3schools.com/jsref/jsref_try_catch.asp

JIm

JIm

Do you think MS adds wrong answers into online resources like these to throw off people that are trying to study? I see a LOT of incorrect information with misspells and bad code examples being tossed around in brain dumps and such. And to be honest, the MS Virtual academy resources really do NOT have focused, well thought out sessions. They basically talk about general JS capabilities but they don’t really match the format that the test is given in – which is highly dubious at best. Almost as if every question is trying to steer you clear of the concepts they are trying to test you on.

For instance, when they ask you to “insert the code that would go in line 4” then give you four 12 line code blocks to choose from – where every line is the same except one. It’s like they are testing your eyesight more than your understanding of the concepts.