What is a composite index? MCQ with Answer and Explanation

What is a composite index?
A. An index that is a primary key
B. An index on a view
C. An index on a single column
D. An index on multiple columns
Answer: Option D
Solution (By JKSSB Mock Tests)
A composite index is created on two or more columns, often used to speed up queries that filter on those columns.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL operator is used to check if a value is within a range?
A. IN
B. EXISTS
C. BETWEEN
D. LIKE

Correct Answer: Option C


Explanation:
BETWEEN checks if a value falls within a specified range (inclusive of boundaries).

This question belongs to: Computer Database Management System (DBMS)
Question #2
What type of key uniquely identifies each record in a table and cannot contain NULL values?
A. Primary Key
B. Candidate Key
C. Secondary Key
D. Foreign Key

Correct Answer: Option A


Explanation:
A Primary Key is a unique identifier for each tuple in a relation. It enforces entity integrity and strictly cannot accept NULL values.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a domain in the context of the relational model?
A. A table name
B. A set of allowed values for an attribute
C. A primary key
D. A foreign key

Correct Answer: Option B


Explanation:
A domain defines the set of permissible values that an attribute can take, ensuring data consistency.

This question belongs to: Computer Database Management System (DBMS)