Database Management System Questions and Answers PDF

0.32 MB / 8 Pages
0 likes
share this pdf Share
DMCA / report this pdf Report
Database Management System Questions and Answers
Preview PDF

Database Management System Questions and Answers

DBMS Multiple Choice Questions with Answers

  1. Question: Which of the following is not a type of database model?
    • A) Relational
    • B) Hierarchical
    • C) Sequential
    • D) Network
    • Answer: C) Sequential
  2. Question: What is the primary key in a relational database?
    • A) A key that uniquely identifies each row in a table
    • B) A key that is used to sort data in a table
    • C) A key that is used to create relationships between tables
    • D) A key that is used for indexing purposes
    • Answer: A) A key that uniquely identifies each row in a table
  3. Question: Which SQL command is used to retrieve data from a database?
    • A) SELECT
    • B) UPDATE
    • C) DELETE
    • D) INSERT
    • Answer: A) SELECT
  4. Question: In a relational database, a foreign key is used to:
    • A) Create a link between two tables
    • B) Ensure data integrity
    • C) Establish a primary key
    • D) Sort data in a table
    • Answer: A) Create a link between two tables
  5. Question: Which of the following is not a data manipulation command in SQL?
    • A) INSERT
    • B) CREATE
    • C) UPDATE
    • D) DELETE
    • Answer: B) CREATE
  6. Question: Which of the following is not a SQL aggregate function?
    • A) SUM
    • B) AVG
    • C) ADD
    • D) COUNT
    • Answer: C) ADD
  7. Question: In a relational database, a table is also known as:
    • A) Tuple
    • B) Entity
    • C) Attribute
    • D) Relation
    • Answer: D) Relation
  8. Question: Which of the following is not a component of ACID properties in DBMS?
    • A) Atomicity
    • B) Consistency
    • C) Isolation
    • D) Durability
    • Answer: C) Isolation
  9. Question: Which SQL command is used to add a new column to an existing table?
    • A) ALTER TABLE
    • B) CREATE TABLE
    • C) ADD COLUMN
    • D) UPDATE TABLE
    • Answer: A) ALTER TABLE
  10. Question: Which of the following is used to enforce referential integrity in a relational database?
    • A) Foreign key constraints
    • B) Primary key constraints
    • C) Check constraints
    • D) Unique constraints
    • Answer: A) Foreign key constraints
  11. Question: Which of the following is true about a DBMS?
    • A) It is hardware-independent
    • B) It is only used for storing data
    • C) It does not support transaction management
    • D) It cannot enforce data integrity constraints
    • Answer: A) It is hardware-independent
  12. Question: Which SQL command is used to delete a table from a database?
    • A) DELETE
    • B) DROP
    • C) TRUNCATE
    • D) REMOVE
    • Answer: B) DROP
  13. Question: What does DDL stand for in the context of a database?
    • A) Data Definition Language
    • B) Data Description Language
    • C) Database Definition Language
    • D) Database Description Language
    • Answer: A) Data Definition Language
  14. Question: Which of the following is an example of a NoSQL database?
    • A) MySQL
    • B) Oracle
    • C) MongoDB
    • D) SQL Server
    • Answer: C) MongoDB
  15. Question: What is a view in a database?
    • A) A virtual table based on the result of a SELECT query
    • B) A physical table that stores data permanently
    • C) A table used for temporary storage
    • D) A table that contains metadata about other tables
    • Answer: A) A virtual table based on the result of a SELECT query
  16. Question: Which SQL command is used to change the data in a database?
    • A) UPDATE
    • B) MODIFY
    • C) ALTER
    • D) CHANGE
    • Answer: A) UPDATE
  17. Question: What does OLAP stand for in the context of databases?
    • A) Online Application Processing
    • B) Online Analytical Processing
    • C) Offline Application Processing
    • D) Offline Analytical Processing
    • Answer: B) Online Analytical Processing
  18. Question: Which of the following is not a type of database index?
    • A) B-tree index
    • B) Hash index
    • C) Tree index
    • D) Sequence index
    • Answer: D) Sequence index
  19. Question: What is the purpose of a transaction in a database?
    • A) To perform data manipulation operations
    • B) To store metadata about the database
    • C) To ensure data consistency and integrity
    • D) To manage database connections
    • Answer: C) To ensure data consistency and integrity
  20. Question: Which SQL command is used to retrieve unique rows from a table?
    • A) UNIQUE
    • B) DISTINCT
    • C) UNIQUE_ROWS
    • D) DISTINCT_ROWS
    • Answer: B) DISTINCT

Download Database Management System Questions and Answers PDF

Free Download
Welcome to 1PDF!