70-529 Exam

MS.NET Framework 2.0 - Distributed Appl Development

  • Exam Number/Code : 70-529
  • Exam Name : MS.NET Framework 2.0 - Distributed Appl Development
  • Questions and Answers : 240 Q&As
  • Update Time: 2011-05-04
  • Price: $ 114.00 $ 99.00
70-529

Free 70-529 Dumps Download

Exam4dumps offers free 70-529 dumps,70-529 Practice exam,70-529 exam questions for MCTS certification(Microsoft Certified Network Associate). You can check out the question quality and usability of our 70-529 practice exam before you decide to buy it.Before you purchase our 70-529 Q&A,you can click the link below to download the latest 70-529 pdf dumps.
 
 
Exam : Microsoft 70-529
Title : MS.NET Framework 2.0 - Distributed Appl Development


1. You create a .NET Framework remoting application that provides stock information to customers. The server component raises an event on the client computer when certain conditions are met. You need to ensure the server raises exactly one event for each client application that is registered for the event. What should you do?
A. Configure the server class as a Singleton Server Activated Object (SAO) and check for duplicate client delegate methods before raising the event.
B. Configure the server class as a Client Activated Object (CAO) and override the CreateObjRef method to check for duplicate client delegate methods before raising the event.
C. Configure the server class as a SingleCall Server Activated Object (SAO) and check for duplicate client delegate methods before raising the event.
D. Configure the server class as a Client Activated Object (CAO) and check for duplicate client delegate methods before raising the event.
Answer: A

2. You are converting an application to use .NET Framework remoting. The server portion of the application monitors stock prices and contains a class named StockPriceServer, which is a Server Activated Object (SAO). The client computer interacts with the server using a common assembly. When the server attempts to raise an event on the client computer, the server throws the following exception.System.IO.FileNotFoundException.You discover that the event delegate is not being called on the client computer. You need to ensure that the server application can raise the event on the client computer. What should you do?
A. Add the Serializable attribute to the StockPriceServer class and change the event to use one of the standard common language runtime (CLR) delegates.
B. In the common assembly, add an interface that contains the event and a method to raise the event. Implement that interface in the StockPriceServer class and use the interface's event to register the delegate message on the client computer.
C. Add the event delegate to the common assembly. Implement the Add delegate and the Remove delegate methods of the event in the StockPriceServer class to reference the delegate method in the client application.
D. Raise the event using the BeginInvoke method and pass a reference to the client computer.
Answer: B

3. You are writing an application that handles the batch processing of user accounts. The application assigns network identities for users by calling the following Web service method.[WebMethod]public string GetNetworkID(string name){ ...}The application calls the Web service using the following code. (Line numbers are included for reference only.)01 void ProcessPeople(List<Person> people) {02 PersonService serviceProxy = new PersonService();03 serviceProxy.GetNetworkIDCompleted += new 04 GetNetworkIDCompletedEventHandler(GetNetworkIDCompleted);05 for (int i = 0; i < people.Count; i++) {06 ...07 }08 }0910 void GetNetworkIDCompleted(object sender, 11 GetNetworkIDCompletedEventArgs e){12 Person p = null;13 ...14 p.NetworkID = e.Result;15 ProcessPerson(p);16 }You need to ensure that the application can use the data supplied by the Web service to update each Person instance. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Replace line 06 with the following code segment.serviceProxy.GetNetworkIDAsync(people[i].FirstName,people[i]);
B. Replace line 06 with the following code segment.serviceProxy.GetNetworkIDAsync(people[i].FirstName,null);
C. Replace line 13 with the following code segment.p = e.UserState as Person;
D. Replace line 13 with the following code segment.p = sender as Person;
Answer: AC

4. You are writing a .NET Framework remoting client application that must call two remoting servers. The first server hosts an assembly that contains the following delegate and class definition.public delegate bool IsValidDelegate(string number, Int16 code);public class CreditCardValidator : MarshalByRefObject { public bool IsValid (string number, Int16 code) { //some data access calls that are slow under heavy load ... }}The second server hosts an assembly that contains the following delegate and class definition.public delegate float GetCustomerDiscountDelegate( int customerId);public class PreferredCustomer { public float GetCustomerDiscount(int customerId) { //some data access calls that are slow under heavy load ... }}You configure the remoting client application to call both server classes remotely. The amount of time it takes to return these calls varies, and long response times occur during heavy load times. The processing requires the result from both calls to be returned. You need to ensure that calls to both remoting servers can run at the same time. What should you do?
A. Write the following code segment in the client application.PreferredCustomer pc = new PreferredCustomer();CreditCardValidator val = new CreditCardValidator();double discount = pc.GetCustomerDiscount(1001);bool isValid = val.IsValid("4111-2222-3333-4444", 123);
B. Write the following code segment in the client application.PreferredCustomer pc = new PreferredCustomer();GetCustomerDiscountDelegate del1 = new GetCustomerDiscountDelegate(pc.GetCustomerDiscount);CreditCardValidator val = new CreditCardValidator();IsValidDelegate del2 = new IsValidDelegate(val.IsValid);double discount = del1.Invoke(1001);bool isValid = del2.Invoke("4111-2222-3333-4444", 123);
C. Write the following code segment in the client application.PreferredCustomer pc = new PreferredCustomer();GetCustomerDiscountDelegate del1 = new GetCustomerDiscountDelegate(pc.GetCustomerDiscount);IAsyncResult res1 = del1.BeginInvoke(1001, null, null);CreditCardValidator val = new CreditCardValidator();IsValidDelegate del2 = new IsValidDelegate( val.IsValid);IAsyncResult res2 = del2.BeginInvoke("4111-2222-3333-4444" , 123, null, null);WaitHandle[] waitHandles = new WaitHandle[] {res1.AsyncWaitHandle, res2.AsyncWaitHandle};ManualResetEvent.WaitAll(waitHandles);double discount = del1.EndInvoke(res1);bool isValid = del2.EndInvoke(res2);
D. Write the following code segment in the client application.PreferredCustomer pc = new PreferredCustomer();GetCustomerDiscountDelegate del1 = new GetCustomerDiscountDelegate(pc.GetCustomerDiscount);IAsyncResult res1 = del1.BeginInvoke(1001, null, null);double discount = del1.EndInvoke(res1);CreditCardValidator val = new CreditCardValidator();IsValidDelegate del2 = new IsValidDelegate( val.IsValid);IAsyncResult res2 = del2.BeginInvoke("4111-2222-3333-4444", 123, null, null);bool isValid = del2.EndInvoke(res1);
Answer: C

5. A class library named MathLib contains the following code.public class MathClass : MarshalByRefObject { public decimal DoHugeCalculation(int iterations) { decimal result; //Some very lengthy calculations ... return result; }}The MathLib class is hosted in a .NET Framework remoting server application. A Windows application project running on a client computer contains the following class.public class MathClient { public void ProcessHugeCalculation(int iterations) { MathClass cm = new MathClass(); decimal decRes = cm.DoHugeCalculation(iterations); //process the result ... }}The MathClient class must call the MathClass class asynchronously by using remoting. A callback must be implemented to meet this requirement. You need to complete the implementation of the MathClient class. What should you do?
A. Modify the MathClient class as follows:public class MathClient {public delegate void DoHugeCalculationDelegate(decimal result);public event DoHugeCalculationDelegate DoHugeCalculationResult;public void DoHugeCalculationHandler(decimal result) {DoHugeCalculationResult(result);} public void ProcessHugeCalculation(int iterations) { //Hook up event handler here... ... }}
B. Apply the Serializable attribute to the MathClient class.
C. Modify the MathClient class as follows:public class MathClient { private delegate decimal DoHugeCalculationDelegate(int iterations); private void DoHugeCalculationCallBack(IAsyncResult res) { AsyncResult aRes = (AsyncResult)res; decimal decRes = ((DoHugeCalculationDelegate)aRes. AsyncDelegate).EndInvoke(res); //process the result ... } public void ProcessHugeCalculation(int iterations) { MathClass cm = new MathClass(); DoHugeCalculationDelegate del = new DoHugeCalculationDelegate( cm.DoHugeCalculation); del.BeginInvoke(iterations, new AsyncCallback( DoHugeCalculationCallBack), null); }}
D. Apply the OneWay attribute to all methods in the MathClass class.
Answer: C

Free download:Free 70-529 dumps

Download 70-529 Exam Testing Engine

 

Exam4dumps 70-529 Exam Description

70-529 exam training is available in various formats to best suit your needs and learning style from Exam4dumps. Whether you are a hands-on tactile learner, visually or even a textbook training veteran, we has the 70-529 resources that will guarantee you to pass your 70-529 practice exam at the first time!

Guarantee to Pass Your 70-529 Exam

We provide the latest high quality 70-529 practice exam for the customers,we guarantee your success at the first attempt with only our 70-529 exam questions, if somehow you do not pass the exam at the first time, we will not only arrange FULL REFUND for you, but also provide you another exam of your claim, ABSOLUTELY FREE!

The Tenet Of Exam4dumps

Our on-site online training experts create all of the Microsoft 70-529 exam products available through Actual-Exams. Our main goal is that you get more kownleage with less money.You will find our price is very cheap.

After-sales Service

Once you purchase our products,we will offer you the best service.After you purchase our product, we will offer free update in time for 90 days.Whatever you have any questions,we will help you solve it. And in 3 weeks we will offer you free updates,so please pay attention our site at all times.


Acquiring Microsoft MCTS certifications are becoming a huge task in the field of I.T. More over these exams like 70-529 exam are now continuously updating and accepting this challenge is itself a task. This 70-529 practice test is an important part of Microsoft certifications and at MCTS braindumps we have the resources to prepare you for this. The 70-529 exam is essential and core part of Microsoft certifications and once you clear the exam you will be able to solve the real time problems yourself.Wamt to take advantage of the Real 70-529 Value Pack and save time and money while developing your skills to pass your 'Microsoft Certified Network Associate (MCTS) Exam'? Let Exam4dumps help you climb that ladder of success and pass your 70-529 now!