Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SW2- RELATIONS IN DBMS

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

A two-dimensional table of data sometimes is called a:

a)

group

b)

table

c)

er diagram

d)

relation

2.

________ is a component of the relational data model included to specify business rules to maintain the integrity of data when they are manipulated.

a)

Business rule constraint

b)

Data Integrity

c)

Business Integrity

d)

Data Structure

3.

An attribute (or attributes) that uniquely identifies each row in a relation is called a

a)

column

b)

forum field

c)

primary key

d)

duplicate key

4.

An attribute in a relation of a database that serves as the primary key of another relation in the same database is called a:

a)

link attribute

b)

primary key

c)

composite key

d)

foreign key

5.

A primary key that consists of more than one attribute is called a:

a)

foreign key

b)

composite key

c)

multivalued key

d)

primary key

6.

Which of the following are properties of relations?

a)

Each attribute has a unique name.

b)

No two rows in a relation are identical.

c)

There are no multivalued attributes in a relation.

d)

all of the given choices is right

7.

In the figure below, the primary key for "Order Line" is which type of key?

a)

primary key

b)

composite key

c)

foreign key

d)

multivalued key

8.

The entity integrity rule states that:

a)

 no primary key attribute can be null.

b)

referential integrity must be maintained across all entities.

c)

each entity must have a primary key.

d)

a primary key must have only one attribute

9.

A domain definition consists of the following components EXCEPT:

a)

domain name

b)

data type

c)

integrity constraint

d)

size

10.

The ________ states that no primary key attribute may be null.

a)

referential integrity constraint

b)

entity integrity rule

c)

partial specialization rule

d)

) range domain rule

11.

A rule that states that each foreign key value must match a primary key value in the other relation is called the:

a)

referential integrity constraint

b)

entity integrity rule

c)

partial specialization rule

d)

range domain rule

12.

When a regular entity type contains a multivalued attribute, one must:

a)

create a single relation with multiple lines for each instance of the multivalued attribute.

b)

create two new relations, one containing the multivalued attribute.

c)

create two new relations, both containing the multivalued attribute.

d)

none of the choices here are correct

13.

In the figure below, what type of relationship do the relations depict?

a)

Strong entity/weak entity

b)

Multivalued

c)

Composite foreign key

d)

One-to-many

14.

In the figure below, what type of relationship do the relations depict?

a)

Strong entity/weak entity

b)

One-to-many

c)

Ternary

d)

Many-to-many

15.

In the figure below, what is depicted?

a)

A one-to-one relationship

b)

A unary relationship

c)

A one-to-many relationship

d)

An associative entity

16.

Referring to the figure below, which of the following is NOT true?

a)

A component is part of an item.

b)

A component is always used in only one item.

c)

A component can be part of an item.

d)

A component may be used in many items.

17.

The figure below is an example of mapping which type of relationship?

a)

FIRST

b)

SECOND

c)

UNARY

d)

TERNARY

18.

What is the mapping binary relationships being discussed in the statement below?

Primary key on the one side becomes a foreign key on the many side

a)

One-to-One

b)

Many-to-Many

c)

One-to-Many

d)

One-to-Optional Many

19.

What is the mapping binary relationships being discussed in the statement below?

Create a new relation with the primary keys of the two entities as its primary key

a)

One-to-One

b)

Many-to-Many

c)

One-to-Many

d)

One-to-Optional Many

20.

What is the mapping binary relationships being discussed in the statement below?

Primary key on mandatory side becomes a foreign key on optional side

a)

One-to-One

b)

Many-to-Many

c)

One-to-Many

d)

One-to-Optional Many