What is the difference between a clustered index and a non-clustered index? MCQ with Answer and Explanation

What is the difference between a clustered index and a non-clustered index?
A. Clustered index determines the physical order of data; non-clustered does not
B. Non-clustered index determines physical order; clustered does not
C. They are the same
D. Clustered index is faster for inserts
Answer: Option A
Solution (By JKSSB Mock Tests)
A clustered index sorts and stores the data rows in the table based on key values, while a non-clustered index is a separate structure that points to the data rows.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What is the result of the SQL query: SELECT * FROM employees;?
A. Only the first row
B. Only the primary key column
C. An empty result
D. All rows and all columns from the employees table

Correct Answer: Option D


Explanation:
SELECT * retrieves all columns and rows from the specified table.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the purpose of the SQL DISTINCT keyword?
A. To group the results
B. To return only unique rows in the result set
C. To sort the result set
D. To filter rows based on a condition

Correct Answer: Option B


Explanation:
DISTINCT removes duplicate rows from the query result.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a foreign key in a database table?
A. A column that references the primary key of another table
B. A key that is always indexed
C. A key used to uniquely identify records in the same table
D. A key that allows null values

Correct Answer: Option A


Explanation:
A foreign key is a field in one table that links to the primary key of another table, establishing a relationship between tables.

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