MCQOPTIONS
Saved Bookmarks
| 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”); | |