Q120
A HashTable t maintains a collection of names of states and capital city of each state. Which among the following finds out whether "New delhi" state is present in the collection or not?
A.
t.HasValue("New delhi");
B.
t.ContainsKey("New delhi");
AnswerC.
t.HasKey("New delhi");
D.
t.ContainsValue("New delhi");
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board