DRAG DROP
Flight information data provided by Margie's Travel is updated both locally and remotely. When the data is synced, all changes need to be merged together without causing any data loss or corruption.
You need to implement the Sync() method in the MargiesTravelSync.es file.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code 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.)
Solution:
http://msdn.microsoft.com/en-us/library/ms135424.aspx
Does this meet the goal?
Correct Answer:
A
You need to implement the Get() method in the bookstore Web API application to be able to find books by using an ad hoc query.
Which method should you use?
Correct Answer:
D
HOTSPOT
You are creating an application that retrieves Microsoft SQL Server data from two tables named Product and ProductModel.
You need to store in two separate lists all the names of the products and the product models for later use by the application.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Solution:
Box 1:
Two Select statements to get two results. Box 2: (Reader.Read());
The SqlDataReader.Read Method advances the SqlDataReader to the next record. The default position of the SqlDataReader is before the first record. Therefore, you must call Read to begin accessing any data.
Return Value
Type: System.Boolean
true if there are more rows; otherwise false. Box 3: Reader.NextResult();
The SqlDataReader.NextResult method advances the data reader to the next result, when reading the results of batch Transact-SQL statements. Used to process multiple results, which can be generated by executing batch Transact-SQL statements.
By default, the data reader is positioned on the first result. Box 4: (Reader.Read());
References: https://msdn.microsoft.com/en-
us/library/system.data.sqlclient.sqldatareader.nextresult(v=vs.110).aspx
Does this meet the goal?
Correct Answer:
A
DRAG DROP
You are developing a WCF service.
You need to implement transport security by using NTLM authentication and NetTcpBindings.
Which configuration values should you use? (To answer, drag the appropriate configuration values to the correct location or locations in the answer area. Each configuration value 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.)
Solution:
Does this meet the goal?
Correct Answer:
A
DRAG DROP
The GetQueueItems() action in the InboundQueueController controller is not populating the view with data. The action must populate the view with data by calling the GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory class.
You need to modify the action to populate the view with data.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code 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.)
Solution:
Does this meet the goal?
Correct Answer:
A