wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

LNCTE -DBMS-QUIZ-2

Total questions: 11

Worksheet time: 5mins

Name
Class
Date
1.

The relationship between two entity types is known as

a)

Two-way relationship

b)

Double relationship

c)

Binary relationship

d)

Multiple relationship

2.

A foreign key must

a)

Be numeric.

b)

Match the field value of a primary key in a related table

c)

Be defined in all tables in the database

d)

Be unique.

3.

The constraint that can be applied only at column level is_______

a)

Primary key constraint

b)

Foreign key constraint

c)

Unique constraint

d)

Not Null constraint

4.

Which of the following relational algebra operations require two tables as input with exactly the

same attributes?

a)

Join, cartesian product (multiplication), division

b)

Project, restriction, union

c)

Union, intersection, minus

d)

Update, insert, delete

5.

Which of these keywords is used to eliminate duplicate tuples from the resultant relation?

a)

COUNT

b)

DISTINCT

c)

NONDUPLICATE

d)

UNIQUE

6.

Which of these is the correct command for inserting values in the Employee relation?

a)

INSERT VALUES (‘John’, 2000) INTO Employee;

b)

INSERT (‘John’, 2000) INTO Employee;

c)

INSERT INTO Employee VALUES (‘John’, 2000);

d)

INSERT (John , 2000) INTO Employee;

7.

Which of these is the correct command to change “Jon” into “John” in the Name attribute of the

Employee relation?

a)

UPDATE Employee SET Name =‘ John’ WHERE Name =‘ Jon’;

b)

ALTER Employee SET Name =‘ Jon’ INTO Name =‘ John’;

c)

UPDATE Employee SET Name =‘ Jon’ INTO Name =‘ John’;

d)

ALTER Employee SET Name=‘John’ WHERE Name=‘Jon’;

8.

Consider the following SQL statements:

(I) DELETE FROM Customer; (II) DROP TABLE Customer;

a)

Only statement (I) permanently removes the relation Customer

b)

Only statement (II) permanently removes the relation Customer

c)

Both statements (I) and (II) permanently remove the relation Customer

d)

None of these

9.

Which of the following clauses is used to restrict groups returned by the GROUP BY clause?

a)

DISTINCT

b)

WHERE

c)

EXISTS

d)

HAVING

10.

Given a relation R having three attributes X, Y and Z. Which of the following statements is true

according to augmentation rule?

a)

If both X→Y and Y→Z hold, then X→Z holds.

b)

If X→Y holds, then XZ→YZ holds.

c)

If X→YZ holds, then both X→Y and X→Z hold.

d)

If both X→Y and X→Z hold , then X→YZ holds.

11.

Once the transaction executes its final operation, it enters into state.

a)

Committed

b)

Terminated

c)

Partially committed

d)

Failed