Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Design Quiz

Total questions: 30

Worksheet time: 2hrs 0mins

Name
Class
Date
1.

Identify the roles of database in the present business world.


i. Handling multifiles data access

ii. Controlling data security

iii. Equitable use

iv. Validating data

a)

i and ii

b)

ii and iii

c)

i, ii and iii

d)

i, ii and iv

2.

Define the property of database that ensures the evolvement in order to satisfy the changes in user requirements.

a)

flexibility

b)

efficiency

c)

usability

d)

completeness

3.

Identify the software that is used to define a database, stores data, produces reports and creates data entry screens.

a)

Relational Database

b)

Database Management System

c)

Data Dictionary

d)

Data Integrity

4.

Identify the relation key that uniquely defines each row in a table.

a)

Foreign Key

b)

Candidate Key

c)

Primary Key

d)

Composite Key

5.

Choose the correct symbol of PROJECT in the Relational Algebra.

a)

˄

b)

×

c)

π

d)

σ

6.

In relational data model, the total number of values can be identified as ______________________ .

a)

Cardinality

b)

Tuple

c)

Attribute

d)

Entity

7.

Choose the symbol of entity in the Entity Relationship Diagram.

a)
b)
c)
d)
8.

Indicate the term for number of entities to which another entity can be associated via a relationship set.

a)

Schema

b)

Attributes

c)

Cardinality

d)

Entity

9.

Identify the relational algebra operator that is applied to tables of Employees and Department to produce the following result as in the table.

a)

An outer join operator

b)

The cross product operator

c)

The project operator

d)

The natural join operator

10.

A relation is in _______, if and only if, every determinant is a candidate key.

a)

First normal form (1NF)

b)

Second normal form (2NF)

c)

Third normal form (3NF)

d)

Boyce-Codd Normal Form (BCNF)

11.

From a structural point of view, 2NF is better than _________________.

a)

UNF

b)

1NF

c)

3NF

d)

BCNF

12.

Normalization works through a series called normal forms. Identify stages that are as high as needed to go in the normalization process for most purpose in business database design.

a)

One

b)

Two

c)

Three

d)

Unnormalised

13.

Identify the type of SQL that were used to manipulate database structures, including tables.

a)

Data Definition Language (DDL)

b)

Data Manipulation Language (DML)

c)

Database Management System (DBMS)

d)

Structured Query Language (SQL)

14.

Choose the SQL command that is used to change a table's storage characteristics.

a)

CHANGE TABLE

b)

EDIT TABLE

c)

MODIFY TABLE

d)

ALTER TABLE

15.

Identify the following that hold a single valued attribute.

a)

Address

b)

Register_number

c)

Reference

d)

Subject_Taken

16.

Identify which of the following relation would be produced by the relational algebra statement below.

a)

Compute the inner join between the DEPARTMENT and EMPLOYEE relations.

b)

Compute the natural join between the DEPARTMENT and EMPLOYEE relations.

c)

Compute the set difference between the DEPARTMENT and EMPLOYEE relations.

d)

Compute the cross product between the DEPARTMENT and EMPLOYEE relations.

17.

Select the relational algebra statement to find employee tuples who work in Accounting Department called Sandra.

a)

σ dept = ‘IT’ ˄ name = ‘Sandra’(EMPLOYEE)

b)

σ dept = ‘IT’ ˅ name = ‘Sandra’(EMPLOYEE)

c)

π dept = ‘IT’ ˄ name = ‘Sandra’(EMPLOYEE)

d)

π dept = ‘IT’ ˅ name = ‘Sandra’(EMPLOYEE)

18.

Choose the syntax for output in Table

a)

σ staffID, name, department (π staffID=2211)(STAFF)

b)

π staffID, name, department (σ staffID=2211)(STAFF)

c)

π name, staffID, department (σ staffID=2211)(STAFF)

d)

σ name, staffID, department (π staffID=2211)(STAFF)

19.

Write the relational algebra to list employee’s number and employee’s name whose salary is greater than RM3000 in the table.

a)

σ WorkerId, WorkerName (π Salary > 3000)(WORKER)

b)

π WorkerId, WorkerName (σ Salary = 3000)(WORKER)

c)

π WorkerId, WorkerName(σ Salary > 3000)(WORKER)

d)

σ WorkerId, WorkerName (π Salary > 3000)(WORKER)

20.

Entities can be associated with one another in Entity Relationship Diagram (ERD) using _____________.

a)

relationship

b)

cardinality

c)

attributes

d)

primary key

21.

An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in A. Based on the statement, choose the relationship that has been applied.

a)

one-to-many

b)

one-to-one

c)

many-to-many

d)

many-to-one

22.

Choose the denotation in a relational database which has the functional dependency between attributes of StudentID, StudentName and Course.

a)

StudentID --> StudentName, Course

b)

StudentName -->Course

c)

StudentName, Course -->StudentID

d)

Course <--StudentID, StudentName

23.

Based on the relational schema in Figure, select one of the following that would violate the 2NF property.

a)

Register_No, Name

b)

Course_No, Course_Name

c)

Register_No, Phone

d)

Phone, Branch

24.

Determine the SQL statement that were used to create table in a database.

a)

CREATE DATABASE TABLE

b)

CREATE RELATION

c)

CREATE TABLE

d)

CREATE DATABASE RELATION

25.

Determine the SQL statement that were used to drop table in a database.

a)

DROP DATABASE TABLE

b)

DROP RELATION

c)

DROP TABLE

d)

DROP DATABASE RELATION

26.

Determine the result based on the SQL statement in Figure.

a)

A listing of all customers in the customer table

b)

A listing of the owner of the customer table

c)

A listing of all owner and customer of customer table

d)

A listing of the owner of the customer table as well as customers

27.

Analyze the result based on SQL statement in Figure.

a)

Changes the length of the Unit_Price field to 775

b)

Changes the price of a unit called Product_T to 7

c)

Changes the unit price of Product 7 to 775

d)

Updates the Product_T table to have a unit price of 7

28.

Identify the INCORRECT statement while using LIKE comparison operator.

a)

WHERE CustomerName LIKE ‘ad%’;

b)

WHERE CustomerName LIKE ‘%ad’;

c)

WHERE CustomerName LIKE ‘_ad%’;

d)

WHERE CustomerName LIKE = ‘ad%’;

29.

Choose the SQL statement to display the entire record from the Table with the names of students sorted out in descending order.

a)

SELECT * FROM Student ORDER BY NAME;

b)

SELECT * ORDER BY NAME FROM Student;

c)

SELECT * FROM Student ORDER BY NAME DESC;

d)

SELECT * ORDER BY NAME DESC FROM Student;

30.

Identify the output when SQL command in Figure is executed.

a)

The highest salary for all employees

b)

The highest salary in each department

c)

The employees with the highest salaries

d)

The employees with the highest salary for each department