engineering computer science MCQ #1239

What is the purpose of a hash table?

engineering computer science MCQ #1239

  1. Question 1

    Q1. What is the purpose of a hash table?

    • A) To store data in a sorted order
    • B) To store data in a compressed format
    • C) To provide fast lookup and insertion operations
    • D) To store data in a secure manner

    Answer: To provide fast lookup and insertion operations

    Explanation: A hash table provides fast lookup and insertion operations by mapping keys to indices using a hash function, making it efficient for data storage and retrieval.