Home / C# Programming / Collection Classes :: Discussion

Discussion :: Collection Classes

  1. 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?

  2. A.
    t.ContainsKey("Kerala");
    B.
    t.HasValue("Kerala");
    C.
    t.HasKey("Kerala");
    D.
    t.ContainsState("Kerala");
    E.
    t.ContainsValue("Kerala");

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment