wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CA3 DBMS

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

Views can be created for?

a)

One table

b)

Many table

c)

Another view

d)

All of the above

2.

A view is actually a?

a)

composition of a table the above

b)

decomposition of a table

c)

associated to a table

d)

None of these

3.

What is syntax for delete the view?

a)

DELETE VIEW view_name;

b)

DROP VIEW view_name/table_name;

c)

DROP VIEW view_name;

d)

DROP VIEW table_name;

4.

You can perform ______ operation(s) on SQL Views?

a)

Filter

b)

Sort

c)

Join

d)

All of the above

5.

Which of the following specifies when the trigger will be executed?

a)

BEFORE

b)

AFTER

c)

All of the above

6.

Which of the operation are not specifies in triggers?

a)

Alter

b)

UPDATE

c)

INSERT 

d)

DELETE

7.

To combine multiple retrievals, we write several SELECT statements and put the keyword between them. What is the keyword?

a)

COMBINE

b)

CONCAT

c)

JOIN

d)

UNION

8.

Which keyword used with UNION does not retain duplicate rows?

a)

A. ALL

b)

B. NARROW

c)

C. STRICT

d)

D. DISTINCT

9.

Which of the following is not Constraint in SQL?

a)

Primary Key

b)

Not Null

c)

Check

d)

Union

10.

A functional dependency is a relationship between or among

a)

A. Entities

b)

B. Rows

c)

C. Attributes

d)

D. Tables

11.

The database design prevents some data from being stored due to _______.

a)

A. Deletion anomalies

b)

B. Insertion anomalies

c)

C. Update anomalies

d)

D. Selection anomalie

12.

If one attribute is determinant of second, which in turn is determinant of third, then the relation cannot be:

a)

A. Well-structured

b)

B. 1NF

c)

C. 2NF

d)

D. 3NF

13.

Consider the relation Sale(Date, Customer, Product, Vendor, VendorCity, SalesRep){Date, Customer, Product} is the composite candidate key and the following functional dependencies are also given:Vendor -> VendorCity, Product -> VendorWhat is the highest normal form of the sale relation?

a)

1NF

b)

2NF

c)

3NF

d)

BCNF

14.

Consider a relation R(A, B, C, D) with the following functional dependencies: A -> (B, C, D), (A, D) -> (B, C) and (C, D) -> (A, B). Identify the candidate key(s).

a)

{A}

b)

{A}, {C, D}

c)

{A}, {C, D}, {A, D}

d)

{C, D}

15.

A relation is in 2NF if:

a)

All the values of non-key attributes are dependent fully on the candidate key.

b)

Any non-key attribute that are dependent on only part of the candidate key should be moved to another relation where the partial key is the actual full key.

c)

It must be already in the 1NF.

d)

All of the above.

16.

4NF is designed to cope with :

a)

Transitive dependency

b)

Join dependency

c)

Multi valued dependency

d)

None of these

17.

5NF is designed to cope with :

a)

Transitive dependency None of these

b)

Join dependency

c)

Multi valued dependency

d)

None of these

18.

Consider the schema R(S,T,U,V) and the dependencies S→T, T→U, U→V, V→S. Let R= {R1,R2} such that R1∩R2=Φ. Then the decomposition is :

a)

not in 2NF

b)

in 2NF but not in 3NF

c)

in 3NF but not in 2NF

d)

in both 2NF and 3NF

19.

Third normal form is based on the concept of _________

a)

Closure Dependency

b)

Transitive Dependency

c)

Normal Dependency

d)

Functional Dependency

20.

R(A,B,C,D) is a relation, Which of the following does not have a lossless join dependency preserving BCNF decomposition

a)

A->B, B->CD

b)

A->B, B->C,C->D

c)

AB->C, C->AD

d)

A->BCD