wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Database Management System Quiz

Total questions: 47

Worksheet time: 16mins

Name
Class
Date
1.

List the primary goal of a Database Management System (DBMS).

a)

To store and retrieve data efficiently

b)

To develop web pages

c)

To connect only to hardware devices

d)

To encrypt network data

2.

Identify the component that ensures data consistency during a system crash.

a)

Transaction management

b)

Web server

c)

Cloud client

d)

File scanner

3.

Explain why data abstraction is important in DBMS.

a)

It hides storage details from users

b)

It increases redundancy

c)

It slows down performance

d)

It deletes metadata

4.

Select the view that provides only a partial perspective of the database.

a)

View level

b)

Logical level

c)

Physical level

d)

Schema level

5.

Name the language used to retrieve and manipulate data in SQL.

a)

Data Manipulation Language (DML)

b)

Data Creation Language (DCL)

c)

Domain Modeling Language

d)

Dynamic Markup Language

6.

State the type of DML that specifies what data is needed, not how to get it.

a)

Declarative

b)

Procedural

c)

Dynamic

d)

Imperative

7.

Classify the relational model under the following category.

a)

Record-based data model

b)

Object-oriented model

c)

Semistructured model

d)

Graph-based model

8.

Compare relational and hierarchical models.

a)

Relational uses tables; hierarchical uses tree structures

b)

Both use graph representations

c)

Relational uses recursion; hierarchical uses views

d)

Hierarchical supports SQL

9.

Express the meaning of "schema" in a database context.

a)

Structural design of the database

b)

A runtime instance of the data

c)

A record of logs

d)

A network of disks

10.

Discuss the importance of primary keys in a relational model.

a)

They uniquely identify tuples

b)

They provide redundancy

c)

They replace tables

d)

They model relationships

11.

Report the use of foreign keys in relational databases.

a)

They maintain referential integrity

b)

They delete primary keys

c)

They define access roles

d)

They alter schemas

12.

List a major disadvantage of traditional file-based systems.

a)

Data redundancy and inconsistency

b)

High modularity

c)

Easy concurrency

d)

High normalization

13.

Identify the abstraction level that describes how data is stored.

a)

Physical level

b)

Logical level

c)

View level

d)

External level

14.

Explain the purpose of ER modeling.

a)

To capture real-world entities and relationships

b)

To optimize SQL joins

c)

To define RAID levels

d)

To manage user roles

15.

Select the notation commonly used in ER diagrams.

a)

Rectangles for entities

b)

Diamonds for attributes

c)

Circles for schemas

d)

Arrows for relations

16.

Name the type of attribute that can be broken into sub-parts.

a)

Composite attribute

b)

Derived attribute

c)

Simple attribute

d)

Null attribute

17.

State what a relationship set represents.

a)

A collection of relationships of the same type

b)

A specific tuple

c)

A group of users

d)

A primary key

18.

Classify relationships based on their cardinality.

a)

One-to-one, one-to-many, many-to-many

b)

Primary, secondary, tertiary

c)

Internal, external, derived

d)

Strong, weak, derived

19.

Compare strong and weak entities.

a)

Weak entities depend on strong ones for identification

b)

Weak entities have more attributes

c)

Strong entities lack keys

d)

Weak entities always use triggers

20.

Discuss why generalization is used in ER modeling.

a)

To group similar entities into a higher-level entity

b)

To remove redundant foreign keys

c)

To speed up indexing

d)

To normalize data

21.

List the main components of relational algebra.

a)

Selection, projection, union, set difference

b)

Assignment, loop, join, thread

c)

Commit, rollback, pause, fetch

d)

Input, output, allocate, release

22.

Identify the symbol for selection in relational algebra.

a)

σ (sigma)

b)

π (pi)

c)

∪ (union)

d)

ρ (rho)

23.

Explain the use of π (pi) in relational algebra.

a)

It projects specific attributes from a relation

b)

It joins relations

c)

It renames attributes

d)

It selects tuples

24.

Select the correct representation of a Cartesian product.

a)

R × S

b)

R ∪ S

c)

R − S

d)

R ⨝ S

25.

Name the operation that returns common tuples between relations.

a)

Intersection

b)

Set difference

c)

Rename

d)

Aggregation

26.

State what a natural join does.

a)

Combines relations based on common attribute names

b)

Merges unrelated data

c)

Projects all attributes

d)

Returns unrelated keys

27.

Classify the join operations in relational algebra.

a)

Theta join, equijoin, natural join

b)

Super join, mega join, weak join

c)

Horizontal join, vertical join, diagonal join

d)

External join, internal join, flat join

28.

Compare tuple relational calculus and domain relational calculus.

a)

Tuple uses variables for tuples; domain uses variables for values

b)

Tuple is faster

c)

Domain is only used in C++

d)

Tuple doesn't support SQL

29.

Express a formula in tuple relational calculus.

a)

{t | P(t)}

b)

SELECT * FROM t

c)

{t.name | FROM t}

d)

t := p

30.

Discuss the safety of expressions in relational calculus.

a)

Unsafe expressions may yield infinite results

b)

Safe expressions are inefficient

c)

Unsafe expressions return NULL

d)

Safe expressions violate keys

31.

Report the function of domain constraints.

a)

They define valid attribute values

b)

They restrict table joins

c)

They manage locks

d)

They compress data

32.

List the uses of null values in relational databases.

a)

Represent missing or unknown data

b)

Store 0

c)

Define relationships

d)

Create primary keys

33.

Identify the language used to define database schemas.

a)

Data Definition Language (DDL)

b)

HTML

c)

JSON

d)

AJAX

34.

State a key difference between SQL and relational algebra.

a)

SQL is declarative; relational algebra is procedural

b)

SQL is only graphical

c)

Algebra is specific to Oracle

d)

SQL lacks joins

35.

Classify query languages into the following types.

a)

Procedural and nonprocedural

b)

Graphical and textual

c)

Tabular and relational

d)

Inferred and enforced

36.

Compare outer joins and inner joins.

a)

Outer joins include unmatched rows

b)

Inner joins include unmatched rows

c)

Outer joins exclude foreign keys

d)

Inner joins perform unions

37.

Discuss the role of aliases in SQL.

a)

They rename tables or columns temporarily

b)

They change database names

c)

They restrict joins

d)

They define indexes

38.

List reasons to use foreign keys.

a)

Maintain referential integrity

b)

Duplicate keys

c)

Manage transactions

d)

Normalize indexes

39.

Identify the SQL clause used to filter tuples.

a)

WHERE

b)

HAVING

c)

SELECT

d)

ORDER

40.

Explain the difference between COUNT(*) and COUNT(attribute).

a)

COUNT(*) counts all rows; COUNT(attr) ignores NULLs

b)

Both are identical

c)

COUNT(attr) counts duplicates

d)

COUNT(*) ignores NULLs

41.

Select the SQL keyword used for grouping.

a)

GROUP BY

b)

ORDER BY

c)

SELECT

d)

UNION

42.

Name the SQL clause used for filtering groups.

a)

HAVING

b)

WHERE

c)

LIMIT

d)

SORT

43.

State a reason for using views in SQL.

a)

Simplify complex queries

b)

Increase physical size

c)

Improve latency

d)

Replace tables

44.

Classify the three types of relational joins.

a)

Inner, outer, natural

b)

Vertical, horizontal, conditional

c)

Literal, symbolic, reference

d)

Flat, hierarchical, modular

45.

Compare delete and truncate in SQL.

a)

DELETE is slower and logs each row; TRUNCATE is faster

b)

DELETE removes schema

c)

TRUNCATE logs each row

d)

DELETE resets auto-increment

46.

Express the use of aggregate functions.

a)

Perform calculations on groups

b)

Validate records

c)

Trigger procedures

d)

Normalize columns

47.

Discuss why a relation is considered a set.

a)

It doesn't allow duplicate tuples

b)

It uses loop iterations

c)

It merges tuples on joins

d)

It replaces attributes