PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET. The application connects to a Microsoft SQL Server 2005 database. You write
the following code segment.
string query = “Select EmpNo, EmpName from dbo.Table_1;
select Name,Age from dbo.Table_2″;
SqlCommand command = new SqlCommand(query, connection);
SqlDataReader reader = command.ExecuteReader();
You need to ensure that the application reads all the rows returned by the code
segment.Which code segment should you use?

What should you do?

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service will validate certificates to authorize client applications. You write the following code segment.

class Store: IStore
{
public void RemoveOrder(int ordered)
{}
}

You need to ensure that only those client applications that meet the following criteria can access the RemoveOrder method:

“AdminUser” is the subject in the client certificate. “1bf47e90f00acf4c0089cda65e0aadcf1cedd592” is the thumbprint in the client certificate.

What should you do?

What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The configuration and customization of Web Service applications forms part of your responsibilities at Domain.com.
You are currently busy developing an Extensible Markup Language (XML) Web Service named MarketService. This MarketService will be used by the Domain.com Marketing department. You are now required to create a Web method named ObtainMarket. The ObtainMarket Web method must return global posisioning system (GPS) coordinates of a mobile phone given a mobile phone number.
In you development of the ObtainMarket Web method, you must ensure that it can be uniquely identified among all the Web services that are implemented by the Sales and Transport departments.

What should you do? (Choose the correct code segment.)

Which two actions should you perform?

You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Framework version 3.5.

A JavaScript code segment in the AJAX application does not exhibit the desired behavior.
Microsoft Internet Explorer displays an error icon in the status bar but does not prompt you to debug the script.
You need to configure the Internet Explorer to prompt you to debug the script.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you insert at line 04?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET. The application connects to a Microsoft SQL Server 2005 database.You write
the following code segment. (Line numbers are included for reference only.)
01 using (SqlConnection connection = new SqlConnection(connectionString)) {
02 SqlCommand cmd = new SqlCommand(queryString, connection);
03 connection.Open();
04
05 while (sdrdr.Read()){
06 // use the data in the reader
07 }
08 }
You need to ensure that the memory is used efficiently when retrieving BLOBs from the
database.Which code segment should you insert at line 04?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application will be used by multiple types of users. The application will also interact with external applications. You need to design the interaction among the application, the users of the application, and the external applications. What should you do?

What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The development and deployment of Web Service applications forms part of your responsibilities at Domain.com. You have just developed an Extensible Markup Language (XML) Web service application by making use of Microsoft Visual Studio 2005. Now you need to deploy the project that contains the application to another computer on the Domain.com network. The other computer intended to have the project deployed does not have Microsoft Internet Information Services (IIS) 6.0 installed. However, you need to deploy the project.

What should you do?

What are three possible reasons that could cause this increase?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter.
You need to identify the reasons for this increase.
What are three possible reasons that could cause this increase? (Each correct answer presents a complete solution. Choose three.)