wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CIW 1D0-541 Exam

Total questions: 121

Worksheet time: 10hrs 5mins

Name
Class
Date
1.

With regard to databases, what is normalization?

a)

The process of reducing the cardinality of a relation

b)

The process of organizing and refining relations

c)

The process of duplicating data to reduce the number of tables

d)

The process of limiting data stored in a table to a specific range of values

2.

Which three pieces of information did E.F. Codd describe as necessary to retrieve a data value from a relational database?

a)

Attribute, domain, and tuple

b)

Entity, relation name, and domain

c)

Table name, primary key, and entity

d)

Attribute, relation name, and primary key

3.

What is a virtual table?

a)

A virtual table is a relation created as the result of data manipulation; it exists only in computer memory, and is not a permanent part of the database.

b)

A virtual table is a relation stored in the database; it is used when multiple users access the same relation in a database.

c)

A virtual table is a relation derived from the database data dictionary; it contains metadata about a base relation. A virtual table is a relation derived from the database? data dictionary; it contains metadata about a base relation.

d)

A virtual table is a relation that consists of primary and foreign keys for a particular set of relations in a database.

4.

Your enterprise has reached the conceptual design phase for a database project. What is the desired goal at the end of this design phase?

a)

A set of normalized relations

b)

A reviewed entity-relationship (ER) model

c)

An entity-relationship (ER) model with no redundant data

d)

A set of denormalized relations

5.

In which phase of database design do you identify entities, attribute domains, and relationships?

a)

Logical

b)

Physical

c)

Application

d)

Conceptual

6.

Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit. Which of the following SQL statements would create a set difference of the two relations with the widest variety of Structured Query Language dialects?

a)

SELECT * FROM Dept1_Parts EXCEPT(SELECT PartJD FROM Dept2_Parts);

b)

SELECT * FROM Dept1_Parts MINUS (SELECT Part_ID FROM Dept2_Parts);

c)

SELECT * FROM Dept1_Parts DIFFERENCE (SELECT Part_ID FROM Dept2_Parts);

d)

SELECT * FROM Dept1_Parts WHERE Part_ID NOT IN (SELECT Part_ID FROM Dept2_Parts);

7.

Consider the Information Engineering diagram shown in the exhibit. Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name,
Location and Res_Name are all represented by variable-length strings with a maximum of 20 characters.
Which SQL statement best implements the RESIDENT relation shown in this diagram?

a)

CREATE TABLE RESIDENT ( R_ID INTEGER NULL PRIMARY KEY, Room_Num FLOAT, Res_Name VARCHAR, Building_ID INTEGER NULL, FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

b)

CREATE TABLE RESIDENT ( R_ID INTEGER NOT NULL PRIMARY KEY, Room_Num BINARY, Res_Name VARCHAR (20), Building_ID INTEGER NOT NULL, FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

c)

CREATE TABLE RESIDENT ( R_ID INTEGER NOT NULL PRIMARY KEY, Room_Num INTEGER, Res_Name VARCHAR (20), Building_ID INTEGER NOT NULL);

d)

CREATE TABLE RESIDENT ( R_ID INTEGER NOT NULL PRIMARY KEY, Room_Num INTEGER, Res_Name VARCHAR (20), Building_ID INTEGER NOT NULL, FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

8.

Which term describes one or more database operations that are executed as a single unit?

a)

Update

b)

Transaction

c)

Encapsulation

d)

Operational group

9.

Your enterprise is involved in planning a database project. The exhibit shows the result of one phase of the database design life cycle. Which term best describes the diagram shown in the exhibit?

a)

Information Engineering (IE) data model

b)

Corporate data model

c)

Database requirements model

d)

ERD model

10.

Consider the following relations shown in the exhibit. Which of the following SQL statements would return the Customers2 relation from the Customers relation?

a)

SELECT * FROM Customers WHERE Satisfaction_Rate <= 80 OR Satisfaction_Rate >= 90;

b)

SELECT * FROM Customers WHERE Satisfaction_Rate IN (80 AND 90);

c)

SELECT *FROM Customers WHERE Satisfaction_Rate >= 80 AND Satisfaction_Rate <= 89;

d)

SELECT * FROM Customers WHERE Satisfaction_Rate BETWEEN (80, 90);

11.

Which statement is used to define a named group of related tables, views, domains and other database objects?

a)

CREATE

b)

CREATE TABLE

c)

CREATE DOMAIN

d)

CREATE SCHEMA

12.

Which of the following best describes the ON DELETE NO ACTION referential integrity constraint?

a)

If a parent key is deleted, any child keys referenced by the parent key are automatically deleted.

b)

If a parent key is deleted, no test is made for referential integrity.

c)

If any child key references a parent key, the record containing the parent key cannot be deleted.

d)

If a parent key is deleted, all child keys are automatically set to a specified value. C

13.

Consider the following relational algebraic expression: Which of the following SQL statements is equivalent to this relational algebraic expression?

a)

SELECT * FROM Customers, Employees WHERE Sales_Rep_No = Cust_No;

b)

SELECT Cust_No, Cust_Name, Emp_Name, Emp_Loc FROM Customers, Employees WHERE Customers.Sales_Rep_No = Employees.Sales_Rep_No;

c)

SELECT * FROM Customers, Employees WHERE Customers.Sales_Rep_No = Employees.Sales_Rep_No;

14.

What is a domain?

a)

A normalized set of data applicable to a particular relation

b)

A combination of attributes for a relation

c)

A definition of permissible values for one or more attributes

d)

A set of permissible values for one or more relations

15.

For the Employee relation shown in the exhibit, which set of column value holds the complete tuple for the employee named James Smith?

a)

0002, James, Smith

b)

0002, James, Smith, 10-25-76

c)

First_Name, James, Last_Name, Smith

d)

Emp_ID, 0002, First_Name, James, Last_Name, Smith

16.

Which pair of relational algebraic operations requires union compatibility?

a)

Union and join

b)

Selection and projection

c)

Intersection and difference

d)

Cartesian product and intersection

17.

Consider the following table as well as the Dept1_Parts and Dept2_Parts relations shown in the exhibit: Which of the following relational algebraic expressions would result in the given table?

(a)  

18.

What is the most important service provided by a database management system?

a)

Provides support for a data manipulation language

b)

Allows users to store data in a distributed data repository

c)

Provides support for data formatting language commands

d)

Translates procedural commands into non-procedural commands

19.

Consider the table for an employee database shown in the exhibit. What is the cardinality of the table?

a)

6

b)

20

c)

4

d)

25

20.

What is a relational database domain?

a)

A group of attributes

b)

A set of permissible tuple values

c)

A collection of related data items

d)

A set of permissible attribute values D

21.

Consider the table for an employee database shown in the exhibit. What is the degree of the table?

a)

25

b)

5

c)

4

d)

20

22.

What improvement can be made to file-based databases to overcome their limitations?

a)

Implement a tabular structure.

b)

Gather files in a distributed repository.

c)

Use a hierarchical database file system.

d)

Tightly couple database structure to database application programs.

23.

NULL) Primary Key Class_Num -
Consider the Information Engineering diagram shown in the exhibit. Which DBDL definition best describes this diagram?

a)

BUILDING(Building_ID, Bldg_Name, Location, Room_Count) Primary Key Building_ID RESIDENT(R_ID, Room_Num, Res_Name, Building_ID) Primary Key R_ID

b)

BUILDING(Building_ID, Bldg_Name, Location, Room_Count) Primary Key BUILDING RESIDENT(R_ID, Room_Num, Res_Name, Building_ID) Primary Key RESIDENT

c)

BUILDING(Building_ID, Bldg_Name, Location, Room_Count) Primary Key BUILDING Foreign Key BUILDING(Building_ID) references RESIDENT (Building_ID) RESIDENT(R_ID, Room_Num, Res_Name, Building_ID) Primary Key RESIDENT

d)

BUILDING(Building_ID, Bldg_Name, Location, Room_Count) Primary Key Building_ID RESIDENT(R_ID, Room_Num, Res_Name, Building_ID) Primary Key R_ID Foreign Key Building_ID references BUILDING(Building_ID)

24.

Consider the Information Engineering diagram in the exhibit showing the relations BUILDING and RESIDENT. What is the relationship between BUILDING and
RESIDENT?

a)

1:1

b)

1:N

c)

N:1

d)

M:N

25.

You enterprise must decide whether to use a database management system. Which of the following lists four advantages of using a DBMS?

a)

Management of data redundancy, increased data integrity, increased data dependence, and increased application program flexibility.

b)

Consistency of data, adherence to standards, managed concurrency, and increased software complexity.

c)

Increased data access, increased data backup and recovery, data sharing, and consistency of data.

d)

Increased data security, increased data integrity, increased data independence, and decreased data separation.

26.

Which of the following occurs in a relation when records are added or removed?

a)

The number of domains changes.

b)

The attributes in the domain change.

c)

The cardinality of the relation is fixed but the degree varies.

d)

The degree of the relation is fixed but the cardinality varies.

27.

Your enterprise is creating a relation (shown in the exhibit) that tracks parts and suppliers. Which situation would occur if new supplier information were entered in the relation before any information about specific parts?

a)

An update anomaly and an insertion anomaly would occur.

b)

An insertion anomaly would occur.

c)

A deletion anomaly would occur.

d)

A deletion anomaly and an update anomaly would occur.

28.

The creation of intermediate entities occurs during the logical database design phase for an enterprise. It is used to resolve which types of relationships?

a)

One-to-many and recursive

b)

Complex, recursive, and many-to-many

c)

Redundant, recursive, and one-to-many

d)

One-to-many and one-to-one

29.

Your enterprise is developing a database system that will contain highly sensitive data. Security of the data will take priority over database processing speed.
Which database protection technique should be employed?

a)

Backups

b)
  • User views

c)

Encryption

d)

Integrity controls

30.

The exhibit shows a table called Housing Relation that relates a unique student identification number with a dormitory building and a room fee for that building.
Each building charges only one fee and a student can live in only one building. The key for the Housing Relation is Student_ID.
This table is in which normal form?

a)

1NF

b)

1NF and 2NF

c)

1NF, 2NF and 3NF

d)

1NF, 2NF, 3NF and BCNF

31.

The exhibit shows a relation for a company projects. Which candidate key(s) would best serve as the primary key for this relation?

a)

S_Date and E_Date

b)

ProjJD

c)

ltem_Num and E_Date

d)

Proj_ID and Item_Num

32.

Which of the following best describes a composite key?

a)

A composite key is a primary key that consists of the first two attributes of a relation.

b)

A composite key is a primary or foreign key defined by its parent keys.

c)

A composite key is a foreign key that consists of the same attributes as the primary key from a related table.

d)

A composite key is a primary or foreign key that consists of two or more attributes of a relation.

33.

Consider the following database information:
domain s_id: integer domain grd: fixed length
character string length 1
STUDENT_GRADE(

Student_Number: s_id NOT NULL -

Grade: grd ) Primary Key -

Student_Number -
During which phase of the database design process would this information be developed?

a)

Logical

b)

Physical

c)

Conceptual

d)

Implementation

34.

Consider the Recreation relation in the exhibit. A data operation that changes one of the tuples for Student_ID 1003 must be performed. It is necessary to change one of the activities from swimming to tennis. The Student_ID and Activity attributes make up the primary key for the Recreation relation. All related information must be altered, as well. Which SQL statement or statements would best accomplish this?

a)

UPDATE Recreation SET Activity, Activity_Fee (Tennis,100) WHERE Student_ID = 1003;

b)

UPDATE TABLE Recreation ALTER COLUMN ACTIVITY SET ACTIVITY = Tennis', Activity_Fee = 100 WHERE Student__ID = 1003 AND Activity = wimming?AND Activity = ?wimming?

c)

UPDATE Recreation SET Activity = Tennis', Activity_Fee = 100 WHERE Student_ID = 1003 AND Activity = 'Swimming';

d)

DELETE Activity FROM Recreation WHERE Student_ID = 1003; INSERT INTO Recreation VALUES (1003, Tennis', 100);

35.

Which process is used to prevent the current database operation from reading or writing a data item while that data item is being accessed by another operation?

a)

Lock

b)

Deadlock

c)

Time stamp

d)

Transaction

36.

Your company must choose which type of database to use for a new project. Which of the following lists three characteristics of file-based database systems?

a)

Repetition of data, application program flexibility, and data centralization

b)

Incompatibility of files, tabular data structures, and data dependence

c)

Separation of data, repetition of data, and data independence

d)

Application program inflexibility, data dependence, and separation of data

37.

Consider the Information Engineering diagram shown in the exhibit. Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name and Res_Name are represented by variable-length strings with a maximum of 20 characters. Location can be up to 50 characters long, and no building has more than 600 rooms. Which SQL statement best implements the BUILDING relation shown in this diagram?

a)

CREATE TABLE BUILDING ( Building_ID NOT NULL PRIMARY KEY, Bldg_Name, Location, Room_Count);

b)

CREATE TABLE BUILDING ( Building_ID NOT NULL PRIMARY KEY, Bldg_Name, Location, Room_Count, FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

c)

CREATE TABLE BUILDING (Building_ID INTEGER NOT NULL PRIMARY KEY, Bldg_Name VARCHAR (20), Location VARCHAR (50),

d)

CREATE TABLE BUILDING (Building_ID INTEGER NOT NULL PRIMARY KEY, Bldg_Name VARCHAR (20), Location VARCHAR (50), Room_Count INTEGER CHECK (Room_Count > Room_Count INTEGER CHECK ( -1 And Room_Count < 601)); Room_Count > -1 Or Room_Count < 601));

38.

Consider the following four database design activities:
1 - Design user views.
2 - Select a DBMS.
3 - Apply normalization.
4 - Determine entities.
Which choice shows the correct ordering of these activities, from first to last, by assigned numbers?

a)

1,2,3,4

b)

3,4,1,2

c)

4,3,1,2

d)

4,2,3,1

39.

A large enterprise uses a two-tier database architecture and runs complex database applications.
Which term best describes the client in this system?

a)

Fat client

b)

Enterprise client

c)

Thin client

d)

Terminal client

40.

The exhibit shows a table called Activity Relation that relates a unique student identification number with a sports activity and a fee for participating in that activity.
A student can participate in only one activity. The key for the relation is Student_ID. What consequence would occur if the tuple for Student_ID 1001 were removed?

a)

An update anomaly would occur.

b)

An insertion anomaly would occur.

c)

A deletion anomaly would occur.

d)

Both an insertion anomaly and a deletion anomaly would occur.

41.

Which of the following definitions best describes an entity?

a)

A relation

b)

Data about data

c)

Data stored in a table column

d)
  • An item about which information is stored

42.

Several SQL operations are performed by User 1 to access the Fee information for Bowling in the Act_Fee relation (shown in the exhibit). The first access returns a fee of 50. An unrelated SQL operation by another user updates the Bowling fee to 60. The second access by User 1 returns a fee of 60. What problem has occurred?

a)

Rollback

b)

Deadlock

c)

Dirty read

d)

No problem has occurred.

43.

Consider the entity-relationship (ER) diagram shown in the exhibit. What do the characters at the ends of the connecting line indicate?

a)

Degree of a relation

b)

Cardinality of a relation

c)

Primary key of a relation

d)

Determinant of a relation

44.

Consider the following SQL statement and the Orders relation shown in the exhibit:
What is the output of this SQL statement?
SELECT *

FROM Orders -

WHERE NOT (Amount < 1000 -
AND Sales_Rep_No = 210);

a)

A

b)

B

c)

C

d)

D

45.

Consider the following DBDL description of an entity: Teachers (teach_num: variable length character string length 10 NOT NULL teach_name: variable length character string length 10 NOT NULL) Primary Key: teach_num which integrity constraint is satisfied?

a)

Entity integrity

b)

Necessary data

c)

Referential integrity

d)

Referential foreign integrity

46.

FROM Registration WHERE -
Consider the following relational algebraic expression: Which of the following SQL Course_Code = 'A4343'; statements is equivalent to this relational algebraic expression?

a)

SELECT Sales_Rep_No(108) FROM Orders;

b)

INSERT INTO Orders VALUES(Sales_Rep_No = 108) WHERE Sales_Rep_No = NULL;

c)

SELECT'FROM Orders WHERE Sales_Rep_No = 108;

d)

SELECT'FROM Orders WHERE Sales_Rep_No = ?08?

47.

Consider the Registration relation shown in the exhibit. Which of the following SQL statements would return the Registration2 relation from the Registration relation?

a)

SELECT Course_Code FROM Registration;

b)

SELECT * FROM Registration WHERE Registration_ID = 1003 AND Registration_ID = 1005;

c)

SELECT * FROM Registration WHERE Course_Code = A4343';

d)

SELECT Registration_ID, Student_ID, First_Name, Last_Name

48.

Consider the Employee relation shown in the exhibit. A database manager wants to set up a view called Emp_Dept that allows users to find employees and their department ID numbers. Which SQL statement will accomplish this?

a)

CREATE VIEW Emp_Dept AS SELECT Last_Name, First_Name, Dept_ID FROM Employee;

b)

UPDATE VIEW Emp_Dept AS SELECT * FROM Employee;

c)

UPDATE VIEW Emp_Dept AS SELECT Last_Name, First_Name, Dept_ID FROM Employee;

d)

CREATE VIEW Emp_Dept AS SELECT * FROM Employee WHERE ID = 0001 AND ID = 0002 AND ID = 0003 AND ID = 0004;

49.

Which subset of Structured Query Language (SQL) is used to limit access to a database or its data?

a)

Data Markup Language

b)

Data Control Language

c)

Data Formatting Language

d)

Data Manipulation Language

50.

Which type of relational integrity is violated if a primary key in a database has a null value?

a)

Entity integrity

b)

Domain integrity

c)

Domain constraints

d)

Referential integrity

51.

Consider the relation shown in the exhibit. Which of the following SQL statements would properly remove all tuples for New York customers?

a)

DELETE * FROM Customers WHERE Sales_Office = New York;

b)

DELETE FROM Customers WHERE Sales_Office = ew York?WHERE Sales_Office = ?ew York?

c)

DELETE * FROM Customers WHERE Sales_Office = ew York?WHERE Sales_Office = ?ew York?

d)

DELETE FROM Customers WHERE Sales_Office NOT LIKE ew York? WHERESales_Office NOT LIKE ?ew York?

52.

What is a data dictionary?

a)

A system catalog containing user data

b)

An area of the database that is directly accessible by the user

c)

Data that is stored in tables and is only accessible by the DBMS

d)

Metadata that is stored in tables and is only accessible by the DBMS

53.

Which statement best describes a procedural data manipulation language command?

a)

It contains a query language for retrieving data.

b)

It can be used only to manipulate data through a SQL interface.

c)

The user is not required to know how the underlying data structures are implemented.

d)

It requires that the user know how the underlying data structures are implemented.

54.

Which area of database security involves maintaining access to enterprise data?

a)

Theft

b)

Privacy

c)

Availability

d)

Confidentiality

55.

Consider the table shown in the exhibit. Which relational algebraic operation would return Row 3?

a)

Union

b)

Selection

c)

Projection

d)

Difference

56.

What is the highest normal form of the relation(s) shown in the exhibit?

a)

Second normal form

b)

First normal form

c)

Boyce-Codd normal form

d)

Third normal form

57.

Your database administrator has disallowed a group of users from making alterations to the Employees table in your corporate database. The users, known as
Group_2, previously had full privileges with the Employees table. Which of the following SQL statements properly removes any alteration privileges from Group_2?

a)

REVOKE INSERT, UPDATE, DELETE ON Employees FROM Group_2;

b)

REVOKE UPDATE FOR Employees FROM Group_2;

c)

REVOKE INSERT, UPDATE, DELETE ON Employees FOR Group_2;

d)

REVOKE UPDATE, DELETE FOR Employees FROM Group_2;

58.

Which type of dependency occurs when one attribute of a composite key is removed and the dependency still exists?

a)

1:1

b)

Transitive

c)

Functional

d)

Partial functional

59.

Consider the Project relation shown in the exhibit as well as the following SQL statement:

DELETE FROM Project -
WHERE Cust_Name = Acme;
Which of the following tables shows the Project relation after execution of this SQL statement?

a)

A

b)

B

c)

C

d)

D

60.

Consider the relations shown in the exhibit. Which of the following SQL statements would enter data from the Customers relation into the Atlanta_Customers relation?

a)

INSERT INTO Atlanta_Customers VALUES( SELECT * FROM Customer s WHERE Sales_Office = Atlanta

b)

INSERT INTO Atlanta_Customers SELECT * FROM Customers WHERE Sales_Office = Atlanta

c)

INSERT INTO Atlanta_Customers SELECT Cust_No, Cust_Name, Satisfaction_Rate, Sales_Rep_No FROM Customers WHERE Sales_Office = Atlanta

d)

INSERT INTO Atlanta_Customers SELECT Cust_No, Cust_Name, Sales_Office, Sales_Rep_No FROM Customers WHERE Sales_Office = Atlanta

61.

Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit.Which of the following SQL statements would create a set difference of the two relations with the widest variety of Structured Query Language dialects?

a)

SELECT * FROM
Dept1_Parts
EXCEPT(SELECT
PartJD FROM
Dept2_Parts);

b)

SELECT * FROM Dept1_Parts MINUS
(SELECT Part_ID
FROM Dept2_Parts);

c)

SELECT * FROM Dept1_Parts
DIFFERENCE
(SELECT Part_ID
FROM Dept2_Parts);

d)

SELECT * FROM Dept1_Parts WHERE
Part_ID NOT IN
(SELECT Part_ID FROM
Dept2_Parts);

62.

Consider the Information Engineering diagram shown in the exhibit. Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name, Location and Res_Name are all represented by variable-length strings with a maximum of 20 characters.
Which SQL statement best implements the RESIDENT relation shown in this diagram?

a)

CREATE TABLE RESIDENT (
R_ID INTEGER NULL PRIMARY KEY,
Room_NumFLOAT,
Res_NameVARCHAR,
Building_IDINTEGER NULL,
FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

b)

CREATE TABLE RESIDENT (
R_ID INTEGER NOT NULL PRIMARY KEY,
Room_NumBINARY,
Res_NameVARCHAR (20),
Building_IDINTEGER NOT NULL,
FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

c)

CREATE TABLE RESIDENT (
R_ID INTEGER NOT NULL PRIMARY KEY,
Room_NumINTEGER,
Res_NameVARCHAR (20),
Building_IDINTEGER NOT NULL);

d)

CREATE TABLE RESIDENT (
R_ID INTEGER NOT NULL PRIMARY KEY,
Room_NumINTEGER,
Res_NameVARCHAR (20),
Building_IDINTEGER NOT NULL,
FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID));

63.

Which of the following best describes the two-tier database architecture?

a)

The user accesses a database server using a terminal.

b)

The user interface, data-processing logic, database access and data validation functions are performed on a mainframe server.

c)

The user interface and data validation functions are performed by the client whereas the data- processing logic is performed on a server.

d)

The user interface and data-processing logic are performed by the client whereas the server handles database access and data validation functions.

64.

The exhibit shows a table called Recreation Relation that relates a unique student identification number and a sports activity with a fee for participating in that activity. The Student_ID and Activity columns in the table are used together as a composite key. Which statement about the relation is correct?

a)

Activity_Fee is a determinant of Activity.

b)

Activity_Fee is partially dependent on the key.

c)

The table contains a transitive dependency.

d)

Activity_Fee is a determinant of Activity and Student_ID.

65.

Consider the entity-relation (ER) diagram shown in the exhibit. When the logical database design phase is completed, which of the following is a valid DBDL description of the base relations for the ER diagram?

a)

STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL) Primary Key Student_Number
CLASS(
Class_Num: integer NOT NULL
Class_Name: integer NOT NULL)
Primary Key Class_Num

b)

STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL) Primary Key Student_Number
CLASS(
Class_Num: integer NOT NULL
Class_Name: integer NOT NULL)
Primary Key Class_Num
Foreign Key Class_Num References STUDENT

c)

STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL) Primary Key Student_Number
STU_CLASS(
Student_Number: integer NOT NULL
Class_Num: integer NOT NULL)
Primary Key Student_Number
CLASS(
Class_Num: integer NOT NULL
Class_Name: integer NOT NULL)
Primary Key Class_Num

d)

STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL) Primary Key Student_Number
STU_CLASS(
Student_Number: integer NOT NULL
Class_Num: integer NOT NULL)
Primary Key Student_Number, Class_Num
CLASS(
Class_Num: integer NOT NULL
Class_Name: integer NOT NULL)
Primary Key Class_Num

66.

What is the highest normal form of the relation(s) shown in the exhibit?

a)

Third normal form

b)

Second normal form

c)

No normal form

d)

First normal form

67.

Consider the entity-relationship (ER) diagram shown in the exhibit. Which type of relationship between the two entities is shown?

a)

A recursive relationship

b)

A many-to-many relationship

c)

A one-to-one relationship

d)

A one-to-many relationship

68.

Which of the following SQL statements would return all tuples that have course codes beginning with the letter M?

a)

SELECT * FROM
Registration WHERE
Course_Code = #

b)

SELECT * FROM
Registration WHERE
Course_Code LIKE _

c)

SELECT* FROM
Registration WHERE
Course_Code LIKE %

d)

SELECT * FROM
Registration WHERE
Course Code = %

69.

Consider the Information Engineering diagram shown in the exhibit for a building management company. Referential integrity must be maintained such that a building cannot be deleted when it has residents. Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name, Location and Res_Name are all represented by variable-length strings with a maximum of 20 characters. Which SQL statement best implements the relations shown in this diagram?

a)

CREATE TABLE BUILDING (
Building_ID INTEGER NOT NULL PRIMARY KEY,
Bldg_Name VARCHAR (20),
Location VARCHAR (20),
Room_Count INTEGER );
CREATE TABLE RESIDENT (
R_ID NOT NULL PRIMARY KEY,
Room_Num INTEGER,
Res_Name VARCHAR (20),
Building_ID INTEGER NOT NULL,
FOREIGN KEY Building_ID REFERENCES RESIDENT (Building_ID) ON DELETE NO CHECK);

b)

CREATE TABLE BUILDING (
Building_ID INTEGER NOT NULL PRIMARY KEY,
Bldg_Name VARCHAR (20),
Location VARCHAR (20),
Room_Count INTEGER );
CREATE TABLE RESIDENT (
R_ID NOT NULL PRIMARY KEY,
Room_Num INTEGER,
Res_Name VARCHAR (20),
Building_ID INTEGER NOT NULL,
FOREIGN KEY Building_ID REFERENCES BUILDING (Building_ID) ON DELETE NO CHECK
ON UPDATE CASCADE);

70.

Which subset of Structured Query Language (SQL) is used to create and name database entities?

a)

Data Query Language

b)

Database Entity Language

c)

Data Definition Language

d)

Data Manipulation Language

71.

Which statement best describes a candidate key?

a)

It is the primary key for an entity.

b)

It uniquely identifies every instance of an entity.

c)

One or more keys are joined together to form a composite key.

d)

One or more keys may be used to form a primary key.

72.

Which of the following is a characteristic of the three-tier database architecture?

a)

A Web browser is used as the application server.

b)

The application logic is centralized on a dedicated server.

c)

A thick client is used to perform business application logic functions locally.

d)

Database application logic and database functionality are integrated and reside on a common server.

73.

Which term describes an attribute or combination of attributes that uniquely identifies a row in a relation?

a)

Entity

b)

Domain

c)

Primary key

d)

Attribute group

74.

Consider the relation shown in the exhibit. Which of the following SQL statements would return a relation that excludes all customers with a Satisfaction_Rate of less than or equal to 80 unless the Sales_Office is located in Atlanta?

a)

SELECT * FROM Customers
WHERE Satisfaction_Rate > 80
OR Sales_Office = Atlanta

b)

SELECT * FROM Customers
WHERE Satisfaction_Rate <= 80
AND Sales_Office = Atlanta

c)

SELECT * FROM Customers
WHERE Satisfaction_Rate >= 80;

d)

SELECT * FROM Customers
WHERE Satisfaction_Rate >= 80
AND NOT Sales Office = Atlanta

75.

Which mechanism provides database users with controlled access to the database through the use of virtual tables?

(a)  

76.

Consider the relational database shown in the exhibit. What is the foreign key in this database?

a)

Employee.Dept_ID

b)

Dept_Mngr

c)

Dept_Name

d)

Department.Dept_ID

77.

Consider the Project relation shown in the exhibit as well as the following SQL statement:
Which of the following tables shows the Project relation after execution of this SQL statement?

a)

A

b)

B

c)

C

d)

D

78.

Which database architecture is best suited to implementation in the World Wide Web environment?

a)

Two-tier using thin client

b)

Three-tier using fat client

c)

Three-tier using thin client

d)

Centralized mainframe with terminal client

79.

Your enterprise must decide whether to use a database management system. Which of the following best describes the functionality of a DBMS?

a)

A DBMS provides the ability to control data access and limit the number of users at one time.

b)

A DBMS provides the ability to maintain databases while providing increased security for the database.

c)

A DBMS allows users to access the database while allowing the database administrator to define views particular to individual sets of users.

d)

A DBMS provides the ability to define, create and maintain databases while providing controlled access to databases.

80.

Consider the Orders relation shown in the exhibit. Which of the following SQL statements would return all complete tuples for order dates in 2002, arranged by amount from lowest to highest?

a)

SELECT *
FROM Orders
WHERE Order_Date LIKE _02
ORDER BY Amount;

b)

SELECT (Order_Date, Amount)
FROM Orders
WHERE Order_Date LIKE %02
ORDER BY Amount;

c)

SELECT *
FROM Orders
WHERE Order_Date LIKE 02
ORDER BY Order
No;

d)

SELECT *
FROM Orders
WHERE Order_Date LIKE %02
ORDER BY Amount;

81.

Which type of entity must reference another entity for its data to be meaningful?

(a)  

82.

Consider the Recreation relation shown in the exhibit. You need to apply a SQL statement to the Recreation relation that will return the following data:
Which SQL statement applied to the Recreation relation will return this data?

a)

SELECT Activity FROM Recreation;

b)

SELECT DISTINCT Activity FROM Recreation;

c)

SELECT Activity FROM Recreation
WHERE NOT LIKE Activity;

d)

SELECT Activity FROM Recreation
WHERE DISTINCT Activity;

83.

Which component in the three-tier database architecture handles the data-processing and business logic?

a)

Thin client

b)

Fat client

c)

Database server

d)

Application server

84.

In a relational database, which term describes a single table consisting of rows and columns?

a)

Entity

b)

Matrix

c)

Relation

d)

Data dictionary

85.

Which concurrency control method should be used only when conflicts between transactions rarely occur?

a)

Locking

b)

Time stamps

c)

Optimistic

d)

Serialization

86.

Which characteristic is an advantage of a database management system?

a)

Data files are owned and maintained by the users.

b)

Database administration is simplified.

c)

A standard method can be used to access the database.

d)

Data is decentralized.

87.

Consider the Stu_Act and Act_Fee tables shown in the exhibit.
Which relational algebraic operation would yield the Activity Relation table in the exhibit?

a)

Union

b)

Intersection

c)

Natural join

d)

Cartesian product

88.

A foreign key maps to a:

a)

prime key.

b)

indirect key.

c)

parent key.

d)

composite key.

89.

Which security technique limits access by unauthorized users to parts of an enterprise database?

(a)  

90.

Which of the following ACID properties requires that a transaction be executed in its entirety or not all?

a)

Durability

b)

Consistency

c)

Isolation

d)

Atomicity

91.

To create a view, what are the minimal privileges that a user must have for the relations used to make the view?

(a)  

92.

Which database security technique prevents invalid data from being entered into the database?

a)

File locking

b)

User authorization

c)

Parity checks

d)

Integrity controls

93.

Consider the relation shown in the exhibit. Which of the following SQL statements would properly add information for a new employee?

a)

INSERT INTO Employee VALUES(0005, Tim, Bogart, 03-15-77);

b)

INSERT INTOEmployee(Emp_ID, First_Name, Last_Name, Birth_Date) VALUES(0004, Tim, Bogart, 03-15-77);

c)

INSERT INTOEmployee(Emp_ID, First_Name, Last_Name, Birth_Date) VALUES(0005, Tim, Bogart, 03-05-77);

94.

Which statement accurately describes a characteristic of attributes?

a)

The ordering of attributes in a table is significant.

b)

An attribute contains values from multiple domains.

c)

An attribute name can be used only once per table.

d)

An attribute name can be used only once in a relational database system with multiple tables.

95.

Consider the following relation definition:
STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL) Primary Key Student_Number
HOUSING(
Housing_ID: integer NOT NULL
Student_Number: integer NOT NULL
Building: variable length character string length 25 NOT NULL) Primary Key Housing_ID
Foreign Key Student_Number References
STUDENT(Student_Number)
ON DELETE NO CHECK
ON UPDATE
Which integrity constraint is violated in this relation definition?

a)

Entity integrity

b)

Domain constraint

c)

Referential integrity

d)

Enterprise constraint

96.

A relation for a construction company is shown in the exhibit. Which of the following best defines the relationship between Cust_ID and Cust_Name?

a)

Cust_Name is the determinant.

b)

Cust_Name is transitively dependent on Cust_ID.

c)

Cust_ID is transitively dependent on Cust_Name.

d)

Cust_Name is functionally dependent on Cust_ID.

97.

Consider the relations shown in the exhibit. Due to restructuring, the sales department has been eliminated and the employees working in that department have been dismissed. All ID information is stored as integers. Which SQL statement would be used to return a relation with all information for the employees who have been dismissed?

a)

SELECT *
FROM Employee;

b)

SELECT ID,Last_Name
FROM Employee;
WHERE ID = 0004;

c)

SELECT *
FROM Employee
WHERE Dept_ID = 022;

98.

Which term best defines a database system in which data records are stored in one or more files with no structured relationship?

a)

Flat-file database

b)

Relational database

c)

Distributed database

d)

Object-oriented database

99.

Which of the following describes two desirable characteristics of a primary key?

a)

A primary key should be a value that may be null and may change over time.

b)

A primary key should be a value that is not null and will never change.

c)

A primary key should consist of meaningful data and a value that can be changed if needed.

d)

A primary key should not consist of meaningful data and a value that can be changed if needed.

100.

Which relational algebraic operation is used to select specific columns (attributes) from a relation?

a)

Union

b)

Difference

c)

Projection

d)

Intersection

101.

Consider the Information Engineering diagram in the exhibit showing a conceptual data model of the relations BUILDING and RESIDENT. What is the next step in refining the data model?

a)

Create intermediate entities.

b)

Create a logical data model.

c)

Resolve many-to-many relationships.

d)

Identify and resolve complex relationships.

102.

Which of the following best describes the information contained in the data dictionary (or system catalog)?

(a)  

103.

Consider the following relation definitions:
STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 )
Primary Key Student_Number
HOUSING(
Housing_ID: integer NOT NULL
Student_Number: integer NOT NULL
Building: variable length character string length 25 ) Primary Key Housing_ID
Foreign Key Student_Number References STUDENT(Student_Number) ON DELETE NO ACTION
ON UPDATE CASCADE
What are the referential constraints for the relations defined in these relation definitions?

a)

There is no relationship between changes inSTUDENT(Student_Number) and HOUSING(Student_Number).

b)

WhenSTUDENT(Student_Number) is changed or deleted, this modification or deletion will automatically be reflected in HOUSING (Student_Number).

c)

Modifications toHOUSING(Student_Number) are automatically reflected in changes to STUDENT(Student_Number), but deletions are not permitted.

d)

Modifications toSTUDENT(Student_Number) are automatically reflected in changes to HOUSING(Student_Number). For a deletion to occur from STUDENT(Student_Number), it must first occur in HOUSING(Student_Number).

104.

What is the highest normal form of the relation(s) shown in the exhibit?

a)

Boyce-Codd normal form

b)

First normal form

c)

Second normal form

d)

Third normal form

105.

Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit. Which of the following SQL statements would create an intersection of the two relations with the widest variety of Structured Query Language dialects?

a)

SELECT
FROM Dept1_Parts
AND
(SELECT

FROM Dept2_Parts);

b)

SELECT
FROM Dept1_Parts
INTERSECTION
(SELECT

FROM Dept2_Parts);

c)

SELECT *
FROM Dept1_Parts
WHERE Dept1_Parts.Part_ID = Dept2_Parts.Part_ID;

106.

Your enterprise has created a database and database application. The testing phase for the project has started. Which of the following best describes white-box testing of the projects software?

a)

The database designer tests the software because he or she is able to make necessary changes to the underlying code for the software.

b)

A user who has no knowledge of thesoftwares underlying code tests the software.

c)

Someone other than the database designer tests the software. This person has no access to the underlying code and attempts to use the software only in ways not considered by the software designers.

d)

A person tests the software and submits suggestions to the software’s underlying code. This person is someone other than the database designer, but has access to thesoftwares underlying code.

107.

Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit. Which of the following SQL statements would create a set difference of the two relations with the widest variety of
Structured Query Language dialects?

a)

SELECT *
FROM Dept1_Parts
EXCEPT
(SELECT Part_ID
FROM Dept2_Parts);

b)

SELECT *
FROM Dept1_Parts
MINUS
(SELECT Part_ID
FROM Dept2_Parts);

c)

SELECT *
FROM Dept1_Parts
DIFFERENCE
(SELECT Part_ID
FROM Dept2_Parts);

108.

Which term describes the rejoining of relations that have been decomposed?

a)

Normalization

b)

Denormalization

c)

Referential integrity

d)

Domain constraints

109.

Which subset of Structured Query Language (SQL) is used to perform operations such as data retrieval or deletion on the data contained in a database?

a)

Data Control Language

b)

Data Definition Language

c)

Data Formatting Language

d)

Data Manipulation Language

110.

Consider the entity-relationship (ER) diagram shown in the exhibit. Which type of relationship between the two entities is shown?

a)

m:m

b)

m:n

c)

1:1

d)

1:n

111.

Which of the following best describes the ON DELETE CASCADE referential integrity constraint?

a)

If a parent key is deleted, any child keys referenced by the parent key are automatically deleted.

b)

If any child key references a parent key, the record containing the parent key cannot be deleted.

c)

If a parent key isdeleted, all child keys are automatically set to a specified value.

d)

If a parent key is deleted, no test is made for referential integrity.

112.

The exhibit shows a table called Student Relation that tracks all information related to a students courses, professors and sites. What would be the consequence of removing all records for a student with the ID 1311?

a)

Only an update anomaly would occur.

b)

An insertion anomaly would occur.

c)

A deletion anomaly would occur.

d)

An update anomaly and a deletion anomaly would occur.

113.

The database manager wants to give Rubio and Doe the ability to modify the Project Relation shown in the exhibit. A temporary employee named Temp needs to access the data in the database to generate reports. Which group of SQL statements will perform this task?

a)

GRANT UPDATE ON Project TO Rubio, Doe;
GRANT SELECT ON Project TO Temp;

b)

GRANT ALL PRIVILEGES ON Project TO Rubio, Doe;
GRANT UPDATE ON Project TO Temp;

c)

GRANT SELECT ON Project
WHERE Manager = ‘Rubio’;
GRANT SELECT ON Project
WHERE Manager = ‘Doe’;

d)

GRANT UPDATE ON Project
WHERE Manager = ‘Rubio’;
GRANT UPDATE ON Project
WHERE Manager = ‘Doe’;
GRANT SELECT ON Project TO Temp;

114.
Question Image

Consider the symbols shown in the exhibit. Which of the following correctly identifies these symbols when used in an entity-relationship (ER) diagram?

a)

relationship

1.

Dimande

b)

Entity

2.

Square

c)

attribute

3.

Circle

115.

Consider the Orders relation shown in the exhibit. Which of the following SQL statements would replace the value in the Sales_Rep_No column with 110 everywhere that Sales_Rep_No 108 is listed?

a)

UPDATESales_Rep_No
IN Orders
SET(Sales_Rep_No = 110
WHERE Sales_Rep_No = 108);

b)

UPDATE Orders
SET Sales_Rep_No = 110
WHERE Sales_Rep_No = 108;

c)

UPDATE Orders
SET Sales_Rep_No = 110;

d)

UPDATE Orders
WHERE Sales_Rep_No = 108
SET Sales_Rep_No = 110;

116.

A theta-join can be viewed as:

a)

the intersection of two relations.

b)

a Cartesian product of two relations.

c)

a restricted Cartesian product of two relations.

d)

the Cartesian product of two union-compatible relations.

117.

In which situation would the DBMS use a serial schedule to execute the transactions?

a)

Concurrent transactions read data from the same data structure.

b)

Concurrent transactions write data to different data structures.

c)

Concurrent transactions read or write the same data structure.

d)

Concurrent transactions read or write from different data structures.

118.

Which of the following definitions applies to all types of databases?

a)

Data that is stored as tables

b)

Software that manipulates data

c)

Data that is stored in a structured manner

d)

Data recordsthat are stored sequentially in a file

119.

What is the highest normal form of the relation(s) shown in the exhibit?

a)

No normal form

b)

Second normal form

c)

First normal form

d)

Third normal form

120.

Which term describes the management of simultaneous transactions to prevent conflicts?

a)

Parallelism

b)

Serialization

c)

Database control

d)

Concurrency control

121.

Consider the following SQL statement and the Orders relation shown in the exhibit:
How many records should be returned?

a)

Two records

b)

Three records

c)

Four records

d)

Five records