Top 15 cram 70-569 for candidates (61 to 75)

Question No. 61

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.)

01 public interface IMyService

02 {

04 string ProcessString(string name);

05 }

You create a host for the WCF service. You also create a service endpoint at http://localhost:8080/service. You add an instance of the HttpTransferEndPointBehavior class to the host. You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://localhost:8080/service/process? name=value Which code segment should you insert at line 03?

A.

08 Find<ServiceMetadataBehavior>();

09 if (smb != null)

10 {

12 }

13 else

14 {

15 smb=new ServiceMetadataBehavior();

16 serviceHost.Description.Behaviors.Add(smb);

17 }

18 smb.HttpGetUrl=mexAddress;

When you browse to the base address of the service, you receive the following message:

"Metadata publishing for this service is currently disabled." You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent. You need to enable metadata publishing. What should you do?

A. Delete lines 15 and 16.

B. Modify the code segment at line 03 in the following manner. Uri mexAddress=ne Uri("/service");

C. Insert the following code segment at line 11. smb.HttpGetEnabled=true;

D. Insert the following code segment at line 19. smb.HttpGetEnabled=true;

Answer: D


Question No. 69

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You plan to add an existing .NET component into the current application. The .NET component has insufficient documentation. The structure of the classes in the component must be analyzed before they are incorporated in the application. You need to analyze the members in the component and the dependencies among them. What should you do?

A. Enable logging on the component.

B. Run a code profiler on the component.

C. Create a class diagram for the component.

D. Create a sequence diagram for the component.

Answer: C


Question No. 70

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application currently generates output to a comma-delimited text file. Users have requested the output be generated to an XML file, a PDF file, or an HTML file. You need to design the application to allow output in different formats. You also need to allow addition of different output format types without recompilation of the application. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

A. Create separate methods for each output format type.

B. Create a separate assembly for each output format type.

C. Create an interface for output format type classes to inherit.

D. Create an assembly that contains a class for each output format type.

E. Use an if.. then.. else block to decide the type of output.

F. Use the System.Reflection namespace to load the proper output type.

Answer: BCF


Question No. 71

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You configure a binding to enable streaming. You need to ensure that the client application is able to stream large XML files to the WCF service. Which operation contract should you create?

A. [OperationContract]void UploadFile(Stream xmlData);

B. [OperationContract]void UploadFile(XmlWriter xmlData);

C. [OperationContract]void UploadFile(StreamWriter xmlData);

D. [OperationContract]void UploadFile(byte[] xmlData);

Answer: A


Question No. 72

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You need to ensure that the service can send data in the following format to the client applications.

<Account Id="">

<Name> </Name>

<Balance Currency=""> </Balance>

</Account>

Which code segment should you use?

A. [Serializable]public class Account{ [XmlAttribute] public string Id; [XmlElement] public string Name; [XmlAttribute] public string Currency; [XmlElement] public double Balance;}

B. [DataContract]public class Account{ [DataMember(Order=0)] public string Id; [DataMember(Order=1)] public string Name; [DataMember(Order=0)] public double Balance; [DataMember(Order=1)] public string Currency;}

C. [Serializable]public class Account{ [XmlAttribute] public string Id; public string Name; [XmlElement("Balance")] public BalanceVal Balance;}[Serializable]public class BalanceVal{ [XmlText] public double Amount; [XmlAttribute] public string Currency;}

D. [DataContract]public class Account{ [DataMember(Order=0)] public string Id; [DataMember(Order=1)] public string Name; [DataMember(Name="Balance", Order=2)] public BalanceVal Balance;}[DataContract]public struct BalanceVal{ [DataMember(Order=0)] public double Balance; [DataMember(Order=1)] public string Currency;}

Answer: C


Question No. 73

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You are designing the database schema of the application. The database schema is as shown in the exhibit. (Click the Exhibit button.)

You need to ensure that the design meets the following requirements:

The database contains no duplicate data.

A category can contain zero or more products.

Each product can be associated with zero or more categories.

What should you do?


A. Create a CategoryID column in the Products table.Create a foreign key constraint from the Products table to the Categories table on CategoryID.

B. Create a ProductID column in the Categories table.Create a foreign key constraint from the Categories table to the Products table on ProductID.

C. Create a CategoryID column in the Products table.Create a foreign key constraint from the Products table to the Categories table on CategoryID.Create a ProductID column in the Categories table.Create a foreign key constraint from the Categories table to the Products table on ProductID.

D. Create a ProductsCategories table that includes the ProductID and CategoryID columns.Create a foreign key constraint from the ProductsCategories table to the Products table on ProductID.Create a foreign key constraint from the ProductsCategories table to the Categories table on CategoryID.Create a compound primary key on the ProductsCategories table that includes the ProductID and CategoryID columns.

Answer: D


Question No. 74

You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application retrieves a large amount of application-wide data from a database. The data retrieval is very slow. The data gets refreshed every 30 minutes. You need to ensure that the data is available for frequent access. You also need to make the most efficient use of resources. Which storage mechanism should you use?

A. View state

B. Session state

C. Application state

D. Application cache

Answer: D


Question No. 75

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?

A. Use a Microsoft ASP.NET application.

B. Use a Microsoft Silverlight application.

C. Use Windows Presentation Foundation Browser Application.

D. Use a Windows Presentation Foundation application along with the ClickOnce deployment.

Answer: C


Microsoft 70-569 Certification Sample Questions and Answers: http://www.braindumpsall.net/70-569-dumps/

P.S. New 70-569 dumps PDF: http://www.4easydumps.com/70-569-dumps-download.html