Microsoft MCTS 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-10-24
  • Testing Engine (SoftWare Version): $ 50.00
  • PDF (Printable Version) Price: $15.00
  •  

Note: After purchase, we will send questions within 24 hours.

After you purchase,you can download this product yourself.Have any questions,please click live chat.

Free 70-529 Demo Download

just4exam offer 70-529 real questions same as the real test,it will help you pass the exam.Also we offer free 70-529 dumps demo. They are a part of the full questions,you can view the question on our test engine before you decide to purchase.Click the link below to download our test engine,install it,search 70-529,then click download demo.

Download:
70-529 PDF

Test Engine

 

Exam 70-529 Preparation from just4exam braindumps include:

After you purchase our product, we will offer free update in time for 90 days.
100% Pass Guaranteed at First Attempt Or Full Refund
Immediate Download After Purchase
Comprehensive questions with complete details
Questions accompanied by exhibits
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the just4exam
Questions updated on regular basis
These questions and answers are backed by our GUARANTEE
Like actual certification exams our product is in multiple-choice questions (MCQs)


Passing the Microsoft 70-529 Exam:Passing the 70-529 exam has never been faster or easier, now with actual questions and answers, without the messy 70-529 braindumps that are frequently incorrect. just4exam Unlimited Access Exams are not only the cheaper way to pass without resorting to 70-529 dumps, but at only $ 50.00 you get access to the exam from every certification vendor.


Our 70-529 practice exams and study questions are composed by current and active Information Technology experts, who use their experience in preparing you for your future in IT.


Microsoft 70-529 Search Help Feel free to use search terms below while searching the Net for 70-529 exam:

70-529 brain dump simulations
70-529 brain dumps question
70-529 braindump work
70-529 master braindumps
70-529 braindump model
70-529 latest braindumps


Commitment to Your Success:

At just4exam we are committed to you ongoing success. Our braindumps are constantly being updated and compared to industry standards.


You are not about to purchase a disposable product. 70-529 exam braindumps updates are supplied free of charge. Regardless of how soon you decide to take the actual 70-529 examination certification, you will be able to walk into the testing room as confident as the Certification Administrator.


Skip all the worthless 70-529 tutorials and download 70-529 exam materials with real questions and answers and a price too unbelievable to pass up. Act now and download your Actual Tests today!

http://www.just4exam.com The safer.easier way to get MCTS Certification.
 
 
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