Microsoft TestInside 70-643 v1 21 by JW 98q.vce

Microsoft TestInside 70-643 v1 21 by JW 98q.vce 70-643 27-May-2008

pdf version:http://www.certbible.org/testinside-microsoft-ts-70-643-v121/

QUESTION 1
You have a .NET Remoting object named CKProductLoader. The CKProductLoader class is a serveractivated
Singleton object.
The CKProductLoader class loads product data into a Microsoft SQL Server database. The Load
method of the CKProductLoader class is a time-consuming method to call.
You are developing a client application that uses the CKProductLoader class. You want to ensure that
the client application can continue to respond to user input while the Load method of the
CKProductLoader class is called.
What should you do?
A. Use an AsyncDelegate instance to call the Load method.
B. Modify the CKProductLoader class to be derived from IAsyncResult.
C. Configure the CKProductLoader class to be a client-activated .NET Remoting object.
D. Configure the client application to have its own remoting channel that matches the server’s channel
and formatter.
Answer: A
Explanation: Asynchronous executation will enable the caller to continue to execute. One of the
innovations provided by the asynchronous pattern is that the caller decides whether a particular call should
be asynchronous. It is not necessary for a called object to do additional programming for supporting
asynchronous behavior by its clients; asynchronous delegates provide for this in the pattern.
Incorrect Answers
B: Incomplete solution.
C: Remoting objects do not meet the requirements of this scenario.
D: Channels are just a way to communicate.
Reference: .NET Framework Developer’s Guide, Asynchronous Design Pattern Overview
QUESTION 2

Actualtests.org – The Power of Knowing
You develop an ASP.NET application that consumes a third-party XML Web service named
CreditService. CreditService contains a Web method named ChargeCard. ChargeCard takes as input
a credit card number, a billing address, and a monetary amount and returns a Boolean variable that
indicates whether or not the card was charged.
Calls to ChargeCard take one minute to complete. You do not want users to have to wait while
ChargeCard executes. You want users to be taken automatically to the next Web page of the
application.
Which code segment should you use to call CreditService?
A. CreditService.ChargeCard(ccNumb, billAddress,
Amount);
Server.Transfer(“process.aspx”);
B. CreditService.ChargeCard(ccNumb,
billAddress, amount);
Response.Redirect(“process.aspx”);
C. CreditService.BeginChargeCard(ccNumb, billAddress,
amount, new AsyncCallback(CCResponse), null);
Server.Transfer(“process.aspx”);
private void CCResponse(IAsyncResult aRes) {
CreditService.EndChargeCard(aRes);
}
D. IAsyncResult AsyncResult =
CreditService.BeginChargeCard(ccNumb, billAddress,
amount, null, null);
AsyncResult.AsyncWaitHandle.WaitOne();
CreditService.EndChargeCard(AsyncResult);
Server.Transfer(“process.aspx”);
Answer: C
Explanation: AsyncCallback provides a way for client applications to complete an asynchronous operation.
This callback delegate is supplied to the client when the asynchronous operation is initiated. The event
handler referenced by AsyncCallback contains program logic to finish processing the asynchronous task for
the client.
Incorrect Answers
A, B: Asynchronous operation is not set up.
D: We must use the AsyncCallback delegate.
Reference:
.NET Framework General Reference, Asynchronous Programming Design Pattern [C#]
.NET Framework Class Library, AsyncCallback Delegate [C#]
QUESTION 3
You are creating a .NET Remoting object named BankOps. BankOps exposes methods for creating,
finding, and modifying objects in a class named BankCustomer. BankCustomer has a large number of
read/write properties.

Donwload Free PassGuide Braindumps-The Most Realistic Practice Questions and Answers,Help You Pass any Exams

Actualtests.org – The Power of Knowing
You expect a large number of remote client applications to frequently connect to BankOps. You
expect these remote client applications to use many of the BankCustomer properties. You want to
ensure that network traffic is minimized.
What should you do?
A. Add the Serializable attribute to the BankCustomer class.
B. Implement the IDisposable interface in the BankCustomer class.
C. Derive the BankCustomer class from ContextBoundObject.
D. Derive the BankCustomer class from MarshalByRefObject.
Override the inherited InitializeLifetimeService method to return null.
Answer: A
Explanation: Making the Class Serializable would make the properties available.
The easiest way to make a class serializable is to mark it with the Serializable attribute.
Note: The basic idea of serialization is that an object should be able to write its current state, usually
indicated by the value of its member variables, to persistent storage. Later, the object can be re-created by
reading, or deserializing, the object’s state from the storage.
Incorrect Answers
B: The IDisposable interface defines a method to release allocated unmanaged resources.
C: A context is a set of properties or usage rules that define an environment where a collection of
objects resides. The rules are enforced when the objects are entering or leaving a context. Objects
that reside in a context and are bound to the context rules are called context-bound objects.
D: A MarshalByRefObjec enables access to objects across application domain boundaries in
applications that support remoting.
The InitializeLifetimeService method obtains a lifetime service object to control the lifetime policy
for this instance.
Reference:
.NET Framework Class Library, MarshalByRefObject Class
Free download:pass4sure Microsoft 70-643
Free download:testking Microsoft 70-643

password:www.certbible.org

High quality IT Certification Training Exam Questions, Study Guides and Practice Tests are in Downloadable PassGuide Testing Engine,Successful for IT Certification or Full Refund for you.Contact Us:Sales@PassGuide.com

Type

Exam Bible New Questions & Answers

Latest Updated

Download link
PDF All Certbible 's Exam Dumps

597

1 days ago Available
Free PassGuide

PassGuide Training Materials & Practice Tests

free certification guide

About the Author

Free Certification Exam Download has written 10018 stories on this site.

If you have any doubts about legality of content or you have another suspicions, feel free to contact us:CertGuard@Gmail.com

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

Copyright © 2010 CertBible – IT certifications Exams,Study Guide,Practice Test,Training Materials.. PassGuide,Pass4sure,Testking,Testinside,Pass4side,Certifyme,Transcender,Examworx,Topcerts,Actualtests. Cisco microsoft Comptia CCNA CCIE MCSE Oracle ccnp hp ibm citrix Sitemap