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. Non-clustered index determines physical order; clustered does not
B. Clustered index is faster for inserts
C. Clustered index determines the physical order of data; non-clustered does not
D. They are the same
Answer: Option C
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
In SQL, what does the wildcard '%' match when used with LIKE?
A. Any single character
B. A specific character
C. Only digits
D. Any string of zero or more characters

Correct Answer: Option D


Explanation:
'%' matches any sequence of zero or more characters, while '_' matches a single character.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which operator allows you to specify a range of values to filter query results, including the specified start and end endpoints?
A. WITHIN
B. BETWEEN
C. IN
D. LIKE

Correct Answer: Option B


Explanation:
The BETWEEN operator selects values within a specific inclusive range. It is shorthand for a combination of greater-than-or-equal-to and less-than-or-equal-to conditions.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which SQL function returns the current date and time?
A. GETDATE()
B. All of the above depending on the DBMS
C. NOW()
D. CURDATE()

Correct Answer: Option B


Explanation:
Different DBMSs have different functions: MySQL NOW(), SQL Server GETDATE(), etc. But all return current date/time.

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