Dive into the world of Database Management Systems with this beginner-friendly quiz! Whether you are just starting out or want to refresh your foundational knowledge, these questions cover key concepts crucial to understanding DBMS. Each question comes with a correct answer and a brief explanation to enrich your learning experience.
1. What does DBMS stand for?
Answer:
Explanation:
DBMS stands for Database Management System, which is a software system that manages databases.
2. Which of the following is NOT a type of DBMS?
Answer:
Explanation:
There's no type of DBMS known as FDBMS. RDBMS stands for Relational DBMS, HDBMS for Hierarchical DBMS, and OODBMS for Object-Oriented DBMS.
3. What language is used by most relational DBMSs for queries?
Answer:
Explanation:
SQL stands for Structured Query Language and is the standard language used to query a relational database.
4. In a database, what is a collection of related data entries called?
Answer:
Explanation:
In a database, a table is a collection of related data entries. It consists of columns and rows.
5. What is a single entry in a database table called?
Answer:
Explanation:
A single entry in a database table, representing a set of related data, is called a record or a row.
6. Which of the following best describes the purpose of a primary key in a database table?
Answer:
Explanation:
A primary key is used to uniquely identify each record in a database table.
7. What type of database relationship links records in two tables based on common values?
Answer:
Explanation:
A foreign key relationship in one table links records to primary key values in another table based on common values.
8. What does a composite key mean in a DBMS?
Answer:
Explanation:
A composite key is made up of two or more columns in a table that are used together to uniquely identify each row.
9. Which one is NOT a characteristic of a database?
Answer:
Explanation:
Databases store persistent data, which means the data remains in the database even if the system is turned off.
10. In a relational database, a table is also known as a?
Answer:
Explanation:
In a relational model, a table is often referred to as a relation, whereas rows are called tuples and columns are called attributes.
11. A foreign key in one table points to the ________ in another table.
Answer:
Explanation:
A foreign key in one table references the primary key of another table, establishing a link between them.
12. Which of the following refers to the correctness and completeness of data?
Answer:
Explanation:
Data integrity ensures that the data in the database is accurate and reliable.
13. What is the primary purpose of normalization in DBMS?
Answer:
Explanation:
Normalization is a process of organizing data to reduce redundancy and improve data integrity.
14. What does the acronym ACID stand for in database transactions?
Answer:
Explanation:
ACID properties ensure the reliable processing of transactions within a DBMS.
15. Which of the following models uses a tree-like structure?
Answer:
Explanation:
The hierarchical model represents data in a tree-like structure, with one root and a hierarchy of subordinate segments or records.
16. What does DDL stand for in DBMS?
Answer:
Explanation:
DDL, or Data Definition Language, consists of SQL commands that define and manage database structures, like creating, altering, and dropping tables.
17. In a database, what does a 'foreign key' represent?
Answer:
Explanation:
A foreign key is a field (or set of fields) in a table that uniquely identifies a row of another table, enforcing referential integrity in the database.
18. Which normal form ensures that a table has a primary key and that all columns are fully functionally dependent on it?
Answer:
Explanation:
The First Normal Form (1NF) ensures that each column contains atomic (indivisible) values, and there is a primary key present.
19. What does the 'C' in CRUD operations stand for?
Answer:
Explanation:
CRUD stands for Create, Read, Update, and Delete - the four basic functions of persistent storage in DBMS.
20. Which of the following is NOT a type of database join?
Answer:
Explanation:
There's no type of database join known as a Middle Join. Joins combine rows from two or more tables based on related columns.
21. Which of the following DBMS is NOT based on the relational model?
Answer:
Explanation:
MongoDB is a NoSQL database, which means it doesn't rely on the traditional relational database model.
22. What is the main advantage of using an index in a DBMS?
Answer:
Explanation:
Indexing speeds up the search/query performance by creating a data structure that can be quickly traversed to find the required data.
23. Which command is used to remove a table from a database in SQL?
Answer:
Explanation:
The "DROP TABLE" command is used to delete an existing table from a database.
24. Which of the following is a disadvantage of a database management system?
Answer:
Explanation:
While DBMS offers many advantages, they can be complex systems requiring specialized knowledge to set up and maintain.
25. What is a data warehouse?
Answer:
Explanation:
A data warehouse is a system used for reporting and analyzing and is a central repository of data integrated from different sources.
26. What does the SQL command "ALTER" do?
Answer:
Explanation:
The "ALTER" command is used to modify an existing object inside a database, such as adding, deleting, or modifying columns in an existing table.
27. Which SQL statement is used to retrieve data from a database?
Answer:
Explanation:
The "SELECT" statement is used to select data from one or more tables.
28. In a DBMS, what is the role of a schema?
Answer:
Explanation:
A schema in a DBMS defines the logical structure of the database, including tables, columns, keys, indexes, relationships, and more.
29. Which of the following SQL statements is used to update existing data in a database?
Answer:
Explanation:
The "UPDATE" statement is used to modify existing data in a table.
30. Which of the following is not a property of transaction in DBMS?
Answer:
Explanation:
Transactions in DBMS follow the ACID properties: Atomicity, Consistency, Isolation, and Durability.
31. Which normal form aims to remove transitive dependencies in a relational database?
Answer:
Explanation:
The Third Normal Form (3NF) is focused on eliminating transitive dependencies from a relational database.
32. What is a 'view' in a DBMS?
Answer:
Explanation:
A view in DBMS is a virtual table that is based on the result of a SQL statement. It does not hold data itself but rather references data contained in other tables.
33. Which of the following is NOT a SQL constraint?
Answer:
Explanation:
"DELETE" is an SQL command to remove records from a table, not a constraint.
34. What does the SQL command "JOIN" specifically do?
Answer:
Explanation:
The "JOIN" command in SQL is used to combine rows from two or more tables based on a related column between them.
35. What is the purpose of the "GROUP BY" clause in SQL?
Answer:
Explanation:
"GROUP BY" groups the rows that have the same values in specified columns into summary rows.
36. Which SQL clause is used to specify a condition while fetching data from a single table?
Answer:
Explanation:
The "WHERE" clause is used to filter records and extract only those that fulfill a specified condition.
37. What is the result of the SQL command "DROP TABLE table name;"?
Answer:
Explanation:
The "DROP TABLE" command removes a table and all of its data permanently from the database.
38. In which normal form, does a table have all entries in a column of the same kind?
Answer:
Explanation:
In the First Normal Form (1NF), each column must have atomic (indivisible) values.
39. In a relational database, what does a row represent?
Answer:
Explanation:
In the context of a relational database, a row is also known as a tuple.
40. Which SQL statement is used to insert a new record in a table?
Answer:
Explanation:
The "INSERT INTO" statement is used to insert new records into a table.
41. Which of the following operations allows for extracting a subset of a database?
Answer:
Explanation:
The projection operation extracts only the desired columns without modifying the rows.
Comments
Post a Comment
Leave Comment