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

Options

A : t.ContainsKey("Kerala");

B : t.HasValue("Kerala");

C : t.HasKey("Kerala");

D : t.ContainsState("Kerala");

Click to view Correct Answer

Previous || Next

Collection Classes - General Questions more questions

How many enumerators will exist if four threads are simultaneously....

In which of the following collections is the Input/Output index-based?

In which of the following collections is the Input/Output based....

In a HashTable Key cannot be null, but Value can....

Which of the following statements are correct about the Stack....

Which of the following is the correct way to access....

Which of the following is NOT an interface declared in....

Suppose value of the Capacity property of ArrayList Collection is....

Which of the following is an ordered collection class?

Which of the following is the correct way to find....

Attributes - General Questions more Online Exam Quiz

Strings - General Questions

Attributes - General Questions

Classes and Objects - General Questions

Constructors - General Questions

Datatypes - General Questions

Delegates - General Questions

.NET Framework - General Questions

Enumerations - General Questions