70-529 MCTS Braindump
ExamSoon 70-529 Exams
Microsoft MS.NET Framework 2.0 - Distributed Appl Development
O rder : 70-529 Exam
Practice Exam: 70-529
Exam Number/Code: 70-529
Exam Name: MS.NET Framework 2.0 - Distributed Appl Development
Questions and Answers: 240 Q&As
Free 70-529 Braindumps
Exam : Microsoft 70-529
Title : MS.NET Framework 2.0 - Distributed Appl Development
1. A Windows service application must host a .NET Framework remoting class named SimpleMathClass.
SimpleMathClass must have the following method, which can be called remotely.public double Add(double x, double
y) { return x + y;}You need to create the SimpleMathClass class. What should you do?
A. Write the following class definition.public class SimpleMathClass : MarshalByRefObject { public double Add(double
x, double y) { return x + y; }}
B. Write the following class definition.[AutomationProxy(true)]public class SimpleMathClass { public double Add
(double x, double y) { return x + y; }}
C. Write the following class definition.[Serializable]public class SimpleMathClass { public double Add(double x,
double y) { return x + y; }}
D. Write the following class definition.public class SimpleMathClass : ServicedComponent { public double Add(double
x, double y) { return x + y; }}
Answer: A
2. A file named Util.asmx contains the following code segment. (Line numbers are included for reference only.)01 <%
@ WebService Language="C#" class="Exam.Util" %>02 namespace Exam {03 public class Util {04 public string
GetData() {05 return "data";06 }07 }08 }You need to expose the GetData method through a Web service. What should
you do?
A. Insert the following line of code between lines 02 and 03.[System.Web.Services.WebService()]
B. Replace line 03 with the following line of code.public class Util : System.Web.Services.WebService
C. Insert the following line of code between lines 03 and 04.[System.Web.Services.WebMethod()]
D. Replace line 01 with the following line of code.<%@ WebService Language="C#"
class="System.Web.Services.WebService"