PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

Which code fragment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service.

The Web service is hosted at the following URL.
http://www.contoso.com/TemperatureService/Convert.asmx

You need to ensure that the client computers can communicate with the service as part of the <system.serviceModel> configuration.
Which code fragment should you use?

Which line of code should you insert at line 08?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET.You write the following code segment. (Line numbers are included for reference
only.)
01 DataTable dt = new DataTable();
02 dt.Columns.Add(“number”);
03 dt.Columns.Add(“string”);
04 dt.Rows.Add(1, “3”);
05 dt.Rows.Add(2, “2”);
06 dt.Rows.Add(3, “1”);
07 var result = from p in dt.AsEnumerable()
08
09 foreach (var number in result) {
10 Console.Write(number.ToString());
11 }
You need to display the string “321”.Which line of code should you insert at line 08?

Which three actions should you perform next?

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You need to host the WCF service on the IIS Web server. First, you create a new folder for your application files. Next, you use the IIS management tool to create a Web application in the new folder. Which three actions should you perform next? (Each correct answer presents part of the solution. Choose three.)

Which code segment should you insert at line 06?

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

You write the following code segment in the code-behind file to create a Web form. (Line numbers are included for reference only.)

01 string strQuery = “select * from Products;”
02 + “select * from Categories”;
03 SqlCommand cmd = new SqlCommand(strQuery, cnn);
04 cnn.Open();
05 SqlDataReader rdr = cmd.ExecuteReader();
06
07 rdr.Close();
08 cnn.Close();

You need to ensure that the gvProducts and gvCategories GridView controls display the data that is contained in the following two database tables:

The Products database table
The Categories database table

Which code segment should you insert at line 06?

Which code segment should you use?

You are creating a Windows Forms application by using the .NET Framework 3.5. You write
a code segment to connect to a Microsoft Access database and populate a DataSet.You need
to ensure that the application meets the following requirements:
It displays all database exceptions.
It logs all other exceptions by using the LogExceptionToFile.
Which code segment should you use?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 andthe .NET Framework 3.5. You plan to create the presentation layer of the application. Users will access the application

on Windows Vista client computers that have the .NET Framework 3.5 installed. You need to ensure that the application meets the following requirements:

It runs in Microsoft Internet Explorer.
It provides maximum usability by using 3D graphics and animations. It does not require additional components to be installed on the client computers. What should you do?