Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Design and SQL Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does an Entity-Relationship Diagram (ER Diagram) describe?

a)

The SQL queries for a database

b)

The user permissions in a database

c)

The data types in a database

d)

The structure of a database

2.

Which of the following is a characteristic of a Strong Entity?

a)

It has a primary key

b)

It depends on another entity

c)

It has no attributes

d)

It is represented by a diamond

3.

What is a Multivalued Attribute in an ER Diagram?

a)

An attribute with a single value

b)

An attribute with multiple values

c)

An attribute that is derived from another

d)

An attribute that cannot be null

4.

Which SQL statement is used to create a view?

a)

CREATE TABLE

b)

CREATE TRIGGER

c)

CREATE INDEX

d)

CREATE VIEW

5.

What does the COUNT function in SQL do?

a)

Sums the values of a column

b)

Counts the number of rows

c)

Calculates the average value

d)

Finds the maximum value

6.

What is a Referential Integrity Constraint?

a)

A rule that restricts null values in a column

b)

A rule that checks the uniqueness of a column

c)

A rule that ensures valid relationships between tables

d)

A rule that defines the data type of a column

7.

What is the purpose of normalization in databases?

a)

To simplify SQL queries

b)

To create more tables

c)

To increase data redundancy

d)

To eliminate redundant data

8.

Which of the following is NOT a type of functional dependency?

a)

Trivial functional dependency

b)

Non-Trivial functional dependency

c)

Multivalued functional dependency

d)

Composite functional dependency

9.

What is an Insertion Anomaly?

a)

Redundant data in the database

b)

Inconsistency when updating data

c)

Loss of information when deleting data

d)

Inability to add data due to absence of other data

10.

What does the term 'Aggregation' refer to in an Extended ER Model?

a)

Combining multiple entities into one

b)

Creating a higher-level entity from relationships

c)

Separating entities into sub-entities

d)

Defining attributes for an entity