Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RDBMS Fundamentals and Relational Algebra

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which statement best defines a Relational Database Management System (RDBMS)?

a)

A file system for unstructured documents

b)

Software that maintains a relational database

c)

A programming language for graphics design

d)

Hardware used to store magnetic tapes

2.

Which ACID property ensures all parts of a transaction succeed or none do?

a)

Consistency guarantees faster performance

b)

Durability allows reversible persistence

c)

Atomicity ensures all-or-nothing execution

d)

Isolation merges transactions together

3.

What does Data Integrity primarily aim to ensure in databases?

a)

Queries run at maximum speed

b)

Data is accurate and consistent

c)

Tables never require indexing

d)

Backups are created nightly

4.

In table vocabulary, what is an attribute?

a)

A column header such as Student_ID

b)

A single record stored as a row

c)

The count of rows in a table

d)

The allowed range of values

5.

Which term refers to the set of allowable values for a column?

a)

Cardinality sets numeric precision

b)

Domain defines the allowable values

c)

Tuple lists the row constraints

d)

Degree specifies row uniqueness

6.

Cardinality of a relation refers to which quantity?

a)

Number of keys defined per table

b)

Number of distinct domains used

c)

Number of attributes per tuple

d)

Number of tuples in the relation

7.

Which operation in relational algebra filters rows based on a condition like Age > 20?

a)

Select filters rows by a predicate

b)

Union joins unrelated structures

c)

Project removes duplicate schemas

d)

Intersect creates computed columns

8.

Project in relational algebra performs which action?

a)

Returns only common rows across tables

b)

Combines rows from different schemas

c)

Filters records meeting a condition

d)

Chooses specific columns from a table

9.

Union can combine two tables only when what requirement is met?

a)

Both tables share the same structure

b)

Both tables use the same primary key

c)

Both tables contain no null values

d)

Both tables have equal cardinality

10.

Which operation returns only rows present in both input tables?

a)

Intersect returns common rows only

b)

Join returns every possible pairing

c)

Select returns sorted intersections

d)

Project returns selected attributes

11.

Join combines two tables based on what criterion?

a)

Equal degrees for the two relations

b)

Identical tuples across both tables

c)

A related column between the tables

d)

Matching domain ranges for columns

12.

A relation with 5 columns and 200 rows has which degree and cardinality?

a)

Degree 1 and cardinality 205

b)

Degree 200 and cardinality 5

c)

Degree 205 and cardinality 1

d)

Degree 5 and cardinality 200

13.

Which statement best describes Entity Relationship (ER) modeling?

a)

A diagram of tables and indexes only

b)

A low-level storage layout for disk pages

c)

A high-level view of entities and connections

d)

A process for tuning query execution plans

14.

What is the primary focus of a semantic model?

a)

Physical storage performance and caching

b)

Syntax of SQL and procedural extensions

c)

Meaning of data and real-world relationships

d)

Normalization rules for eliminating redundancy

15.

Which description fits a generic model?

a)

Domain-specific logic for a single industry

b)

Generalized representation across many domains

c)

Executable code for database drivers

d)

Graph algorithms for routing and pathfinding

16.

Which statement correctly defines a Super Key?

a)

Only the designer-selected unique identifier

b)

Any set of columns that uniquely identifies a row

c)

Any single column with numeric values

d)

A column that references another table’s key

17.

Which option captures the essence of a Candidate Key?

a)

A minimal Super Key without unnecessary columns

b)

A foreign reference used to create table links

c)

A non-unique attribute used for sorting records

d)

A composite index created for query speed

18.

What distinguishes a Primary Key from other Candidate Keys?

a)

It is created automatically by the database engine

b)

It always contains multiple columns and can be null

c)

It only exists in many-to-many relationship tables

d)

It is chosen as the unique identifier and cannot be null

19.

Which statement describes a Foreign Key?

a)

A column pointing to another table’s Primary Key

b)

A field that stores encrypted credentials

c)

A key used solely for indexing text columns

d)

A table’s mandatory unique identifier

20.

A designer proposes a key {email, username, user_id}. It uniquely identifies rows, but user_id alone is also unique. Which classification is most accurate for the proposed key?

a)

Foreign Key because it references user_id

b)

Minimal Super Key and a Candidate Key

c)

Primary Key because it contains user_id

d)

Non-minimal Super Key but not a Candidate Key

21.

In an ER model, which pairing best represents entities and relationships?

a)

Entities as columns; relationships as constraints

b)

Entities as things; relationships as connections

c)

Entities as actions; relationships as procedures

d)

Entities as files; relationships as directories

22.

Which statement best defines entity integrity in a relational table?

a)

Every foreign key must reference a primary key

b)

All attributes in a row must be unique

c)

No component of a primary key can be null

d)

Each table must have at least one foreign key

23.

A grade record contains Student_ID as a foreign key. Which action violates referential integrity?

a)

Inserting a grade for an existing Student_ID

b)

Leaving Student_ID null for a missing grade

c)

Updating Student_ID to a nonexisting value

d)

Deleting a grade for a withdrawn student

24.

What is the primary goal of integrity constraints in databases?

a)

Eliminating the need for indexes

b)

Reducing storage across all tables

c)

Preventing invalid or garbage data

d)

Speeding up complex analytical queries

25.

Which scenario illustrates a one-to-one (1:1) relationship?

a)

One person has one passport

b)

One customer places many orders

c)

Many students enroll in many courses

d)

One course has many students

26.

Which relationship type is most commonly seen between Customer and Order entities?

a)

One-to-one with optional participation

b)

One-to-many from Order to Customer

c)

One-to-many from Customer to Order

d)

Many-to-many using a junction table

27.

Why do many-to-many (M:N) relationships typically require a junction table in an RDBMS?

a)

To store derived attributes for faster reports

b)

To break M:N into two 1:N relationships

c)

To enforce unique values across all columns

d)

To allow nullable primary keys when needed

28.

You are designing a Student–Course schema. Which structure correctly enforces enrollments?

a)

Course has a foreign key to Student only

b)

Student has a foreign key to Course only

c)

An Enrollment table links Student and Course

d)

A shared primary key across Student and Course

29.

A table uses a composite primary key (A, B). Which insert violates entity integrity?

a)

Inserting a row with A and B both unique

b)

Inserting a row with A and B both not null

c)

Inserting a row with A not null and B null

d)

Inserting a row with a new unique A, B pair

30.

A database must prevent orphan rows in a child table. Which mechanism directly addresses this?

a)

Unique constraints on candidate keys

b)

Indexes on frequently joined columns

c)

Check constraints on numeric ranges

d)

Referential integrity on foreign keys