wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DBMS unit2 ER model and Relational algebra

Total questions: 25

Worksheet time: 17mins

Name
Class
Date
1.

Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.

a)

Relational

b)

Structural

c)

Procedural

d)

Fundamental

2.

Which of the following is a fundamental operation in relational algebra?

a)

Set intersection

b)

Natural join

c)

Assignment

d)

None of the mentioned

3.

Which of the following is used to denote the selection operation in relational algebra?

a)

Pi

b)

Sigma

c)

Lambda

d)

Omega

4.

For select operation the ________ appear in the subscript and the ___________ argument appears in the paranthesis after the sigma.

a)

Predicates, relation

b)

Relation, Predicates

c)

Operation, Predicates

d)

Relation, Operation

5.

The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another.

a)

Union

b)

Set-difference

c)

Difference

d)

Intersection

6.

Which is a join condition contains an equality operator:

a)

Equijoins

b)

Cartesian

c)

Natural

d)

Left

7.

Based on the figure above, identify the number of tuples that will be returned by the following relational algebra query :  σ \sigma\  Type = 'Saving' (Account)

a)

2

b)

3

c)

6

d)

0

8.

Identify the CORRECT output for table (Student Difference Lecturer) or (Student - Lecturer) in table above

a)
b)
c)
d)
9.

Base on the table given, identify output that will be produced when, σ Salary > 3000 ˅ City = ‘Batu Pahat’ (WORKER).

a)
b)
c)
d)
10.

Which of the following are relational algebra operators?

a)
b)
c)
d)
e)
11.

An entity is a

a)

object of relation

b)

present working model

c)

thing in real world

d)

model of relation

12.

A relationship is

a)

an item in an application

b)

a meaningful dependency between entities

c)

a collection of related entities

d)

a related data

13.

Property that describes the characteristics of entity is

a)

entities

b)

relationship

c)

attributes

d)

identifiers

14.

By relation cardinality we mean

a)

number of items in a relationship

b)

number of relationships in which an entity can appear

c)

number of items in an entity

d)

number of entity sets which may be related to a given entity

15.

Rows of a relation is called

a)

a relation row

b)

an entity

c)

a data structure

d)

tuples

16.

The columns of a relation

a)

must be in specified order

b)

may be in any order

c)

with key field in first column

d)

with largest width column last

17.

Attributes are

a)

properties of relationship

b)

attributed to entities

c)

properties of members of an entity set

18.

In ER diagram relationships is represented by

a)

circles

b)

rectangles

c)

ellipse

d)

diamond shaped box

19.

This is similar to

a)
b)
c)
d)
20.

what type of generalization and specialization best describes this figure

a)

disjoint, partial

b)

disjoint, total

c)

overlapping, total

d)

overlapping, partial

21.

Which is the correct and the best conversion of the ER diagram below to the relational model

a)

Employee(eid , name)


Department(dname , location,budget ,date )

b)

Employee(eid , name,date)


Department(dname , location,budget)

c)

Employee(eid , name)


Department(dname , location,budget ,date,eid)

d)

Employee(eid , name,date,dname)


Department(dname , location,budget)

22.

In figure below what is the best way to model the Supplier and Project entity types and Supplies relationship type to relational schema

a)

Supplier(Sname)


Project(Proj_name)

b)

Supplier(Sname, Proj_name)


Project(Proj_name)

c)

Supplier(Sname)


Project(Proj_name, Sname)

d)

Supplier(Sname)


Project(Proj_name)


Supplies(Sname, Proj_name)

23.

Which type of entity cannot exist in the database unless another type of entity also exists in the database, but does not require that the identifier of that other entity be included as part of its own identifier?

a)

Weak entity

b)

Strong entity

c)

ID-dependent entity

d)

ID- independent entity

24.
Which of these is  an example of an Attribute for Student
a)
Student_ID
b)
Doors
c)
Model
25.
How is a Primary key attribute shown ?
a)
Underlined
b)
Ellipses
c)
Double lined Ellipses
d)
a Line