Transcender 70-620 Practice Test,
- Friday, March 28, 2008, 4:30
- Cert Tests
- 403 views
- Add a comment
Transcender 70-620 Practice Test
MSCert: TS: Configuring Windows® Vista Client
MSCert: TS: Configuring Windows® Vista Client
4shared.com:
hxxp://www.4shared.com/file/42098914/9b2c19ef/Transcender_70-620.html
rapidshare.com:
hxxp://rapidshare.com/files/102688321/Transcender_70-620.zip.html
QUESTION 281
You work as the application developer at Certkiller .com. You must write a code
segment that includes an undo buffer function. You want the undo function to store
data modifications, but it must only allow the storage of strings. You want the undo
function to undo the most recently performed data modifications first.
Which code segment should you use to achieve your goal?
A. Use: Stack
B. Use: Stack undoBuffer = new Stack();
C. Use: Queue
D. Use: Queue undoBuffer = new Queue();
Answer: A
Explanation: A Stack caters for a last in first out scenario similar to what is
required in an undo buffer. By using Generics you can force a strongly typed
collection that takes strings only.
B is not strongly typed for strings, it will take any type of object.
C & D Queue is a First in First out collection, it is not appropriate in this instance.
QUESTION 282
You work as the application developer at Certkiller .com. You write the definition for
a class named Vehicle by defining the following code segment:
public class Vehicle {
[XmlAttribute(AttributeName = "category")]
public string vehicleType;
public string model;
[XmlIgnore]
public int year;
[XmlElement(ElementName = "mileage")]
public int miles;
public ConditionType condition;
public Vehicle() {
}
public enum ConditionType {
[XmlEnum("Poor")] BelowAverage,
[XmlEnum("Good")] Average,
Actualtests.org – The Power of Knowing
[XmlEnum("Excellent")] AboveAverage
}}
You next create an instance of the Vehicle class, and add the following data in the
defined fields of the class instance:
You must now identify the XML block that is generated when the Vehicle class
instance is serialized.
Choose the XML block that signifies the output of serializing the Vehicle class
instance.
A. < ?xml version="1.0" encoding="utf-8"?>
vehicleType="car">
B. < ?xml version="1.0" encoding="utf-8"?>
category="car">
C. < ?xml version="1.0" encoding="utf-8"?>
category="car">
D. < ?xml version="1.0" encoding="utf-8"?>
Actualtests.org – The Power of Knowing
Answer: B
Explanation: The XML produced in B matches the class definition provided in the
question.
Category is declared to be an attribute of the Vehicle element, this is not the case in
answer A and D.
During XML Serialization by default the user type variables are mapped to XML
elements. In the case of answer C, the type itself has been mapped instead of the instance
variable.
Free download:pass4sure Microsoft 70-620
Free download:testking Microsoft 70-620
password:www.certbible.org
High quality IT Certification Training Exam Questions, Study Guides and Practice Tests are in Downloadable PassGuide Testing Engine,Successful for IT Certification or Full Refund for you.Contact Us:Sales@PassGuide.com|
Type |
Exam Bible | New Questions & Answers |
Latest Updated |
Download link |
| All Certbible 's Exam Dumps |
597 |
1 days ago | Available |
PassGuide Training Materials & Practice Tests
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!

