CertInside 70-551(VB)
Http://www.CertInside.com CertInside Help you pass any IT Exams
Microsoft 70-551(VB)
UPGRADE:MCAD Skills to MCPD Dvlpr by Using the MS.NET
Frmwk
Q&A v4.22
http://www.CertInside.com/
CertInside 70-551(VB)
Http://www.CertInside.com CertInside Help you pass any IT Exams
CertInside,The Most Realistic Practice Exams!
1. You create an application for your business partners to submit purchase orders. The application deserializes XML
documents sent by your partners into instances of an object named PurchaseOrder. You need to modify the application
so that it collects details if the deserialization process encounters any XML content that fails to map to public members
of the PurchaseOrder object. What should you do?
A. Define and implement an event handler for the XmlSerializer.UnknownNode event.
B. Define a class that inherits from XmlSerializer and overrides the XmlSerialize.FromMappings method.
C. Apply an XmlInclude attribute to the PurchaseOrder class definition.
D. Apply an XmlIgnore attribute to the PurchaseOrder class definition.
Answer: A
2. You are creating a class that performs complex financial calculations. The class contains a method named
GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate.
You write serialized representations of the class. You need to write a code segment that updates the currRate variable
with the current interest rate when an instance of the class is deserialized. Which code segment should you use?
A. <OnSerializing> _Friend Sub UpdateValue (ByVal context As StreamingContext) currRate = GetCurrentRate()End
Sub
B. <OnSerializing> _ Friend Sub UpdateValue(ByVal info As SerializationInfo) info.AddValue("currentRate",
GetCurrentRate())End Sub
C. <OnDeserializing> _ Friend Sub UpdateValue(ByVal info As SerializationInfo) info.AddValue("currentRate",
GetCur