nerdexam
Microsoft

70-515 · Question #126

70-515 Question #126: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #126. The question stem and answer options stay visible for context.

Question

You are implementing an ASP.NET Web site. The site contains the following class. public class Address { public int AddressType; public string Line1; public string Line2; public string City; public string ZipPostalCode; } The Web site interacts with an external data service that requires Address instances to be given in the following XML format. <Address AddressType="2"> <Line1>250 Race Court</Line1> <City>Chicago</City> <PostalCode>60603</PostalCode> </Address> You need to ensure that Address instances that are serialized by the XmlSerializer class meet the XML format requirements of the external data service. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AAdd the following attribute to the AddressType field.
  • BAdd the following attribute to the Line2 field.
  • CAdd the following attribute to the ZipPostalCode field.
  • DAdd the following attribute to the ZipPostalCode field.

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice