ICT Database Management Concepts — Questions and Answers
Question 1: Which SQL clause is used to filter records after a GROUP BY operation?
- WHERE
- HAVING (Correct answer)
- FILTER
- LIMIT
Correct answer: HAVING
HAVING filters grouped results, while WHERE filters rows before grouping occurs.
Question 2: What does ACID stand for in database transactions?
- Atomicity, Consistency, Isolation, Durability (Correct answer)
- Access, Control, Integrity, Data
- Automatic, Concurrent, Indexed, Distributed
- Atomic, Cached, Isolated, Durable
Correct answer: Atomicity, Consistency, Isolation, Durability
ACID properties ensure reliable database transactions: Atomicity, Consistency, Isolation, and Durability.
Question 3: Which type of join returns only rows where there is a match in both tables?
- LEFT JOIN
- RIGHT JOIN
- FULL OUTER JOIN
- INNER JOIN (Correct answer)
Correct answer: INNER JOIN
An INNER JOIN returns only the rows that have matching values in both joined tables.
Question 4: What is a foreign key in a relational database?
- A key that encrypts sensitive columns
- A column that uniquely identifies each row in its own table
- A column that references the primary key of another table (Correct answer)
- An index key used for faster lookups
Correct answer: A column that references the primary key of another table
A foreign key is a field in one table that refers to the primary key in another table, establishing a relationship.
Question 5: Which normal form eliminates transitive functional dependencies?
- First Normal Form (1NF)
- Second Normal Form (2NF)
- Third Normal Form (3NF) (Correct answer)
- Boyce-Codd Normal Form (BCNF)
Correct answer: Third Normal Form (3NF)
3NF removes transitive dependencies, ensuring non-key attributes depend only on the primary key.
Question 6: What is the purpose of an index in a database?
- To enforce referential integrity
- To speed up data retrieval operations (Correct answer)
- To prevent duplicate rows
- To compress stored data
Correct answer: To speed up data retrieval operations
An index creates a data structure that allows the database engine to find rows faster without scanning the entire table.
Question 7: Which SQL command removes all rows from a table but keeps its structure?
- DELETE
- DROP
- TRUNCATE (Correct answer)
- REMOVE
Correct answer: TRUNCATE
TRUNCATE removes all rows from a table quickly without logging individual row deletions, but preserves the table structure.
Question 8: What is a deadlock in database management?
- A query that returns no results
- A situation where two transactions wait indefinitely for each other's locked resources (Correct answer)
- A database backup failure
- A corrupted index structure
Correct answer: A situation where two transactions wait indefinitely for each other's locked resources
A deadlock occurs when two or more transactions each hold locks the others need, causing all to wait forever.
Question 9: Which database model stores data as collections of key-value pairs, documents, or graphs?
- Relational database
- Hierarchical database
- NoSQL database (Correct answer)
- Network database
Correct answer: NoSQL database
NoSQL databases use non-tabular storage models such as key-value, document, column-family, or graph formats.
Question 10: What does the SQL keyword DISTINCT do in a SELECT statement?
- Sorts results in descending order
- Returns only unique values, eliminating duplicates (Correct answer)
- Limits the number of returned rows
- Filters rows based on a condition
Correct answer: Returns only unique values, eliminating duplicates
DISTINCT ensures only unique rows are returned by removing duplicate values from query results.
Question 11: In a database context, what is a view?
- A physical copy of a table stored on disk
- A virtual table based on the result of a SQL query (Correct answer)
- A backup snapshot of a database
- A type of index for faster lookups
Correct answer: A virtual table based on the result of a SQL query
A view is a stored SQL query that presents data from one or more tables as if it were a single virtual table.
Question 12: Which concurrency control technique uses timestamps to order transactions?
- Two-phase locking
- Optimistic concurrency control
- Timestamp-based protocol (Correct answer)
- Deadlock prevention
Correct answer: Timestamp-based protocol
The timestamp-based protocol assigns timestamps to transactions and uses them to determine the serialization order.
Question 13: What is data redundancy in a database?
- Backing up data to multiple locations
- Storing the same data in multiple places unnecessarily (Correct answer)
- Encrypting data for security
- Compressing data to save space
Correct answer: Storing the same data in multiple places unnecessarily
Data redundancy occurs when the same data is stored in more than one place, wasting storage and risking inconsistencies.
Question 14: Which SQL aggregate function returns the total number of rows in a result set?
- SUM()
- AVG()
- COUNT() (Correct answer)
- MAX()
Correct answer: COUNT()
COUNT() returns the number of rows that match a specified condition or all rows in a table.
Question 15: What is the role of a Database Administrator (DBA)?
- Writing front-end user interfaces
- Designing, maintaining, and securing the database system (Correct answer)
- Developing mobile applications
- Managing network hardware infrastructure
Correct answer: Designing, maintaining, and securing the database system
A DBA is responsible for installing, configuring, upgrading, monitoring, and securing database systems.
Question 16: Which type of relationship in an ER diagram means one record in Table A can relate to many records in Table B?
- One-to-one
- Many-to-many
- One-to-many (Correct answer)
- Zero-to-many
Correct answer: One-to-many
A one-to-many relationship means a single record in one table can be associated with multiple records in another table.
Question 17: What is a stored procedure in a database?
- A temporary table created during a query
- A precompiled set of SQL statements stored in the database (Correct answer)
- A log file of executed queries
- A type of database index
Correct answer: A precompiled set of SQL statements stored in the database
A stored procedure is a prepared SQL code saved in the database that can be reused by calling it by name.
Question 18: Which property of a transaction ensures that once committed, changes survive system failures?
- Atomicity
- Consistency
- Isolation
- Durability (Correct answer)
Correct answer: Durability
Durability guarantees that committed transactions are permanently saved even if the system crashes immediately after.
Question 19: What does SQL stand for?
- Structured Query Language (Correct answer)
- Sequential Query Logic
- System Query Layer
- Standard Query Link
Correct answer: Structured Query Language
SQL stands for Structured Query Language, the standard language for managing and querying relational databases.
Question 20: In database design, what is an entity?
- A relationship between two tables
- A real-world object or concept represented in the database (Correct answer)
- A column with a unique constraint
- A type of database index
Correct answer: A real-world object or concept represented in the database
An entity is any real-world object, person, place, or concept about which data is stored in the database.
Question 21: What is the purpose of the ROLLBACK statement in SQL?
- To permanently save all changes made during a transaction
- To undo all changes made during the current transaction (Correct answer)
- To delete a table from the database
- To reset auto-increment counters
Correct answer: To undo all changes made during the current transaction
ROLLBACK reverts all changes made within the current transaction, restoring the database to its previous state.
Which SQL clause is used to filter records after a GROUP BY operation?
What Practice Test Geeks adds beyond an AI chat for ICT
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length ICT mock exam — 30 questions in 45 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed ICT question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- A printable ICT cheat sheet you can print or save as a PDF.
- ICT flashcards built from the same question bank.
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy