PrepAway - Latest Free Exam Questions & Answers

Author: admin

Which code segment should you insert at line 05 to ensure that the Order and the OrderDetail tables are popula

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.

The application contains a DataSet object named OrderDS that has the Order and OrderDetail tables as shown in the following exhibit.

You write the following code segment. (Line numbers are included for reference only.)

01 private void GetOrders(SqlDataConnection cn) {
02 SqlCommand cmd = cn.CreateCommand();
03 cmd.CommandText = "Select * from [Order]; Select * from [OrderDetail];";
04 SqlDataAdapter da = new SqlDataAdapter(cmd);
05
06 }

You need to ensure that the Order and the OrderDetail tables are populated.

exhibit Which code segment should you insert at line 05?

Which code segment should you insert at line 03 to fill the Order table with the next set of 5 records for eac

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.

The application contains a DataSet object named orderDS. The object contains a table named Order as shown in the following exhibit.

The application uses a SqlDataAdapter object named daOrder to populate the Order table.
You write the following code segment. (Line numbers are included for reference only.)

01 private void FillOrderTable(int pageIndex) {
02 int pageSize = 5;
03
04 }

You need to fill the Order table with the next set of 5 records for each increase in the pageIndex value.

exhibit Which code segment should you insert at line 03?

What should you do to add an activity before the throwActivity1 activity?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.

The workflow design is as shown in the following exhibit. (Click the Exhibit button.)

You need to add an activity before the throwActivity1 activity. You also need to ensure that the added activity allows the throwActivity1 activity to throw an exception only if the Approved event is not received in four hours.

exhibit What should you do?

What should you do to ensure that the workflow queue is available for local services before the custom activit

You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5. The workflow has an event-based activity that waits for an item to arrive in a workflow queue. You need to ensure that the workflow queue is available for local services before the custom activity is executed. What should you do?

What should you do to add a CodeActivity activity named CleanupActivity for the eventDrivenActivity1 branch?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.

The workflow has a ListenActivity activity as shown in the following exhibit. (Click the Exhibit button.)

The event handlers are bound to an ExternalDataExchange interface that defines the Approve and Decline events.
You need to add a CodeActivity activity named CleanupActivity for the eventDrivenActivity1 branch to execute when a Decline event is raised.

exhibit What should you do?

What should you do to ensure that the application displays the details of the client-side object?

You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Framework version 3.5.
You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application.
You need to ensure that the application displays the details of the client-side object on the debugger console.
What should you do?

What should you do to configure the application to use the ASP.NET Framework version 3.5 …?

You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any features that are deprecated in the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0.
You need to configure the application to use the ASP.NET Framework version 3.5 without recompiling the application.
What should you do?