wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Module - Quiz

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

Which of the following is TRUE about a database schema?

a)

Changes frequently

b)

Represents current data

c)

Overall logical design

d)

Physical storage only

2.

Data independence is achieved mainly due to:

a)

ER model

b)

Three level architecture

c)

SQL

d)

Normalization

3.

In ER model, a weak entity depends on:

a)

Key attribute

b)

Strong entity

c)

Multivalued attribute

d)

Derived attribute

4.

Which operation is NOT closed in relational algebra?

a)

Union

b)

Projection

c)

Join

d)

Assignment

5.

σsalary>5000(EMP) removes:

a)

Columns

b)

Rows

c)

Tables

d)

Keys

6.

Division operator is mainly used for queries involving:

a)

At least one

b)

All values

c)

None

d)

Join

7.

Relational calculus is:

a)

Procedural

b)

Record based

c)

Non-procedural

d)

Physical

8.

RA and RC are equivalent in:

a)

Syntax

b)

Expressive power

c)

Speed

d)

Memory

9.

Which SQL clause is executed last?

a)

WHERE

b)

GROUP BY

c)

HAVING

d)

SELECT

10.

A view is stored as:

a)

Table

b)

Query

c)

File

d)

Index

11.

If A → B and B → C, then A → C by:

a)

Reflexivity

b)

Augmentation

c)

Transitivity

d)

Decomposition

12.

A relation is in 2NF if:

a)

No transitive dependency

b)

No partial dependency

c)

No FD

d)

No MVD

13.

BCNF violation occurs when:

a)

LHS is key

b)

RHS is key

c)

LHS is not a super key

d)

RHS is non-prime

14.

4NF removes:

a)

FD

b)

Partial dependency

c)

MVD

d)

JD

15.

Which is lossless decomposition condition?

a)

Common attribute is key

b)

Common attribute is FD

c)

No common attribute

d)

Separate keys

16.

A schedule is conflict serializable if its precedence graph is:

a)

Cyclic

b)

Acyclic

c)

Complete

d)

Directed

17.

Cascading rollback occurs due to:

a)

Dirty read

b)

Phantom read

c)

Deadlock

d)

Starvation

18.

Strict 2PL avoids:

a)

Deadlock

b)

Cascading aborts

c)

Starvation

d)

Phantom reads

19.

Timestamp ordering avoids:

a)

Deadlock

b)

Starvation

c)

Cascading

d)

Logging

20.

Deadlock requires:

a)

Circular wait

b)

Preemption

c)

Sharing

d)

No hold

21.

WAL stands for:

a)

Write After Log

b)

Write Ahead Log

c)

Write Around Log

d)

Write All Log

22.

Shadow paging uses:

a)

Log file

b)

Two page tables

c)

Locks

d)

Index

23.

Heap file organization is best for:

a)

Range queries

b)

Random inserts

c)

Sorted access

d)

Indexing

24.

Ordered file organization helps in:

a)

Insert

b)

Delete

c)

Range queries

d)

Update

25.

Dense index contains:

a)

One entry per block

b)

One entry per record

c)

One entry per table

d)

One entry per key range

26.

Sparse index requires:

a)

Ordered file

b)

Heap file

c)

Hash file

d)

Random file

27.

B+ tree data pointers are in:

a)

Root

b)

Internal nodes

c)

Leaf nodes

d)

All nodes

28.

Height of B+ tree depends on:

a)

Records

b)

Keys

c)

Fan out

d)

Blocks

29.

Static hashing suffers from:

a)

Overflow buckets

b)

Sorting

c)

Indexing

d)

Joins

30.

Linear hashing is:

a)

Static

b)

Dynamic

c)

Ordered

d)

Indexed

31.

Query cost is mainly measured by:

a)

CPU time

b)

I/O operations

c)

RAM

d)

Network

32.

Selection pushdown is used in:

a)

ER model

b)

Query optimization

c)

Indexing

d)

Normalization

33.

Which join is costliest?

a)

Nested loop

b)

Merge join

c)

Hash join

d)

Index join

34.

Which anomaly is removed by normalization?

a)

Update anomaly

b)

Deadlock

c)

Crash

d)

Lock

35.

A super key:

a)

Minimal key

b)

Unique identifier

c)

Foreign key

d)

Composite key

36.

Candidate key is:

a)

Minimal super key

b)

Any key

c)

Foreign key

d)

Prime key

37.

Foreign key ensures:

a)

Uniqueness

b)

Referential integrity

c)

Functional dependency

d)

Normalization

38.

Which is NOT a DDL command?

a)

CREATE

b)

DROP

c)

INSERT

d)

ALTER

39.

HAVING is used with:

a)

WHERE

b)

GROUP BY

c)

SELECT

d)

ORDER BY

40.

Which anomaly occurs due to redundancy?

a)

Update

b)

Deadlock

c)

Crash

d)

Lock

41.

Phantom problem occurs in:

a)

Dirty read

b)

Range query

c)

Write write conflict

d)

Lost update

42.

Multiversion concurrency control uses:

a)

Locks

b)

Timestamps

c)

Multiple copies

d)

Logs

43.

Checkpoint in recovery is used to:

a)

Delete logs

b)

Reduce recovery time

c)

Increase speed

d)

Avoid crash

44.

Log records are written to:

a)

Disk after commit

b)

Disk before data

c)

Memory only

d)

Cache only

45.

Which dependency is removed in 3NF?

a)

Partial

b)

Transitive

c)

MVD

d)

JD

46.

Natural join is:

a)

Cartesian + Selection

b)

Union + Selection

c)

Projection + Join

d)

Division + Join

47.

Rename operator is:

a)

σ

b)

π

c)

ρ

d)

÷

48.

TRC uses:

a)

Domain variables

b)

Tuple variables

c)

Keys

d)

Tables

49.

Domain relational calculus uses:

a)

Tuple variables

b)

Domain variables

c)

Keys

d)

FDs

50.

The main goal of query optimizer is to:

a)

Increase joins

b)

Reduce I/O cost

c)

Increase tables

d)

Reduce normalization