wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Midterm Examination on Database Fundamentals

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

Which type of database system is often used in mainframe applications?

a)

Hierarchical databases

b)

Network databases

c)

Relational databases

d)

Object-oriented databases

2.

What type of database stores data in a structured table format with rows and columns?

a)

Document database

b)

Relational database

c)

Graph database

d)

NoSQL database

3.

Which type of database system is best suited for storing unstructured data?

a)

Relational database

b)

Hierarchical database

c)

NoSQL database

d)

Network database

4.

What is an advantage of relational databases?

a)

Simple structure for complex relationships

b)

Efficient data retrieval for structured data

c)

High performance for real-time analytics

d)

Does not require predefined schemas

5.

What does a hierarchical database use to organize data?

a)

Tables and relationships

b)

Nodes and edges

c)

Parent-child tree structure

d)

Documents and collections

6.

A graph database is best suited for which type of data?

a)

Social networks and relationships

b)

Financial transactions

c)

Inventory management

d)

Customer orders

7.

Which database model provides the best flexibility for handling complex relationships?

a)

Relational database

b)

Graph database

c)

Hierarchical database

d)

Document database

8.

How does a document database store information?

a)

In tables with rows and columns

b)

As key-value pairs

c)

As structured documents in JSON or XML

d)

As interconnected nodes and edges

9.

What is a key characteristic of NoSQL databases?

a)

Schema-less design

b)

Strict data consistency

c)

Requires normalization

d)

Uses only SQL for queries

10.

Why might an organization choose a network database?

a)

To manage hierarchical relationships

b)

To model complex, many-to-many relationships

c)

To simplify table-based queries

d)

To improve transaction speed

11.

Which database type is commonly used for web applications and content management systems?

a)

Document databases

b)

Hierarchical databases

c)

Network databases

d)

Object-oriented databases

12.

What is a major disadvantage of hierarchical databases?

a)

Inefficient data retrieval

b)

Lack of support for complex relationships

c)

No indexing support

d)

High storage costs

13.

What advantage do object-oriented databases offer?

a)

Strong consistency and data normalization

b)

Direct support for complex data structures and objects

c)

Better query optimization

d)

Fixed schema structures

14.

Which database type is best for handling massive amounts of time-series data?

a)

NoSQL databases

b)

Hierarchical databases

c)

Relational databases

d)

Graph databases

15.

What is the main use case for a key-value database?

a)

Real-time data processing

b)

Fast lookups for simple queries

c)

Complex relational queries

d)

Storing highly structured data

16.

Which database model requires strict adherence to ACID properties?

a)

Document databases

b)

NoSQL databases

c)

Relational databases

d)

Graph databases

17.

A company needs to store a large dataset that includes hierarchical and complex relationships. Which database type would be most efficient?

a)

Document database

b)

Graph database

c)

Network database

d)

Relational database

18.

How can a hybrid approach improve database performance?

a)

By combining SQL and NoSQL features

b)

By eliminating the need for indexing

c)

By storing data in a single centralized system

d)

By using only relational principles

19.

What challenges arise when transitioning from a relational to a NoSQL database?

a)

Loss of data integrity

b)

Schema migration and query adaptation

c)

Increased indexing speed

d)

Easier transaction management

20.

When should a document database be used over a relational database?

a)

When data relationships are complex

b)

When data is highly structured

c)

When flexible schemas and fast reads are needed

d)

When strict referential integrity is required

21.

What is the main purpose of an Entity-Relationship (ER) model?

a)

To perform database transactions

b)

To visualize and design a database schema

c)

To execute SQL queries

d)

To store raw data in files

22.

What is an entity in an ER model?

a)

A type of database query

b)

A real-world object with attributes

c)

A table in a relational database

d)

A foreign key in a schema

23.

What does an ER diagram primarily depict?

a)

SQL query execution plan

b)

The structure of a relational table

c)

Entities, attributes, and relationships

d)

Indexing strategy in databases

24.

What is the role of a primary key in a database?

a)

Ensures every record has a unique identifier

b)

Links multiple databases together

c)

Stores unstructured data efficiently

d)

Helps execute complex queries faster

25.

What is normalization in database design?

a)

A technique to remove redundancy and improve consistency

b)

A process to speed up SQL queries

c)

A method to combine multiple databases

d)

A way to enforce indexing

26.

In an ER model, what do attributes represent?

a)

The columns in a relational database

b)

The relationships between entities

c)

The constraints in a schema

d)

The operations performed in a database

27.

Why is the process of normalization important in database design?

a)

It removes unnecessary attributes

b)

It reduces data redundancy and increases integrity

c)

It simplifies indexing methods

d)

It improves query execution time

28.

How does a foreign key maintain data integrity?

a)

By enforcing referential constraints between tables

b)

By storing duplicate values across tables

c)

By preventing any updates to data

d)

By eliminating the need for indexing

29.

Which of the following is a key characteristic of the third normal form (3NF)?

a)

Eliminates all multi-valued dependencies

b)

Ensures that every non-key attribute is fully dependent on the primary key

c)

Allows partial dependencies for efficiency

d)

Combines multiple tables for faster access

30.

In an ER diagram, a relationship is typically represented by:

a)

A rectangle

b)

A diamond

c)

A circle

d)

A square

31.

What is a composite key?

a)

A single unique identifier for a record

b)

A combination of two or more attributes that uniquely identify a record

c)

A foreign key linking two tables

d)

A key used for indexing performance

32.

Why might denormalization be used in a database?

a)

To optimize query performance by reducing joins

b)

To eliminate indexing overhead

c)

To enforce data consistency

d)

To improve referential integrity

33.

What does a weak entity require in order to be uniquely identified?

a)

A composite key

b)

A foreign key and an identifying relationship

c)

A primary key

d)

A surrogate key

34.

How does an associative entity function in a database schema?

a)

It connects two or more entities in a many-to-many relationship

b)

It stores metadata about database tables

c)

It replaces foreign keys in relationships

d)

It defines constraints between two databases

35.

What is the main purpose of cardinality in an ER diagram?

a)

To specify the number of entity occurrences in a relationship

b)

To define primary keys

c)

To determine the indexing strategy

d)

To optimize SQL queries

36.

What is an artificial key in a database?

a)

A system-generated unique identifier

b)

A manually created primary key

c)

A composite foreign key

d)

A redundant attribute

37.

A company wants to ensure minimal data redundancy while maintaining query efficiency. Which normalization level should be prioritized?

a)

First normal form (1NF)

b)

Third normal form (3NF)

c)

Boyce-Codd normal form (BCNF)

d)

Denormalization

38.

How can indexing impact database normalization?

a)

It enhances query performance without altering normalization levels

b)

It allows violations of normalization rules

c)

It reduces database schema complexity

d)

It removes the need for foreign keys

39.

When designing a database for a complex application with many interrelated entities, what approach would be most effective?

a)

Use an object-relational model

b)

Implement extensive denormalization

c)

Maintain a fully normalized schema with extensive indexing

d)

Use only primary keys for relationships

40.

How can a database designer ensure data consistency in an ER model?

a)

By defining appropriate constraints such as primary keys and foreign keys

b)

By avoiding normalization

c)

By using only one table for all data

d)

By allowing redundant data for performance reasons