A Hashtable T Maintains A Collection Of Names Of States And #703
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?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions - Collection Classes - Quiz No.2.
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?
t.HasValue("New delhi");
t.ContainsKey("New delhi");
t.HasKey("New delhi");
t.ContainsValue("New delhi");