Certinside 70-551VB Exam Description
Microsoft 70-551VB exam training is available in various formats to best suit your needs and learning style from Certinside. Whether you are a hands-on tactile learner, visually or even a textbook training veteran, we has the 70-551VB resources that will guarantee you to pass your exam 70-551VB at the first time!
Certinside 70-551VB Exam Detail
Exam Number/Code : 70-551VB
Exam Name : UPGRADE:MCAD Skills to MCPD Dvlpr by Using the MS .NET Frmwk
Questions and Answers : 89
Update Time: 2009-10-04
Certinside Exam 70-551VB test questions provides you everything you will need to take your 70-551VB Exam. The 70-551VB Exam details are researched and produced by Professional Microsoft Certification. Experts who are constantly using industry experience to produce precise, logical and verified explanations for the answers.Our 70-551VB practice tests will make you feel like you will pass an actual exam at a Prometric or VUE center.
70-551VB braindumps free download
If you are interested in our 70-551VB exam questions,first you can view a part of our latest dumps here:
Exam : Microsoft 70-551VB
Title : Upgrade: MCAD Skills to MCPD Dvlpr by Using the MS.NET Frmwk
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 create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.)
01 Public Class Group
02 Public Employees As Employee()
03 End Class
04
05 Public Class Employee
06 Public Name As String
07 End Class
08
09 Public Class Manager
10 Inherits Employee
11 Public Level As Integer
12 End Class
You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: "There was an error generating the XML document." You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy. What should you do?
A. Insert the following code between lines 1 and 2 of the code segment: <XmlArrayItem(Type:=GetType(Employee))> _ <XmlArrayItem(Type:=GetType(Manager))> _
B. Insert the following code between lines 1 and 2 of the code segment: <XmlElement(Type:=GetType(Employee))> _
C. Insert the following code between lines 1 and 2 of the code segment: <XmlArray(ElementName:="Employees")> _
D. Insert the following code between lines 5 and 6 of the code segment: <XmlElement(Type:=GetType(Employee))> andInsert the following code between lines 10 and 11 of the code segment: <XmlElement(Type:=GetType(Manager))>
Answer: A
3. You are writing a method to compress an array of bytes. The bytes to be compressed are passed to the method in a parameter named document. You need to compress the contents of the incoming parameter. Which code segment should you use?
A. Dim inStream As New MemoryStream(document)Dim zipStream As New GZipStream( _inStream, CompressionMode.Compress)Dim result(document.Length) As BytezipStream.Write(result, 0, result.Length)Return result
B. Dim objStream As New MemoryStream(document)Dim zipStream As New GZipStream( _ objStream, CompressionMode.Compress)zipStream.Write(document, 0, document.Length)zipStream.Close()Return objStream.ToArray
C. Dim outStream As New MemoryStreamDim zipStream As New GZipStream( _outStream, CompressionMode.Compress)zipStream.Write(document, 0, document.Length)zipStream.Close()Return outStream.ToArray
D. Dim objStream As New MemoryStream(document)Dim zipStream As New GZipStream( _objStream, CompressionMode.Compress)Dim outStream As New MemoryStreamDim b As IntegerWhile (b = zipStream.ReadByte)outStream.WriteByte(CByte(b))End WhileReturn outStream.ToArray
Answer: C
4. You are writing a method to compress an array of bytes. The array is passed to the method in a parameter named document. You need to compress the incoming array of bytes and return the result as an array of bytes. Which code segment should you use?
A. Dim objStream As New MemoryStream(document)Dim objDeflate As New DeflateStream(objStream, CompressionMode.Compress)Dim result(document.Length) As ByteobjDeflate.Write(result, 0, result.Length)Return result
B. Dim objStream As New MemoryStream(document)Dim objDeflate As New DeflateStream(objStream, CompressionMode.Compress)objDeflate.Write(document, 0, document.Length)objDeflate.Close()Return objStream.ToArray
C. Dim objStream As New MemoryStream()Dim objDeflate As New DeflateStream(objStream, CompressionMode.Compress)objDeflate.Write(document, 0, document.Length)objDeflate.Close()Return objStream.ToArray
D. Dim objStream As New MemoryStream()Dim objDeflate As New DeflateStream(objStream, CompressionMode.Compress)Dim outStream As New MemoryStreamDim b As IntegerWhile (b = objDeflate.ReadByte) outStream.WriteByte(CByte(b))End WhileReturn outStream.ToArray
Answer: C
5. 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", GetCurrentRate())End Sub
D. <OnDeserialized> _Friend Sub UpdateValue (ByVal context As StreamingContext) currRate = GetCurrentRate()End Sub
Answer: D
Also you can free download it here:70-551VB pdf
100% Guarantee to Pass Your 70-551VB Exam
Certinside provides the most competitive quality of all exams for the customers,we guarantee your success at the first attempt with only our Certification Question and Answers,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!
Are you ready?With Certinside 70-551VB exam study materail, your ultimate success in Microsoft 70-551VB Certification Exam is no more a dream. Certinside guarantees your passing Microsoft 70-551VB Certification Exam.Good luck!