General Databases Intermediate Query Indexing Basics Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What does ACID stand for in database transactions?

Explanation

ACID describes four properties that help ensure reliable database transactions: Atomicity (all-or-nothing execution), Consistency (the database remains valid), Isolation (concurrent transactions do not interfere), and Durability (committed changes persist).

Submit
Please wait...
About This Quiz
General Databases Intermediate Query Indexing Basics Quiz - Quiz

This quiz evaluates your understanding of intermediate database concepts, query optimization, and indexing strategies. Designed for college-level students, it covers essential topics in relational databases, SQL query execution, index types, and performance tuning. Master these fundamentals to write efficient queries and design better database schemas.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. True or False: A hash index is ideal for range queries.

Explanation

Hash indexes are optimized for exact-match lookups, such as finding a row with a specific key. They do not keep keys in sorted order, so locating all values within a range generally requires scanning many entries. Ordered indexes, such as B-tree indexes, are better suited to range queries.

Submit

3. What does query optimization primarily focus on?

Explanation

Query optimization focuses on choosing an efficient way to execute a query, minimizing processing time and resource consumption while still producing the same results. This may involve selecting better execution plans, join strategies, or access methods.

Submit

4. True or False: Denormalization always improves database performance.

Explanation

Denormalization can improve performance for some read-heavy workloads by reducing joins, but it is not beneficial in every situation. It can increase storage needs, slow writes, and introduce duplicated or inconsistent data. Its impact depends on the database design and workload, so it does not always improve performance.

Submit

5. A _____ is a virtual table created by a query that can be used like a regular table.

Explanation

A view is a virtual table defined by a query. It presents selected data from one or more underlying tables and can be queried like a regular table, though it usually stores the query rather than the data itself.

Submit

6. Which indexing strategy involves storing row addresses directly?

Explanation

A non-clustered index stores index keys separately from the table’s data and includes row locators—such as row addresses or pointers—to identify where the matching records are stored. This lets the database find rows through the index without physically organizing the table’s data in the index’s order.

Submit

7. True or False: A table can have multiple primary keys.

Explanation

A table can have only one primary key, though it may consist of multiple columns (a composite primary key). Other columns or column combinations can be constrained as unique, but they are not additional primary keys. Thus, the statement is false.

Submit

8. What is a primary key's main function?

Explanation

A primary key ensures that every row in a table can be distinguished from all others. Its values must be unique, allowing the database to reliably find and reference a specific record.

Submit

9. A _____ is a set of SQL statements executed as a single unit.

Explanation

A transaction groups one or more SQL statements so they are treated as a single unit of work. The statements can be committed together if successful or rolled back if an error occurs, helping keep the database consistent.

Submit

10. Which operation is most efficient on an indexed column?

Explanation

An index helps the database locate rows matching a `WHERE` condition without scanning the entire table, making filtered `SELECT` queries faster. Inserts, updates, and deletes may require the database to maintain or modify the index, adding work.

Submit

11. What is the primary purpose of an index in a database?

Explanation

A database index organizes selected column values with references to their corresponding rows, allowing the database to locate records more quickly than scanning the entire table. This improves retrieval performance, especially for searches and sorting, though indexes require additional storage and may slow some data modifications.

Submit

12. A _____ join returns only rows that have matching values in both tables.

Explanation

An inner join returns only the rows where the specified column values match in both tables. Rows without a matching value in either table are excluded from the result.

Submit

13. What is the purpose of a foreign key in relational databases?

Explanation

A foreign key is a field in one table that references a key in another table. It links related records and helps maintain referential integrity, ensuring that references point to valid records in the related table.

Submit

14. Which normal form eliminates transitive dependencies?

Explanation

Third Normal Form (3NF) eliminates transitive dependencies, where a non-key attribute depends on another non-key attribute rather than directly on a candidate key. This helps reduce data redundancy and prevent update, insertion, and deletion anomalies.

Submit

15. A _____ is a constraint that ensures every value in a column is unique.

Explanation

A unique constraint prevents duplicate values from appearing in a column, ensuring that each value is distinct across the rows in a table.

Submit

16. What is database normalization primarily designed to achieve?

Explanation

Database normalization organizes data into related tables and defines relationships between them. This reduces duplicate information and helps prevent inconsistencies when data is inserted, updated, or deleted, improving overall data integrity.

Submit

17. Which of the following is a disadvantage of creating too many indexes?

Explanation

Each index must be updated whenever data is inserted, changed, or deleted. As the number of indexes grows, these operations require more work and can take longer. Indexes generally help retrieve data faster, but too many can reduce the performance of data modifications.

Submit

18. In SQL query execution, what is a query plan?

Explanation

A query plan outlines the steps the database engine will use to retrieve or modify data, such as choosing indexes, accessing tables, and joining results. It helps the engine execute the SQL query efficiently.

Submit

19. What does a composite index contain?

Explanation

A composite index is built from two or more columns in the same table, treating them as a single index. It can improve queries that filter or sort using those columns together, though the order of the columns affects which queries can use it effectively. It does not combine tables or create temporary copies of data.

Submit

20. Which index type uses a tree structure to organize keys?

Explanation

A B-tree index organizes keys in a balanced tree, keeping them sorted and enabling efficient searches, insertions, and deletions. Its hierarchical structure lets databases locate values without scanning every record.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does ACID stand for in database transactions?
True or False: A hash index is ideal for range queries.
What does query optimization primarily focus on?
True or False: Denormalization always improves database performance.
A _____ is a virtual table created by a query that can be used like a...
Which indexing strategy involves storing row addresses directly?
True or False: A table can have multiple primary keys.
What is a primary key's main function?
A _____ is a set of SQL statements executed as a single unit.
Which operation is most efficient on an indexed column?
What is the primary purpose of an index in a database?
A _____ join returns only rows that have matching values in both...
What is the purpose of a foreign key in relational databases?
Which normal form eliminates transitive dependencies?
A _____ is a constraint that ensures every value in a column is...
What is database normalization primarily designed to achieve?
Which of the following is a disadvantage of creating too many indexes?
In SQL query execution, what is a query plan?
What does a composite index contain?
Which index type uses a tree structure to organize keys?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!