Other 70-529VB Exams :

70-529VB Exam

MS.NET Framework 2.0 - Distributed Appl Development

  • Exam Number/Code : 70-529VB
  • Exam Name : MS.NET Framework 2.0 - Distributed Appl Development
  • Questions and Answers : 69 Q&As
  • Update Time: 2011-03-30
  • Price: $ 125.00 $ 100.00

Free 70-529VB Demo Download

pass999.info offers free demo for MCTS 70-529VB exam (MS.NET Framework 2.0 - Distributed Appl Development). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.

Download 70-529VB Exam Testing Engine


70-529VB Exam Description

It is well known that latest 70-529VB exam test is the hot exam of Microsoft certification. pass999.info offer you all the Q&A of the 70-529VB real test . It is the examination of the perfect combination and it will help you pass 70-529VB exam at the first time!

 
 
Exam : Microsoft 70-529(VB)
Title : MS.NET Framework 2.0 - Distributed Appl Development


1. You create a Web service that exposes a Web method named CalculateStatistics. The response returned by the CalculateStatistics method for each set of input parameters changes every 60 seconds.
You need to ensure that all requests to the CalculateStatistics method that have the same set of input parameters, and that occur within a 60-second time period, calculate the statistics only once.
Which code segment should you use?
A. <WebMethod()> _
Public Function CalculateStatistics(ByVal values As Integer()) As String
HttpContext.Current.Response.Cache.SetCacheability( _
HttpCacheability.Public, "max-age=60")
...
End Function
B. <WebMethod(CacheDuration:=60)> _
Public Function CalculateStatistics(ByVal values As Integer()) As String
...
End Function
C. <WebMethod()> _
Public Function CalculateStatistics(ByVal values As Integer()) As _
String
HttpContext.Current.Response.Cache.SetExpires( _
DateTime.Now.AddSeconds(60))
...
End Function
D. <WebMethod(BufferResponse:=60)> _
Public Function CalculateStatistics(ByVal values As Integer()) As _
String
...
End Function
Answer: B

2. A file named Util.asmx contains the following code segment. (Line numbers are included for reference only.)
01 <%@ WebService Language="VB" Class="Util" %>
02 Public Class Util
03 Public Function GetData() As String
04 Return "data"
05 End Function
06 End Class
You need to expose the GetData method through a Web service.
What should you do?
 A. Insert the following line of code between lines 01 and 02. <System.Web.Services.WebService()>_
 B. Insert the following line of code between lines 02 and 03. Inherits System.Web.Services.WebService
 C. Insert the following line of code between lines 02 and 03. <System.Web.Services.WebMethod()>_
D. Replace line 01 with the following line of code.
<%@ WebService Language="VB" Class="System.Web.Services.WebService" %>
Answer: C

3. You are creating a Web service to expose the public methods on a class. Two overloaded methods are defined in the class as follows:
Public Function GetCustomer(ByVal custId As String) As Customer
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
You need to expose both methods on the Web service.
Which code segment should you use?
A. <WebMethod()> _
<SoapDocumentMethod(Action:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod()> _
<SoapDocumentMethod(Action:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
B. <WebMethod(Description:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod(Description:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
C. <WebMethod(MessageName:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod(MessageName:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
D. <WebMethod()> _
<SoapDocumentMethod(RequestElementName:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod()> _
<SoapDocumentMethod(RequestElementName:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
Answer: C

4. You are creating a Web service.
You need to add an operation that can be called without returning a message to the caller.
Which code should you use?
A. <WebMethod()> _
<SoapDocumentMethod(OneWay:=True)> _
Public Function ProcessName(ByVal Name As String) As Boolean
...
Return False
End Function
B. <WebMethod()> _
<OneWay()> _
Public Sub ProcessName()
...
End Sub
C. <WebMethod()> _
<SoapDocumentMethod(OneWay:=True)> _
Public Sub ProcessName()
...
End Sub
D. <WebMethod()> _
<SoapDocumentMethod(Action:="OneWay")> _
Public Sub ProcessName()
...
End Sub
Answer: C

5. You call a method in a Web service. The following exception is thrown in the Web service client.
System.Web.Services.Protocols.SoapException: Server was unable to
process request. --> System.NullReferenceException: Object
reference not set to an instance of an object.
You discover that it is the following line of code that throws the exception.
If Session("StoredValue") Is Nothing Then
You need to ensure that the method runs without throwing the exception.
What should you do?
A. Modify the WebMethod attribute in the Web service so that the EnableSession property is set to True.
B. In the client code for the Web service's proxy object, assign a new instance of the System.Net.CookieContainer object to the CookieContainer property.
C. Add the following element to the System.Web section of the Web.config file.
 <sessionState mode="InProc" />
D. Add the following elements to the System.Web section of the Web.config file.
<httpModules>
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
Answer: A

What's pass999.info and what pass999.info can do?

pass999.info provides high quality IT exam practice questions and answers. Especially, Cisco CCNA CCDA CCNP CCIE, Checkpoint CCSE, CompTIA A+ Network+ certification practice exams and so on. We promise that you can pass any IT exam at the first try using pass999.info Testing Engine, or else give you a FULL REFUND. In pass999.info, you also can find latest exam releases about real certification exam resources from most famous IT companies, and we recommend some hot exams for you.

About Microsoft 70-529VB exam

There are many ways to prepare for your 70-529VB Certification Exam. pass999.info provides the most reliable training tools to prepare for your next 70-529VB Certification Exam. Our 70-529VB Certification Study Material includes 70-529VB test questions, 70-529VB practice exam, 70-529VB Practice Testing Software, 70-529VB Audio Learning and Preparation Labs. We will meet the needs of all about IT certification in pass999.info.

The 70-529VB test questions give you possibility to work in any country of the world because they are acknowledged in all countries equally. This pass999.info 70-529VB torrent certificate helps not only to improve your knowledge and skills, but it also helps your career, gives a possibility for qualified usage of pass999.info 70-529VB exam products under different conditions.

Once you purchase our 70-529VB PDF,we will offer you the best service.After you purchase we will offer free update in time for 90 days.No matter any questions you have 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.