Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DBMS Quiz-1 (BCS3C)

Total questions: 10

Worksheet time: 15mins

Name
Class
Date
1.

Which of the following FD is redundant. For R(A,B,C), the set of FDs F(A-> AB, B-> C, A->B, C->B, B->A).

a)

A->AB

b)

B->C

c)

B->A

d)

None of the above

2.

What are the prime attributes for the R = {A,B,C,D,E} with set of Fds Z={D -> E , CE-> A}

a)

BCD

b)

AE

c)

CDE

d)

CE

3.

Given the following relation instance.

Which of the following functional dependencies are satisfied by the instance?

a)

XY -> Z and Z -> Y 

b)

YZ -> X and Y -> Z

c)

YZ -> X and X -> Z

d)

XZ -> Y and Y -> X

4.

Consider a relation scheme R = (A, B, C, D, E, H) on which the following functional dependencies hold: {A–>B, BC–>D, E–>C, D–>A}. Identify the candidate keys of R.

(a)  

5.

In a schema with attributes A, B, C, D and E, following set of functional dependencies are given:

 A->B

 A->C

 CD->E

 B->D

 E->A

Identify the functional dependencies which is NOT implied by the above set.

a)

CD->AC

b)

BD->CD 

c)

BC->CD   

d)

AC->BC

6.

Consider the given table Loan_Records. Select the output of the following SQL query.

a)

3

b)

9

c)

5

d)

6

7.

The relation book (title, price) contains the titles and prices of different books. Assuming that no two books have the same price, what does the following SQL query list?

a)

Titles of the four most expensive books

b)

Title of the fifth most inexpensive book

c)

Title of the fifth most expensive book

d)

Titles of the five most expensive books

8.

How can you change "Dibyarup" into "Sayan" in the "LastName" column in the Users table?

a)

UPDATE User SET LastName = 'Dibyarup' INTO LastName = 'Sayan'

b)

MODIFY Users SET LastName = 'Sayan' WHERE LastName = 'Dibyarup'

c)

MODIFY Users SET LastName = 'Dibyarup' INTO LastName = 'Sayan'

d)

UPDATE Users SET LastName = 'Sayan' WHERE LastName = 'Dibyarup'

9.

Suppose the following functional dependencies hold on a relation U with attributes P, Q,R, S, and T:

P → QR

RS → T

Which of the following functional dependencies can be inferred from the above functional dependencies? 

a)

P → R

b)

PS → T

c)

R → T

d)

PS → Q

10.

Consider the relations R(A, B) and S(B, C) and the following four relational algebra queries over R and S:

Where R.B refers to the column B in table R. One can determine that:

a)

i, ii and iii are the same query

b)

i, iii and iv are the same query

c)

ii, iii and iv are the same query

d)

i, ii and iv are the same query