Question 189Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)

What is the name of the .NET collection class that enables an element to be accessed using a unique key?

  1. ALinked list
  2. BHashtable
  3. CDouble linked list
  4. DArray list
Show answerHide answer

Correct answer: (B) Hashtable

Explanation

The .NET Hashtable class stores key/value pairs and lets each element be accessed by its unique key using hashing. ArrayList and linked lists are accessed by index or position.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM)

This is question 189 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.