exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 3 question 16 discussion

Actual exam question from Microsoft's 70-487
Question #: 16
Topic #: 3
[All 70-487 Questions]

DRAG DROP -
You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
You have the following code:

Which code segment should you use?
Which code segments should you include in Target 1 and Target 2 to complete the code? (To answer, drag the appropriate code segments to the correct location in the answer area. Each segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Each correct selection is worth one point.
NOTE:
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Synchronous to Asynchronous Connection Open
You can upgrade an existing application to use the new asynchronous feature. For example, assume an application has a synchronous connection algorithm and blocks the UI thread every time it connects to the database and, once connected, the application calls a stored procedure that signals other users of the one who just signed in.
When converted to use the new asynchronous functionality, the program would look like: await conn.OpenAsync(); await cmd.ExecuteNonQueryAsync();
References:
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/asynchronous-programming

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
flaviugaitan
4 years, 5 months ago
Answer is correct
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago