dbms banner

DBMS Multiple Choice Questions (MCQs) and Answers

Master Database Management Systems (DBMS) with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of DBMS. Begin your placement preparation journey now!

Q1

Q1 Which of the following best defines a database?

A

A collection of programs

B

A type of software

C

A collection of data

D

A type of computer

Q2

Q2 What is the primary function of a Database Management System (DBMS)?

A

Managing software installation

B

Data processing

C

Data storage and retrieval

D

Computer networking

Q3

Q3 Which of the following is NOT a characteristic of a DBMS?

A

Data redundancy

B

Data integrity

C

Data security

D

Data independence

Q4

Q4 The process of organizing data into tables and establishing relationships between them is known as:

A

Data mining

B

Data modeling

C

Data warehousing

D

Database design

Q5

Q5 Which of the following SQL statements is used to insert a new record into a table?

A

SELECT

B

UPDATE

C

INSERT INTO

D

DELETE

Q6

Q6 In the context of database security, what does the term 'authentication' refer to?

A

Ensuring data is not corrupted

B

Verifying user identity

C

Encrypting data

D

Backing up data

Q7

Q7 Which of the following is a correct syntax to select all columns from a table named "Customers"?

A

SELECT * FROM Customers

B

SELECT Customers

C

SELECT all FROM Customers

D

GET * FROM Customers

Q8

Q8 What does the following SQL query do? SELECT COUNT(*) FROM Orders;

A

Counts the number of orders in the Orders table

B

Updates the number of orders

C

Deletes the Orders table

D

Creates a new Orders table

Q9

Q9 A database query returns unexpected duplicates of some records. What is the most likely reason for this occurrence?

A

The SELECT statement includes a JOIN without proper conditions

B

Incorrect use of DISTINCT

C

The database has been corrupted

D

A WHERE clause is missing

Q10

Q10 What is the purpose of an Entity-Relationship (ER) diagram?

A

To document the syntax of SQL

B

To model physical database storage

C

To illustrate database relationships

D

To monitor database performance

Q11

Q11 In an ER diagram, what do entities represent?

A

Relationships between tables

B

Physical storage locations

C

Real-world objects or concepts

D

Database queries

Q12

Q12 Which of the following best describes an attribute in an ER model?

A

A link between entities

B

A primary key

C

A characteristic or property of an entity

D

A type of relationship

Q13

Q13 The uniqueness of each row in a database table is ensured by:

A

The primary key

B

The foreign key

C

An index

D

A trigger

Q14

Q14 A relationship in an ER model that involves more than two entity types is known as:

A

A binary relationship

B

A ternary relationship

C

A primary relationship

D

An associative relationship

Q15

Q15 Which of the following is NOT a type of integrity constraint in a relational database?

A

Referential integrity

B

Semantic integrity

C

Structural integrity

D

Domain integrity

Q16

Q16 In a "many-to-many" relationship, which of the following is required to model this relationship in a relational database?

A

A composite primary key

B

A junction table

C

A foreign key constraint

D

An index

Q17

Q17 An attribute that uniquely identifies each entity in an entity set is called a:

A

Composite attribute

B

Derived attribute

C

Multi-valued attribute

D

Key attribute

Q18

Q18 Which SQL keyword is used to remove a table from a database?

A

DROP

B

DELETE

C

REMOVE

D

ALTER

Q19

Q19 To add a column named "Email" of type VARCHAR to an existing table named "Users," which SQL statement is correct?

A

ALTER TABLE Users ADD COLUMN Email VARCHAR

B

ALTER TABLE Users ADD Email VARCHAR

C

UPDATE TABLE Users ADD Email VARCHAR

D

INSERT INTO Users (Email) VALUES ('VARCHAR')

Q20

Q20 What is the correct SQL statement to create a foreign key in the "Orders" table that references the "Customers" table's primary key?

A

CREATE FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)

B

ALTER TABLE Orders ADD CONSTRAINT fk_customer FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)

C

ALTER TABLE Orders ADD FOREIGN KEY (CustomerID) REFERENCES Customers

D

CREATE TABLE Orders ADD FOREIGN KEY CustomerID REFERENCES Customers

Q21

Q21 An ER diagram incorrectly shows two entities directly connected by more than one relationship.
What is this error known as?

A

Relationship redundancy

B

Cardinality mismatch

C

Entity ambiguity

D

Attribute duplication

Q22

Q22 In an ER diagram, an entity set that does not have sufficient attributes to form a primary key is marked as:

A

Weak entity

B

Strong entity

C

Derived entity

D

Composite entity

Q23

Q23 Which SQL statement is used to extract data from a database?

A

INSERT INTO

B

UPDATE

C

SELECT

D

DELETE

Q24

Q24 An index in a database is used to:

A

Decrease storage space

B

Increase data redundancy

C

Speed up data retrieval

D

Secure the database

Q25

Q25 Which of the following is a benefit of query optimization in databases?

A

Reduces the need for indexes

B

Increases the complexity of queries

C

Improves query performance

D

Decreases database security

Q26

Q26 In SQL, the JOIN clause is used to:

A

Combine rows from only two tables based on related columns

B

Delete matching rows in two tables

C

Update matching columns in two tables

D

Combine rows from two or more tables based on related columns

Q27

Q27 The primary purpose of normalizing a database is to:

A

Reduce the database size

B

Increase query speed

C

Reduce data redundancy and improve data integrity

D

Simplify security management

Q28

Q28 What does the term 'cardinality' refer to in the context of databases?

A

The uniqueness of data in a column

B

The number of rows in a table

C

The number of tables in a database

D

The relationships between tables

Q29

Q29 Which of the following best describes the concept of "transaction isolation level"?

A

The ability to execute SQL transactions in parallel

B

The degree to which transaction changes are visible to other transactions

C

The speed at which transactions are executed

D

The security level applied to transactions

Q30

Q30 A query plan in a database system is:

A

A set of operations used to secure the database

B

A roadmap for data backup procedures

C

A detailed plan for executing a query, outlining steps and resource use

D

A user guide for database maintenance

...
ad verticalad vertical
ad