1.

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» C. T.HasKey( New delhi ),


Discussion

No Comment Found