PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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 Microsoft.NET Remoting components forms part of your responsibilities at Domain.com. You have just completed the development of a Microsoft.NET Remoting component. You now need to call a remote method asynchronously and obtain an IAsyncResult instance as a result. You thus need to perform additional processing while the asynchronous operation is taking place.

What should you do?

What should you do?

You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.

<asp:contentplaceholder id=”area1″ runat=”server”/>
<asp:contentplaceholder id=”area2″ runat=”server”/>

You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in
Template.master.

<asp:Content ContentPlaceHolderID=”area1″ Runat=”Server”/> <asp:Content ContentPlaceHolderID=”area2″ Runat=”Server”/>

You need to configure the Web pages so that default content will be shown in the area2 ContentPlaceHolder control whenever a Web Form does not provide that content. What should you do?

Which approach should you choose?

You are an enterprise application developer. You create a large-scale, managed application that needs a consistent approach to event logging. The application must format and log events to 20 destinations. Events from 15 sources must be collated onto a single computer. The application must perform the following tasks: Maintain consistent logging and instrumentation practices, both
within an application and across the enterprise.Ease the learning curve for developers by using a consistent architectural model.Support custom implementations of formatters and event sinks.Generate log entries as discrete events or as part of a traced process. You need to select an appropriate implementation approach. Which approach should you choose?

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 implementation of asynchronous calls and remoting events form part of your responsibilities at Domain.com. You have created a Microsoft.NET Remoting component that will import data into a database. The Microsot.NET Remoting component seems to work but you had complaints regarding sluggish client-side performance. To this end you need to apply the OneWay attribute to methods in the component so as to improve the client-side performance.

What should you do?

Which code segment should you use?

You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives.

<%@ Master Language=”VB” CodeFile=”article.master.vb” Inherits=”article” %>

You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use?

What should you do?

You are an enterprise application developer. You are developing a component for a smart client application. The component will be accessed simultaneously by user interface threads and background threads. The threads must be able to access component properties and methods. The threads must not leave the component in an invalid state. You need to select an appropriate mechanism to ensure valid component state. 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 creation, configuration and deployment of Remoting applications form part of your responsibilities at Domain.com.
You are currently developing a client application that will use Microsoft.NET Remoting to access functionality implemented by a remote component. This remote component is exposed through the HyperText Transfer Protocol (HTTP) channel. Furthermore the remote component will make use of the default formatter to serialize and deserialize data.
You now need to configure the client application in such a way so as to enable it to serialize data in a form that is expected by the remote component. You may not use custom channels and formatters.

What should you do? (Choose the correct configuration.)