Programming Languages C# Objective
Mar 07, 2013

A HashTable t maintains a collection of names of states and capital city of each state. Which is the correct way to find out whether "Delhi" state is present in this collection or not?

Choose the correct answer:
A) t.ContainsKey("Delhi");
B) t.HasValue("Delhi");
C) t.HasKey("Delhi");
D) t.ContainsState("Delhi");
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback