wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FINAL EXAM REVIEW

Total questions: 68

Worksheet time: 34mins

Name
Class
Date
1.

Rows can be grouped into smaller collections quickly and easily using the COUNT clause within the SELECT statement.

a)

true

b)

false

2.

Thorough database planning and design is important to ensure that data is properly used to give the organization the most benefit.

a)

true

b)

false

3.

Recognizing the entities CLASS and STUDENT in a college ERD, what bridged entity can a database designer add to help ensure each student is assigned their classes for specific courses?

a)

a. COURSE

b)

b. CRS_CODE

c)


c. ENROLL

d)

d. SEMESTER

4.

Although SQL commands can be grouped together on a single line, complex command sequences are best shown on separate lines, with space between the SQL command and the command's components.

a)

true

b)

false

5.

A database stores the data of the sales using the primary key RECEIVE_NUM in the SALE table and the products in the PRODUCT table with primary key PROD_NUM. To create the relation that represents what products were sold in a SALE a M:N relationship is necessary. What should be used to represent this in a relational model?

a)

a. composite attribute with RECEIVE_NUM + PROD_NUM

b)

b. composite entity with RECEIVE_NUM + PROD_NUM

c)

c. a product table SALE x PRODUCT

d)

d. a join table SALE + PRODUCT

6.

In an entity relational model (ERD), what is each row in a table known as?

a)

a. An entity relation

b)

b. An entity set

c)

c. An entity tuple

d)

d. An entity occurrence

7.

In a university, the data of students such as student id, name, and address are recorded in the STUDENT table and the majors, and the data about them, is stored in the table MAJORS. Suppose a student is allowed to take only one major. What kind of relationship exists between students and majors?

a)

1:1

b)

1:M

c)

Functional dependence.

d)

M:N

8.

Information is produced by processing _____.

a)

Scripts

b)

Context

c)

Data

d)

Information

9.

Why is identifying and documenting business rules essential to database design?

a)

a. It allows the designer to manage business processes.

b)

b. It can be a communication tool between users and managers.

c)

c. It allows the user to understand relationship participation rules and constraints.

d)

d. It helps to standardize the company's view of data.

10.

A disadvantage of the relational database management system (RDBMS) is its inability to hide the complexities of the relational model from the user.

a)

true

b)

false

11.

Which of the following is not a valid command to change a COLUMN in a TABLE?

a)

ADD

b)

MODIFY

c)

delete

d)

drop

12.

Structural dependence, which means that access to a file is dependent on its ___?

a)

Data

b)

Storage

c)

customer

d)

Structure

13.

There is a CLASS entity where the first attribute CLASS_CODE is used as its entity identifier. The other attributes are CRS_CODE, CLASS_SECTION, CLASS_TIME, ROOM_CODE, PROF_NUM. If a designer would like to include an alternate composite primary key in case CLASS_CODE is deleted, what would be the most appropriate composite primary key?

a)

a. CLASS_SECTION and CLASS_TIME

b)

b. CRS_CODE

c)

c. CRS_CODE and CLASS_SECTION

d)

d. CLASS_SECTION

14.

Consider the following table



Table name: TENANT

| ID | NAME | RENT |

| 18 | Alex | 219 |

| 31 | Rose | 250 |

| 51 | Alex | 300 |

| 77 | Mary | 280 |

| 81 | Rose | 240 |



How many rows are in the following query?



SELECT DISTINCT NAME FROM TENANT.

a)

1

b)

0

c)

5

d)

3

15.

Which of the following is equivalent to WHERE attribute BETWEEN 10 AND 1000?

a)

a. WHERE attribute > 10 AND attribute == 1000

b)

b. WHERE attribute >= 10 AND attribute <= 1000

c)

c. WHERE attribute = 10 AND attribute = 1000

d)

d. WHERE attribute > 10 AND attribute < 1000

16.

When creating a student roster, a school cannot enroll more than 20 students per course. This is an example of what data modeling building block?

a)

constraint

b)

attribute

c)

entity

d)

relationship

17.

A desktop database is a _____ database.

a)

multiuser

b)

distributed

c)

workgroup

d)

single-user

18.

What is the result of SUBSTR(‘19425127’, 2, 4)?

a)

‘4251’

b)

‘94251’

c)

‘9425’

d)

‘94’

19.

Use the command ADD to change column characteristics.

a)

true

b)

false

20.

In a car rental table VEHICLES, the YEAR attribute indicates the YEAR a car was bought, and the BIN attribute a unique identification number for a car. What describes better the result of the query below?

SELECT BIN, YEAR FROM VEHICLES WHERE YEAR IN (2010, 2020)

a)

a. All YEARS from 2010, or 220 where a vehicle was bought.

b)

b. All vehicles' BIN .

c)

c. All vehicles bought from 2010 to 220.

d)

d. All BINs, and YEARS of vehicles that were bought in 2010, or 2020

21.

From a database point of view, the collection of data becomes meaningful only when it reflects properly defined _____.

a)

a. business rules

b)

b. conceptual schema

c)

c. physical independence

d)

d. logical design

22.

You need an intermediary between the user and the client's database; which of the options below would you use?

a)

DBMS(s)

b)

End-user data

c)

Programming languages

d)

Metadata

23.

A primary key can't be null, but it can contain null attributes.

a)

true

b)

false

24.

Database administrator should insert the new VENDOR information: Bryson, Inc., Suite 615, Smithson, TN, 21225, with phone number 615-223-3234 using the commands ____.

a)

INSERT INTO VENDOR VALUES (21228,'Bryson, Inc.','Suite 615','Smithson','TN','615','223-3234');

b)

INSERT INTO VENDOR VALUES (21225,'Bryson, Inc.','Suite 615','Smithson','TN','223-3234');

c)

INSERT VENDOR VALUES (21226,'Bryson, Inc.','Suite 615','Smithson','TN','615','223-3234');

d)

INSERT VENDOR VALUES (21227,'Bryson, Inc.','615','Smithson','TN','615','223-3234');

25.

Which of the following statements is true?

a)

a. A DBMS is a collection of programs that manage metadata data.

b)

b. A DBMS is a set of processes that manage and control access to data stored in the database.

c)

c. A DBMS is knowledge database management software.

d)

d. A DBMS allows the user access to the database's internal complexity.

26.

The ____ allows using independent tables linked by common attributes.

a)

join

b)

difference

c)

project

d)

select

27.

The proper use of _____ keys is crucial to controlling data redundancy.

a)

foreign

b)

primary

c)

external

d)

candidate

28.

When creating a table with a SELECT statement, the CREATE TABLE command statement represents the subquery.

a)

true

b)

false

29.

Comparison operators cannot be used to place restrictions on character-based attributes.

a)

true

b)

false

30.

When database designers must account for dependents when an EMPLOYEE table already exists, what other entity would the ERD require so that the database reflects the operational needs and processes for its employees?

a)

a. Additional entity for DEP_NUM

b)

b. Additional attribute for DEP_FNAME

c)

c. Additional attribute for DEP_DOB

d)

d. Additional entity for DEPENDENTs

31.

What command should be used to save permanently all changes made to a database.

a)

commit

b)

save

c)

save all

d)

write all

32.

In a relationship between COURSE and CLASS, COURSE has attributes CRS_CODE, DEPT_CODE, and CSR_DESCRIPTION, and CLASS has CRS_CODE, CLASS_SECTION, CLASS_TIME, and ROOM_CODE. Which attribute would be an example of a foreign key?

a)

CRS_CODE

b)

ROOM_CODE

c)

DEPT_CODE

d)

CLASS_SECTION

33.

Which of the following is not a characteristic of a subquery?

a)

a. A subquery is a query (SELECT statement) inside another query.

b)

b. The first query in the SQL statement is known as the outer query.

c)

c. The inner query is executed last.

d)

d. A subquery is normally expressed inside parentheses.

34.

The order of the rows and columns is important to the DBMS.

a)

true

b)

false

35.

Consider the following table



Table name: TENANT

| ID | NAME | RENT |

| 18 | Alex | 219 |

| 31 | Rose | 250 |

| 77 | Alex | 300 |

| 41 | Mary | 280 |

| 81 | Rose | 240 |



Which query returns the following?



| ID | NAME | RENT |

| 18 | Alex | 219 |

| 81 | Rose | 240 |

| 31 | Rose | 250 |

| 41 | Mary | 280 |

| 77 | Alex | 300 |

a)

a. SELECT * FROM TENANT ORDER BY RENT

b)

b. SELECT * ORDER BY RENT FROM TENANT

c)

c. SELECT RENT FROM TENANT ORDER BY RENT

d)

d. SELECT ORDER BY RENT FROM TENANT *

36.

A database designer set the CRS_CODE attribute as the primary key to the CLASS table. If no other changes are made, how many composite identifiers does the table have?

a)

two

b)

three

c)

zero

d)

one

37.

The SQL command, UPDATE, successfully removes a table row.

a)

true

b)

false

38.

Repeating group is defined as

a)

a. SELECT tablelist FROM columnlist [WHERE conditionlist ] [ORDER BY columnlist [ASC | DESC];

b)

b. SELECT columnlist FROM tablelist [WHERE conditionlist ] [ORDER BY columnlist [ASC | DESC];

c)

c. SELECT tablelist FROM columnlist [ORDER BY columnlist [ASC | DESC] [WHERE conditionlist ];

d)

d. SELECT columnlist [WHERE conditionlist ] FROM tablelist [ORDER BY columnlist [ASC | DESC];

39.

When discovering new business rules, interviews with _____ are faster and more direct, but may be less reliable.

a)

written documentation

b)

end users

c)

company managers

d)

policy makers

40.

Complete the following statement: Business rules must ______.

a)

a. be based only on end user perceptions

b)

b. represent many-to-many (M:N) relationships

c)

c. be rendered in writing

d)

d. include constraints

41.

The response of the DBMS to a query is the ___________

a)

ad hoc response

b)

ad hoc query

c)

query result set

d)

integrated view of the data

42.

Which of the answers below would you consider hardware while gathering requirements for a database?

a)

server

b)

internet

c)

operation system

d)

application program

43.

You must first enter the command ALTER TABLE in order to issue a MODIFY command to change a columns datatype.

a)

true

b)

false

44.

By using the relational data model the designer focuses primarily on the physical storage details.

a)

true

b)

false

45.

A database language enables the user to perform complex queries designed to transform the raw data into useful information.

a)

false

b)

true

46.

You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.

a)

true

b)

fasle

47.

Structural dependence exists when it is possible to make changes in the file structure without affecting the application program's ability to access the data.

a)

true

b)

false

48.

All SQL commands must be issued on a single line.

a)

true

b)

false

49.

_____ data exist in a format that does not lend itself to processing that yields information.

a)

Unstructured

b)

Structured

c)

Historical

d)

Semistructured

50.

In the relationship where "PROFESSOR teaches CLASS," and a class can have only one professor teaching, how is the PROFESSOR cardinality notated if PROFESSOR is mandatory?

a)

(1,N)

b)

(1,1)

c)

(0,1)

d)

(0,N)

51.

In an entity relationship model (ERM), attributes are characteristics of entities. Which of the following statements best describe an optional attribute?

a)

a. An optional attribute is an attribute that does not require a value and can be left empty.

b)

b. An optional attribute is an attribute that requires a value and can be left empty.

c)

c. An optional attribute is an attribute that does not require a value and can be an optional key.

d)

d. An optional attribute is an attribute that requires a value and can be an optional key.

52.

Suppose that a mattress store has a TABLE1 with sales representatives with an attribute vcode as primary key. It also has a TABLE2 with every mattress sold, the table has an attribute vcode to indicate which sales representative made the sale, and a mt_code to indicate which mattress was sold. Which of the following returns all the sales representatives that haven't closed a sale?

a)

a. SELECT * FROM TABLE1 JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NULL.

b)

b. SELECT * FROM TABLE1 RIGHT JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NOT NULL.

c)

c. SELECT * FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NULL.

d)

d. SELECT * FROM TABLE1 RIGHT JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NULL.

53.

What would you define as the condition in which all of the data in the database are consistent with the real-world events and conditions?

a)

DATA QUALITY

b)

DATA UBIQUITY

c)

DATA INTERGRITY

d)

FATA ANOMALY

54.

In a PROFESSOR and COURSE relationship if the PROFESSOR object is given a cardinality of (1,1), then which of the following would be a true statement about the university?

a)

a. a PROFESSOR must have more than one COURSE to teach

b)

b. a COURSE must have at least one PROFESSOR to teach

c)

c. a PROFESSOR can optionally teach a COURSE

d)

d. a COURSE can optionally have a PROFESSOR to teach

55.

In a university, the data of students such as student id, name, and address are recorded in the STUDENT table and the courses are stored in a COURSE table by the course code, number of credits, and professor teaching. Usually, a student takes up to 5 courses per cycle, and each course has a minimum of 2 students. What kind of relationship exists between the courses and students?

a)

1.M

b)

1:1

c)

FUNCTIONAL DEPENDENCE

d)

M:N

56.

It is unnecessary for the database designer to determine which data to enter into the database and how to organize that data in the database management system.

a)

TRUE

b)

FALSE

57.

If CUSTOMER and INVOICE is classified as a 1:M and one direction would specify that a CUSTOMER may generate many INVOICEs, what would be true of the opposite direction?

a)

a. Each INVOICE is generated by one CUSTOMER

b)

b. CUSTOMERs are given INVOICEs

c)

c. Each INVOICE is written to many CUSTOMERs

d)

d. CUSTOMER is unique to many INVOICEs

58.

Which of the following is not a valid business rule?

a)

A customer must reside in the USA.

b)

An invoice must be paid in a reasonable amount of time.

c)

An invoice can only be paid to one customer.

d)

An invoice may have many items.

59.

A table is a three dimensional structure composed of depth, width, and height.

a)

TRUE

b)

FALSE

60.

One of the advantages of a database system over previous data management approaches is reduced costs.

a)

TRUE

b)

FALSE

61.

While trying to resolve a database failure, which of the answers below would you say might have caused the database failure?

a)

Data inconsistency

b)

Multi-user access

c)

A bad disk

d)

Data redundancy

62.

Business rules that are properly written will define entities, attributes, relationships, and _____.

a)

constraints

b)

objects

c)

classes

d)

fields

63.

Database administrator must create another logical group of database objects for a new application called "APP03" that will also use database services from the same system. How can an administrator create this successfully without affecting existing tables and indexes?

a)

Run command, CREATE TABLE APP03 PRIMARY KEY APP03;

b)

Run command, CREATE TABLE APP03 PRIMARY KEY (APP03)

c)

Run command, CREATE PRIMARY KEY APP03;

d)

Run command, CREATE SCHEMA AUTHORIZATION APP03;

64.

If a PROFESSOR can teach up to 4 CLASSes, the cardinality of CLASS should be expressed as which of the following?

a)

(1,N)

b)

(0,N)

c)

(4,0)

d)

(1,4)

65.

If each CLASS in an ERD can only have one PROFESSOR, the designer would place a cardinality next to the PROFESSOR object as which of the following?

a)

(1,0)

b)

(1,N)

c)

(0,1)

d)

(1,1)

66.

Embedded SQL refers to SQL statements contained within an application programming language such as Java.

a)

TRUE

b)

FALSE

67.

Consider the following tables:

table1

vcode

name

7

Alex

8

Tony

9

Charles

11

Mary

table2

scode

vcode

total

341

7

102

213

9

59

312

7

89

712

3

301

How many rows has the result of the following query?

SELECT * FROM table1 NATURAL JOIN table2

a)

0

b)

1

c)

3

d)

2

68.

A workgroup database is a _____ database.

a)

DESKTOP

b)

MULTIUSER

c)

SINGLE-USER

d)

DISTRIBUTED