1. Home
  2. Computer Science MCQs
  3. Dot NET
  4. Which .NET collection offers fast average-case lookup of…

Added 2 Nov 2026

Which .NET collection offers fast average-case lookup of values by key?

  1. Queue<T>
  2. LinkedList<T>
  3. List<KeyValuePair<K, V>>
  4. Dictionary<TKey, TValue> Correct answer

Correct answer

D. Dictionary<TKey, TValue>

15 views

MCQSEXAM

Explanation

Dictionary<TKey, TValue> is a hash table, giving O(1) average lookups by key. Searching a List of key-value pairs or a LinkedList is O(n).

Reference

Asked in: NTS, PPSC, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Dot NET MCQs

Practise all Dot NET MCQs

Similar MCQs