READ Free Dumps For Microsoft- 70-483
Question ID 16962 | You are developing an application that includes a class named Order. The application will
store a collection of Order objects.
The collection must meet the following requirements:
✑ Use strongly typed members.
✑ Process Order objects in first-in-first-out order.
✑ Store values for each Order object.
✑ Use zero-based indices.
You need to use a collection type that meets the requirements.
Which collection type should you use?
|
Option A | Queue<T>
|
Option B | SortedList
|
Option C | LinkedList<T>
|
Option D | HashTable
|
Option E | Array<T>
|
Correct Answer | A |
Explanation Explanation: Queues are useful for storing messages in the order they were received for sequential processing. Objects stored in a Queue
are inserted at one end and removed from the other. http://msdn.microsoft.com/en-us/library/7977ey2c.aspx
Question ID 16963 | You are developing an application that includes the following code segment. (Line numbers
are included for reference only.)
The GetCustomers() method must meet the following requirements:
✑ Connect to a Microsoft SQL Server database.
✑ Populate Customer objects with data from the database.
✑ Return an IEnumerable<Customer> collection that contains the populated
Customer objects.
You need to meet the requirements.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)
|
Option A | Insert the following code segment at line 17: while (sqlDataReader.GetValues())
|
Option B | Insert the following code segment at line 14: sqlConnection.Open();
|
Option C | Insert the following code segment at line 14: sqlConnection.BeginTransaction();
|
Option D | Insert the following code segment at line 17: while (sqlDataReader.Read())
|
Option E | Insert the following code segment at line 17: while (sqlDataReader.NextResult())
|
Correct Answer | B,D |
Explanation Explanation: SqlConnection.Open - Opens a database connection with the property settings specified by the ConnectionString. http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.open.aspx SqlDataReader.Read - Advances the SqlDataReader to the next record. http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.read.aspx