GIAC
GSSP-NET · Question #404
GSSP-NET Question #404: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #404. The question stem and answer options stay visible for context.
Question
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create the definition for a Car class by using the following code segment: public class Car { [XmlAttribute(AttributeName = "category")] public string CarType; public string model; [XmlIgnore] public int year; [XmlElement(ElementName = "mileage")] public int miles; public ConditionType condition; public Car() { } public enum ConditionType { [XmlEnum("Poor")] BelowAverage, [XmlEnum("Good")] Average, [XmlEnum("Excellent")] AboveAverage }} You create an instance of the Car class. You fill the public fields of the Car class as shown in the table below: You are required to recognize the XML block that is produced by the Car class after serialization. Which of the following XML blocks represents the output of serializing the Car class?
Options
- A<?xml version="1.0" encoding="utf-8"?>
- B<?xml version="1.0" encoding="utf-8"?>
- C<?xml version="1.0" encoding="utf-8"?>
- D<?xml version="1.0" encoding="utf-8"?>
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET 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.