0% found this document useful (0 votes)
31 views

DBMS Quiz

dbms related quiz

Uploaded by

srikanthraja29
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

DBMS Quiz

dbms related quiz

Uploaded by

srikanthraja29
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DBMS Quiz

1. Which of the following best describes a database?

• A. A collection of files
• B. A structured collection of data
• C. A set of random data
• D. A collection of programs

Answer: B. A structured collection of data

2. What does the acronym ACID stand for in the context of database transactions?

• A. Atomicity, Consistency, Integrity, Durability


• B. Atomicity, Consistency, Isolation, Durability
• C. Atomicity, Compacity, Isolation, Durability
• D. Availability, Consistency, Integrity, Durability

Answer: B. Atomicity, Consistency, Isolation, Durability

3. In the context of DBMS, what is a "schema"?

• A. A query language
• B. A structured representation of a database's organization
• C. A type of database index
• D. A tool to manage database security

Answer: B. A structured representation of a database's organization

4. What does the SELECT statement do in SQL?

• A. Deletes data from a table


• B. Inserts data into a table
• C. Retrieves data from a table
• D. Updates data in a table

Answer: C. Retrieves data from a table

5. Which of the following is an example of a NoSQL database?

• A. Oracle Database
• B. Microsoft SQL Server
• C. MongoDB
• D. PostgreSQL

Answer: C. MongoDB

6. What type of relationship does a "one-to-many" relationship represent in an ER diagram?


• A. A parent-child relationship
• B. A bidirectional relationship
• C. A unidirectional relationship with a single parent and multiple children
• D. An aggregate relationship

Answer: C. A unidirectional relationship with a single parent and multiple children

7. What is a foreign key in a relational database?

• A. A key used to uniquely identify a row


• B. A field that uniquely identifies a record in the same table
• C. A field in one table that links to the primary key of another table
• D. A key used to organize data in the table

Answer: C. A field in one table that links to the primary key of another table

8. Which of the following DBMS models uses tables to store data?

• A. Network Model
• B. Relational Model
• C. Object-Oriented Model
• D. Hierarchical Model

Answer: B. Relational Model

9. What is normalization in the context of databases?

• A. The process of creating backup copies of data


• B. The process of organizing data to reduce redundancy
• C. The process of indexing data for faster retrieval
• D. The process of encrypting data for security

Answer: B. The process of organizing data to reduce redundancy

10. What does SQL stand for?

• A. Simple Query Language


• B. Structured Query Language
• C. Scripting Query Language
• D. Sequential Query Language

Answer: B. Structured Query Language

11. In a relational database, what is a primary key used for?

• A. To store foreign keys


• B. To provide a way to delete duplicate rows
• C. To uniquely identify each record in a table
• D. To link tables together

Answer: C. To uniquely identify each record in a table


12. Which SQL statement is used to add a new record to a table?

• A. INSERT INTO
• B. UPDATE
• C. DELETE
• D. SELECT INTO

Answer: A. INSERT INTO

13. What is a "join" in SQL?

• A. A method to group rows with the same value


• B. A method to combine rows from two or more tables based on a related column
• C. A way to filter rows based on a condition
• D. A technique for removing duplicates from a query result

Answer: B. A method to combine rows from two or more tables based on a related column

14. What is the main purpose of indexing in a database?

• A. To encrypt data for security


• B. To provide a fast lookup for data retrieval
• C. To normalize data and reduce redundancy
• D. To backup data periodically

Answer: B. To provide a fast lookup for data retrieval

15. What is the use of the GROUP BY clause in SQL?

• A. To filter records based on a condition


• B. To sort records in ascending order
• C. To group rows that have the same values in specified columns
• D. To join tables

Answer: C. To group rows that have the same values in specified columns

16. In which DBMS model is data stored in nodes and relationships represented as edges?

• A. Relational Model
• B. Network Model
• C. Hierarchical Model
• D. Graph Model

Answer: D. Graph Model

17. Which SQL clause is used to filter records in a SELECT query?

• A. WHERE
• B. GROUP BY
• C. HAVING
• D. ORDER BY
Answer: A. WHERE

18. What is a deadlock in a database management system?

• A. A situation where two transactions are unable to proceed because each is waiting for the other to release
a lock
• B. A condition where data is being corrupted due to failed transactions
• C. A conflict between the primary key and foreign key in a database
• D. A temporary suspension of database queries

Answer: A. A situation where two transactions are unable to proceed because each is waiting for the other to
release a lock

19. In DBMS, what is referential integrity?

• A. Ensuring that records in a table are unique


• B. Ensuring that the relationships between tables are consistent
• C. Ensuring that data in a table is ordered
• D. Ensuring that no null values are entered into a table

Answer: B. Ensuring that the relationships between tables are consistent

20. What is a "view" in a relational database?

• A. A stored procedure
• B. A table with additional features
• C. A virtual table created by a query on one or more tables
• D. A physical copy of a table

Answer: C. A virtual table created by a query on one or more tables

You might also like