Question:You are developing an application that stores data about your company's
sales and technical support teams.
You need to ensure that the name and contact information for each
person is available as a single collection when a user queries details
about a specific team. You also need to ensure that the data collection
guarantees type safety.
Which code segment should you use?
 

A Dim team As Hashtable = New Hashtable ()
team.Add (1, " Hance ")
team.Add (2, "Jim")
team.Add (3, " Hanif ")
team.Add (4, " Kerim ")
team.Add (5, "Alex")
team.Add (6, "Mark")
team.Add (7, "Roger")
team.Add (8, "Tommy") 

B Dim team As ArrayList = New ArrayList ()
team.Add ("1, Hance ")
team.Add ("2, Jim")
team.Add ("3, Hanif ")
team.Add ("4, Kerim ")
"A Composite Solution With Just One Click" - Certification Guaranteed 166 Microsoft 70-536 Exam team.Add ("5, Alex")
team.Add ("6, Mark")
team.Add ("7, Roger")
team.Add ("8, Tommy") 

C Dim team As New Dictionary(Of Integer, String)
team.Add (1, " Hance ")
 team.Add (2, "Jim")
team.Add (3, " Hanif ")
team.Add (4, " Kerim ")
team.Add (5, "Alex")
team.Add (6, "Mark")
team.Add (7, "Roger")
team.Add (8, "Tommy") 

D Dim team As String() = New String()
{ _ "1, Hance ", _ "2, Jim", _ "3, Hanif ", _ "4, Kerim ", _ "5, Alex", _ "6, Mark", _ "7, Roger", _ "8,
Tommy"} 

+ Answer
+ Report
Total Preview: 763

Copyright © 2024. Powered by Intellect Software Ltd