Microsoft
98-372 · Question #172
98-372 Question #172: Real Exam Question with Answer & Explanation
Sign in or unlock 98-372 to reveal the answer and full explanation for question #172. The question stem and answer options stay visible for context.
Question
You create an ArrayList object. You need to ensure that only objects of the System.DateTime type can be added to the collection. What should you do?
Options
- ARestrict the ArrayList variable to a capacity of 16 items.
- BUse a Hashtable collection.
- CUse a List(Of T) collection.
- DUse the ToString() method on objects that you add to the ArrayList.
Unlock 98-372 to see the answer
You've previewed enough free 98-372 questions. Unlock 98-372 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.