nerdexam
Microsoft

70-513 · Question #133

A Windows Communication Foundation (WCF) application uses the following data contract. You need to ensure that the following XML segment is generated when the data contract is serialized. Which code…

The correct answer is D. [DataMember]. See the full explanation below for the reasoning.

Question

A Windows Communication Foundation (WCF) application uses the following data contract. You need to ensure that the following XML segment is generated when the data contract is serialized. Which code segment should you use?

Exhibit

70-513 question #133 exhibit

Options

  • A[DataMember]
  • B[DataMember(EmitDefaultValue = false)]
  • C[DataMember(EmitDefaultValue = true)]
  • D[DataMember]

How the community answered

(45 responses)
  • A
    4% (2)
  • B
    13% (6)
  • C
    9% (4)
  • D
    73% (33)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice