Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Management System Quiz

Total questions: 101

Worksheet time: 51mins

Name
Class
Date
1.

Which of the following is NOT a primary characteristic of the database approach?

a)

Data redundancy is minimized

b)

Data independence is achieved

c)

Data is stored in isolated files

d)

Data is shared across different applications

2.

In the database approach, what is meant by 'data independence'?

a)

The ability to separate data from the applications that use it

b)

The ability to keep data isolated within a single application

c)

The ability to access data from multiple sources

d)

The ability to modify the data without affecting the storage medium

3.

Which of the following is a major advantage of the database approach over the filesystem approach?

a)

Higher redundancy

b)

Increased data consistency

c)

Lower security

d)

Difficulty in managing large datasets

4.

What role does a 'DBMS' (Database Management System) play in the database approach?

a)

Provides a framework for developing applications

b)

Acts as an interface between the user and the physical database

c)

Defines the logical structure of the data

d)

Stores the data in external files

5.

What does 'concurrency control' in a database system ensure?

a)

That users can access the database in a sequential manner

b)

That multiple users can access and modify the database simultaneously without conflicts

c)

That users are prevented from accessing the database simultaneously

d)

That the database is backed up regularly

6.

In a database approach, what is a 'schema'?

a)

A table that holds the data

b)

The physical storage of data

c)

A blueprint of the database structure, including the relationships between entities

d)

A program that processes the database queries

7.

Which of the following is a characteristic of a 'relational database'?

a)

Data is stored as files

b)

Data is stored in tables with rows and columns

c)

Data is stored in a hierarchical tree structure

d)

Data is stored in unstructured formats

8.

In the context of the database approach, which of the following is true about 'data integrity'?

a)

It ensures that the data is accurate and consistent across the database

b)

It ensures that the data can be accessed by unauthorized users

c)

It ensures that there is no data redundancy

d)

It ensures that the data is stored in multiple locations

9.

Which of the following is a feature of a 'centralized' database approach?

a)

The data is distributed across multiple locations

b)

All data is stored in a single location or server

c)

Each user has a separate, isolated database

d)

Data is replicated across many servers for faster access

10.

What does 'normalization' in the database approach aim to achieve?

a)

Increased data redundancy

b)

Eliminate data anomalies and reduce redundancy

c)

Optimize database queries for performance

d)

Store data in a denormalized form for easier access

11.

What is a Database Management System (DBMS)?

a)

A type of computer programming language

b)

A system for managing data files on a disk

c)

A software system used to manage and manipulate databases

d)

A hardware system that stores data

12.

Which of the following is a characteristic of a DBMS?

a)

It stores and manages data in a structured format

b)

It can only store text data

c)

It requires manual processing of data

d)

It uses multiple operating systems to manage data

13.

Which of the following is NOT an example of a DBMS?

a)

MySQL

b)

Oracle

c)

Microsoft Excel

d)

PostgreSQL

14.

Which model is used by DBMS for representing data in a table format with rows and columns?

a)

Hierarchical Model

b)

Network Model

c)

Relational Model

d)

Object-Oriented Model

15.

Which of the following is a primary function of a DBMS?

a)

Data security

b)

Data storage and retrieval

c)

Data integrity

d)

All of the above

16.

Which of the following is NOT a type of database index?

a)

Clustered index

b)

Non-clustered index

c)

Bitmap index

d)

Binary index

17.

Which SQL command is used to retrieve data from a database?

a)

INSERT

b)

UPDATE

c)

SELECT

d)

DELETE

18.

What is the purpose of normalization in a DBMS?

a)

To enhance the speed of query execution

b)

To reduce redundancy and ensure data integrity

c)

To create backup copies of the database

d)

To control user access to data

19.

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

a)

Atomicity, Consistency, Isolation, Durability

b)

Automatic, Consistent, Independent, Durable

c)

Atomic, Concurrent, Intelligent, Durable

d)

Accessibility, Consistency, Integrity, Durability

20.

Which of the following is a type of relationship that can exist between two entities in a relational database?

a)

One-to-One

b)

One-to-Many

c)

Many-to-Many

d)

All of the above

21.

What is one of the key advantages of a DBMS over traditional file systems?

a)

Redundancy

b)

Data Integrity

c)

Slow Data Retrieval

d)

Data Duplication

22.

Which of the following is a benefit of DBMS in terms of data security?

a)

Data can be accessed by any user

b)

Security is maintained through user roles and permissions

c)

Data is stored in unencrypted form

d)

All users can modify data without restrictions

23.

In a DBMS, data redundancy is:

a)

Increased

b)

Decreased

c)

Unaffected

d)

Eliminated

24.

A DBMS provides:

a)

No data consistency

b)

Redundant data storage

c)

Centralized data management

d)

Poor data accessibility

25.

What is an advantage of using DBMS in terms of data retrieval?

a)

Slower access speed

b)

Faster data retrieval through indexing

c)

Inconsistent data retrieval

d)

Limited query capabilities

26.

One of the advantages of DBMS is:

a)

It increases the complexity of data management

b)

It allows multiple users to access the data simultaneously

c)

It stores data in text files

d)

It does not support backup and recovery

27.

Which of the following is a key feature of DBMS that helps in data consistency?

a)

Use of external files

b)

Data redundancy

c)

Normalization

d)

Lack of data integrity

28.

A DBMS helps in reducing:

a)

Data inconsistency

b)

Query speed

c)

Data security

d)

Database management costs

29.

Which of the following benefits is provided by a DBMS in terms of data backup and recovery?

a)

It offers no backup options

b)

It ensures easy and reliable backup and recovery of data

c)

It complicates backup procedures

d)

Backup is only available for system administrators

30.

A major advantage of DBMS for large organizations is:

a)

Handling large volumes of unstructured data

b)

Managing data in separate physical files

c)

Efficient management of large datasets with complex relationships

d)

Limited support for concurrent data access

31.

What is a schema in SQL?

a)

A collection of tables only

b)

A collection of database objects like tables, views, and procedures

c)

A single database table

d)

A type of SQL query

32.

Can two tables with the same name exist in different schemas?

a)

Yes, as long as they are in different databases

b)

No, table names must be unique across all schemas

c)

Yes, if they are in different schemas

d)

No, a schema only allows one table of each name

33.

How do you create a table in a specific schema?

a)

CREATE TABLE schema_name.table_name;

b)

CREATE schema_name.table_name;

c)

CREATE TABLE table_name IN schema_name;

d)

CREATE TABLE schema_name::table_name;

34.

Can you drop a schema in SQL?

a)

Yes, using DROP SCHEMA schema_name;

b)

No, schemas cannot be dropped

c)

Yes, using REMOVE SCHEMA schema_name;

d)

Yes, using DELETE SCHEMA schema_name;

35.

How do you list all the schemas in a database?

a)

SHOW SCHEMAS;

b)

SELECT * FROM schemas;

c)

SELECT schema_name FROM information_schema.schemata;

d)

LIST SCHEMAS;

36.

Do you list all the schemas in a database?

a)

SHOW SCHEMAS;

b)

SELECT * FROM schemas;

c)

SELECT schema_name FROM information_schema.schemata;

d)

LIST SCHEMAS;

37.

How can you rename an existing schema in SQL?

a)

RENAME SCHEMA schema_name TO new_schema_name;

b)

ALTER SCHEMA schema_name RENAME TO new_schema_name;

c)

CHANGE SCHEMA schema_name TO new_schema_name;

d)

RENAME schema_name TO new_schema_name;

38.

What are the potential issues when using multiple schemas for the same set of tables in a database?

a)

There are no issues; schemas provide complete separation

b)

It can lead to performance issues and conflicts in naming

c)

It can cause security problems because of permissions overlap

d)

It increases the difficulty in database backups

39.

In SQL, when you create a table with the IF NOT EXISTS clause, what will happen if the table already exists in the same schema?

a)

The table will be created again, overwriting the existing one.

b)

An error will occur, and the table creation will fail.

c)

The table creation will be ignored, and the existing table remains unaffected.

d)

The table will be created in a different schema.

40.

What happens if a schema is deleted in SQL?

a)

The schema is deleted, but all objects within it remain intact

b)

The schema and all its objects are permanently deleted

c)

Only tables in the schema are deleted

d)

Only views in the schema are deleted

41.

Which of the following is not a primary goal of a DBMS?

a)

Data redundancy control

b)

Data security

c)

Efficient data retrieval

d)

Reducing hardware costs

42.

One of the main goals of a DBMS is to provide data independence. What does this refer to?

a)

Ability to store data in a centralized location

b)

Flexibility to change the database schema without affecting application programs

c)

Ensuring data consistency

d)

Ensuring the availability of data at all times

43.

What goal of DBMS is achieved by storing data in a structured and organized way that reduces redundancy?

a)

Data integrity

b)

Data independence

c)

Data consistency

d)

Data redundancy control

44.

Which of the following is a primary objective of enforcing data security in a DBMS?

a)

To prevent unauthorized access to the database

b)

To improve the performance of database queries

c)

To make the database accessible to all users

d)

To reduce database size

45.

Which of the following goals ensures that data is accurate and consistent in the database?

a)

Data integrity

b)

Data independence

c)

Data redundancy control

d)

Data security

46.

A DBMS aims to manage large volumes of data efficiently. This goal is primarily focused on:

a)

Data independence

b)

Data storage and retrieval performance

c)

Data security

d)

Data backup and recovery

47.

The DBMS provides an environment for multi-user access to the database. This goal primarily focuses on:

a)

Data independence

b)

Transaction management

c)

Data security

d)

Concurrency control

48.

Which goal of DBMS refers to the ability to backup and restore data to prevent data loss?

a)

Data redundancy control

b)

Data consistency

c)

Data backup and recovery

d)

Data security

49.

The goal of data consistency in a DBMS ensures that:

a)

All database changes are reflected consistently across all instances.

b)

Data is always available for use.

c)

All users have the same view of the data.

d)

Data is not duplicated in the database.

50.

Which of the following goals of DBMS is focused on managing database transactions to ensure correctness despite system failures?

a)

Data integrity

b)

Transaction management

c)

Concurrency control

d)

Data security

51.

What is the main purpose of the 'external level' in the three-schema architecture?

a)

To define the physical storage of the data

b)

To define user-specific views of the data

c)

To provide a logical view of the database

d)

To manage data consistency and integrity

52.

At the external level, which of the following is true about user views?

a)

They represent the physical storage details of the data

b)

They define how data is organized and stored on the disk

c)

They provide different perspectives of the database to different users

d)

They handle the enforcement of referential integrity

53.

The external level in the three-schema architecture is concerned with:

a)

Mapping user views to the conceptual schema

b)

The physical storage of data

c)

Normalization of the database

d)

Defining the relationships between entities

54.

Which of the following is NOT a characteristic of the external level in the three-schema architecture?

a)

It provides a user-specific view of the data

b)

It defines access control for different users

c)

It determines how data is stored on disk

d)

It allows users to interact with the data without knowing its physical details

55.

In the context of the external level, 'views' can be defined as:

a)

Physical representations of the data on the storage device

b)

The schema of the entire database

c)

A user-specific or application-specific perspective on the data

d)

Data models used for querying the database

56.

How does the external level in the three-schema architecture provide data abstraction?

a)

By hiding the physical storage details and offering a user-centric view

b)

By simplifying the process of data retrieval

c)

By organizing data in hierarchical structures

d)

By storing data in encrypted formats for security

57.

Which of the following is an example of what might be defined at the external level of the database?

a)

Data access permissions for different users

b)

The format in which data is stored on disk

c)

The logical structure of the database

d)

The application-specific report formats and data subsets

58.

The external level allows multiple user views to be defined. Which of the following is a consequence of this?

a)

Different users can see the same data in different ways, tailored to their needs

b)

The database schema is more complicated and difficult to manage

c)

All users must have access to the same data attributes and structure

d)

Data redundancy is reduced by sharing a common view of the database

59.

Which of the following is NOT true regarding the external level in the three-schema architecture?

a)

The external schema represents different user views of the database

b)

The external level is concerned with defining the structure of the data at a physical level

c)

Multiple external schemas can exist for a single conceptual schema

d)

The external level hides the complexities of the database from end users

60.

In the three-schema architecture, changes at the external level typically do NOT affect which part of the system?

a)

The conceptual level

b)

The internal level

c)

The physical storage

d)

The user applications

61.

What is Data Independence in a DBMS?

a)

Ability to change schema without affecting the data

b)

Ability to change data without affecting the schema

c)

Ability to modify the database without affecting the users

d)

Ability to access multiple databases simultaneously

62.

Which level of data independence ensures that the conceptual schema can change without affecting the external schema?

a)

Physical Data Independence

b)

Logical Data Independence

c)

Data Redundancy

d)

Data Integration

63.

Which of the following is a feature of Physical Data Independence?

a)

Changes at the logical level do not affect the external schema

b)

Changes at the physical level do not affect the conceptual schema

c)

Changes at the conceptual level do not affect the external schema

d)

Changes at the external level do not affect the conceptual schema

64.

What type of independence is achieved when changes in the physical storage of data do not affect the application programs?

a)

Logical Data Independence

b)

Physical Data Independence

c)

Database Independence

d)

Data Independence at the User Level

65.

Which of the following is the main advantage of Logical Data Independence?

a)

It allows users to access the database more efficiently

b)

It allows the schema to change without affecting the user views

c)

It ensures the physical storage is independent of user queries

d)

It reduces data redundancy in the database

66.

Which of the following levels of data independence is more difficult to achieve?

a)

Logical Data Independence

b)

Physical Data Independence

c)

External Data Independence

67.

Which of the following levels of data independence is more difficult to achieve?

a)

Logical Data Independence

b)

Physical Data Independence

c)

External Data Independence

d)

Both a and b are equally difficult

68.

Which of the following statements is true regarding Data Independence?

a)

Physical Data Independence is more difficult to achieve than Logical Data Independence

b)

Data Independence ensures that the user is always aware of the internal structure of the database

c)

Logical Data Independence is crucial for the flexibility of a database system

d)

Data Independence makes a database system completely independent of any change

69.

What does it mean when a database system has high Physical Data Independence?

a)

Changes in the physical storage structure do not require changes to application programs

b)

Changes in the logical schema do not require changes to the physical storage

c)

Changes in user queries do not affect the database

d)

Changes to physical storage requires schema redesign

70.

In which of the following scenarios would Data Independence be most beneficial?

a)

When you need to add new user views

b)

When you need to redesign the physical storage of data

c)

When you want to reduce redundancy between schemas

d)

When you want to perform backup and recovery of the data

71.

Which of the following is a challenge in achieving full Logical Data Independence in modern DBMS systems?

a)

Ensuring data security

b)

The complexity of mapping between external views and the conceptual schema

c)

Managing data redundancy

d)

Ensuring consistency of data across different databases

72.

Which of the following best describes a hierarchical data model?

a)

Data is organized in tables.

b)

Data is organized in a tree-like structure.

c)

Data is organized in a graph structure.

d)

Data is not organized.

73.

In a hierarchical database, a child node can have:

a)

Only one parent.

b)

Multiple parents.

c)

No parents.

d)

Unlimited parents.

74.

What is an example of a hierarchical database system?

a)

MySQL

b)

OracleDB

c)

IBM Information Management System (IMS)

d)

Neo4j

75.

What is the primary key used for in a hierarchical database?

a)

To encrypt data.

b)

To uniquely identify a record.

c)

To establish relationships.

d)

To group records.

76.

In a hierarchical database, what is a 'segment'?

a)

A set of records grouped together.

b)

A node containing data and its parent link.

c)

A child node without a parent.

d)

A separate table for metadata.

77.

Which traversal method is commonly used to navigate a hierarchical database?

a)

Depth-first traversal.

b)

Breadth-first traversal.

c)

Random traversal.

d)

Both a and b.

78.

What is one of the primary drawbacks of a hierarchical data model?

a)

Easy data retrieval.

b)

Lack of support for many-to-many relationships.

c)

Flexibility in relationships.

d)

Quick access to data.

79.

How is a hierarchical database typically queried?

a)

Using SQL-like syntax.

b)

By navigating the hierarchy explicitly.

c)

Using recursive algorithms only.

d)

Through key-value mappings.

80.

What happens when a parent node is deleted in a hierarchical model?

a)

All its child nodes are automatically deleted.

b)

Child nodes become orphan nodes.

c)

The database remains unaffected.

d)

The system prompts the user for action.

81.

What is a significant difference between a hierarchical model and a relational model?

a)

Hierarchical models support dynamic relationships, relational models do not.

b)

Hierarchical models store data in a tree structure, while relational models store data in tables.

c)

Relational models are more rigid compared to hierarchical models.

d)

Hierarchical models are easier to implement than relational models.

82.

Which of the following best defines an entity type in a database?

a)

A collection of similar entities

b)

A unique identifier for an entity

c)

A specific instance of an entity

d)

A relationship between two entities

83.

What type of attribute can hold multiple values for a single entity?

a)

Simple Attribute

b)

Composite Attribute

c)

Multi-valued Attribute

d)

Derived Attribute

84.

Which of the following is NOT a characteristic of a primary key?

a)

It must contain unique values.

b)

It can contain NULL values.

c)

It uniquely identifies each record in an entity set.

d)

It cannot be changed once assigned.

85.

In a relational database, a foreign key is used to:

a)

Identify a unique record in the same table.

b)

Establish a link between two tables.

c)

Store multi-valued attributes.

d)

Define the primary key of a table.

86.

Which of the following statements about weak entities is true?

a)

They can exist independently of other entities.

b)

They do not have a primary key.

c)

They are always represented with a solid rectangle in ER diagrams.

d)

They have a primary key that is a composite of their own attributes.

87.

A composite key is:

a)

A key that consists of a single attribute.

b)

A key that is generated automatically by the database.

c)

A key that consists of two or more attributes.

d)

A key that is derived from other attributes.

88.

Which of the following is an example of a derived attribute?

a)

Age (derived from Date of Birth)

b)

Employee ID

c)

Phone Number

d)

Address

89.

In an entity-relationship diagram (ERD), which shape is typically used to represent an entity?

a)

Oval

b)

Diamond

c)

Rectangle

d)

Triangle

90.

What is the purpose of candidate keys in a database?

a)

To provide a unique identifier for each record.

b)

To serve as a foreign key in another table.

c)

To allow for multiple primary keys in a table.

d)

To define relationships between entities.

91.

Which of the following attributes is NOT typically considered a simple attribute?

a)

First Name

b)

Last Name

c)

Full Name (concatenation of First Name and Last Name)

d)

Age

92.

Which of the following is NOT a component of an ER diagram?

a)

Entity sets

b)

Relationship sets

c)

Functional dependencies

d)

Attributes

93.

In an ER diagram, a diamond shape is used to represent:

a)

Attributes

b)

Entities

c)

Relationships

d)

Weak entities

94.

A weak entity is identified by:

a)

Its primary key

b)

A foreign key

c)

A combination of its attributes and a related entity's primary key

d)

Its attributes only

95.

Which of the following is true about a 'total participation' constraint?

a)

Every entity in the entity set must participate in at least one relationship.

b)

Some entities in the entity set may not participate in any relationship.

c)

It is represented by a dashed line.

d)

It applies only to weak entities.

96.

What does a double rectangle represent in an ER diagram?

a)

Weak entity

b)

Strong entity

c)

Composite attribute

d)

Derived attribute

97.

In an ER diagram, an attribute that can have multiple values is called:

a)

Composite attribute

b)

Derived attribute

c)

Multi-valued attribute

d)

Key attribute

98.

If an entity set has a primary key composed of two attributes, it is known as a:

a)

Simple entity

b)

Composite key

c)

Derived entity

d)

Weak key

99.

Which of the following relationships represents a ternary relationship?

a)

Between two entities

b)

Between three entities

c)

Between one entity and its attributes

d)

Between a weak entity and its identifying entity

100.

Which of the following constraints specifies the number of relationship instances an entity can participate in?

a)

Participation constraint

b)

Cardinality constraint

c)

Key constraint

d)

Domain constraint

101.

When converting an ER diagram to a relational schema, how is a 'many-to-many' relationship handled?

a)

By creating a single table for the relationship

b)

By adding foreign keys to one of the related entity tables

c)

By creating a separate table with foreign keys referencing the primary keys of related entities

d)

By ignoring the relationship