engineering computer science MCQ #692

What is the primary function of a database index?

engineering computer science MCQ #692

  1. Question 1

    Q1. What is the primary function of a database index?

    • A) To store data
    • B) To improve query performance
    • C) To ensure data consistency
    • D) To provide data security

    Answer: To improve query performance

    Explanation: Database index improves query performance by allowing faster data retrieval, using data structures like B-trees or hash tables.