SQL Index MCQs

SQL Index MCQs

Professional Development

15 Qs

quiz-placeholder

Similar activities

Data Analysis Fundamental using Excel

Data Analysis Fundamental using Excel

Professional Development

12 Qs

FinTech 07-1 SQL

FinTech 07-1 SQL

Professional Development

10 Qs

In store Nokia 7.2

In store Nokia 7.2

Professional Development

10 Qs

Ms-SQL-QIUZZ

Ms-SQL-QIUZZ

Professional Development

10 Qs

Annuities

Annuities

Professional Development

10 Qs

Excel

Excel

Professional Development

10 Qs

Indicators

Indicators

University - Professional Development

10 Qs

SQL Index MCQs

SQL Index MCQs

Assessment

Quiz

Other

Professional Development

Hard

Created by

Dinesh Kumar

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the main purpose of an index in SQL?

Compress tables

Improve query performance

Encrypt data

Create temporary tables

Answer explanation

The main purpose of an index in SQL is to improve query performance by allowing the database to find and retrieve data more quickly, rather than scanning the entire table.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which type of index determines the physical order of data?

Non-clustered

Clustered

Composite

Unique

Answer explanation

A clustered index determines the physical order of data in a table, meaning the data rows are stored in the same order as the index. In contrast, a non-clustered index maintains a separate structure, not affecting physical data order.

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How many clustered indexes can a table have?

One

Two

Unlimited

One per column

Answer explanation

A table can have only one clustered index because it defines the physical order of data rows. This unique index ensures that the data is stored in a sorted manner based on the indexed column, making retrieval efficient.

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does a non-clustered index store?

Actual table data

Only metadata

Pointers to rows in the table

Only nulls

Answer explanation

A non-clustered index does not store actual table data but instead contains pointers to the rows in the table. This allows for faster searches without duplicating the data, making 'Pointers to rows in the table' the correct choice.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which index is typically used on low-cardinality columns?

B-Tree Index

Bitmap Index

Function-Based Index

Unique Index

Answer explanation

A Bitmap Index is ideal for low-cardinality columns because it efficiently represents the presence or absence of values using bits, making it suitable for columns with a limited number of distinct values.

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is a composite index?

Index made up of a foreign key

Index using multiple columns

Duplicate index

Self-joining index

Answer explanation

A composite index is an index that uses multiple columns to improve query performance. This allows for more efficient data retrieval compared to single-column indexes, making 'Index using multiple columns' the correct choice.

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is a B-Tree index?

Bitmap tree

Balanced tree structure

Binary decision tree

Sorted array

Answer explanation

A B-Tree index is a balanced tree structure that maintains sorted data and allows for efficient insertion, deletion, and search operations. This makes it ideal for database indexing, unlike the other options listed.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?