Examveda

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");

C. t.HasKey("New delhi");

D. t.ContainsValue("New delhi");

Answer: Option B


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp