0% found this document useful (0 votes)
113 views

D426 Practice Test With Answer Key

This document contains a practice test for data management foundations with 45 multiple choice questions covering topics like data modeling, database design, normalization, and SQL. The test covers concepts like entities, attributes, relationships, keys, normalization forms, and SQL commands.

Uploaded by

Josh Gebbeken
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views

D426 Practice Test With Answer Key

This document contains a practice test for data management foundations with 45 multiple choice questions covering topics like data modeling, database design, normalization, and SQL. The test covers concepts like entities, attributes, relationships, keys, normalization forms, and SQL commands.

Uploaded by

Josh Gebbeken
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 22

Data Management Foundations Practice Test

Multiple Choice
Identify the choice that best completes the statement or answers the question.

____ 1. A record consists of a ____.


a. character
b. collection of related records
c. set of one or more fields
d. group of files

____ 2. A DBMS performs several important functions that guarantee the integrity and consistency of the data in
the database. Which of the following is NOT one of those functions?
a. Data integrity management
b. Data storage management
c. Data reports
d. Security management

____ 3. Which item is unstructured data.


a. A record representing one student
b. A video
c. A table that holds student data
d. A relational database that hold course registration data.

____ 4. Data is/are:


a. information
b. raw facts
c. processed information
d. a DBMS

____ 5.

Which classification is correct for the box marked “Registration” in the given E-R Diagram?

a. Intersection data
b. Modality data
c. Cardinality data
d. Student data

____ 6.

Which type of relationship exists between Student and Course


a. One-to-many binary
b. Many-to-many binary
c. One-to-many unary
d. Many-to-many unary

____ 7.

What is the E-R Diagram about an online pet food vendor showing?

a. An Invoice Line can include many Items


b. An item can only be included in one Invoice Line
c. One Invoice Line must include a minimum of one and a maximum of one Item.
d. The relationship between Item and Invoice Line is many-to-many.

____ 8. A pet owner can have many pets; a specific pet is linked to one pet owner.

Which kind of binary relationship is described in this example?


a. One-to-one
b. One-to-many
c. Many-to-many
d. Associative

____ 9. Database models were developed to ____.


a. model real-world events or conditions
b. deposit data within a single file
c. keep data within multiple data repositories
d. allow DBMSs to maintain loose control over the database activities

____ 10.

What is the correct way to read the modality on the right side of the association?

a. A maximum of one activity


b. A maximum of zero activities
c. A minimum of zero activities
d. A maximum of many activities

____ 11.
What is the modality of Volunteer?

a. Two or more
b. Two
c. Dependent on registration date
d. At least one

____ 12. What type of relationship is expressed with the phrase “A Painter paints one or more Paintings”?
a. 1:M
b. 1:1
c. M:1
d. M:N

____ 13. The entity integrity rule requires that ____.


a. all primary key entries are unique
b. a part of the key may be null
c. foreign key values do not reference primary key values
d. duplicate object values are allowed

____ 14. What does the ‘refer’ in referential integrity mean


a. The relationships between entities and attributes, also called referrals
b. Reference points that databases place in each record during backups
c. A foreign key in a table must refer to a valid primary key in another table.
d. you delete a row in one table whose primary key does not have a matching foreign key
value in another table

____ 15. A table is perceived as a ____.


a. flat structure
b. two-dimensional structure
c. linked structure
d. graph

____ 16. Another word for the term “relation” is ____.


a. datafile
b. data index
c. table
d. data query

____ 17. DISTINT filters the results to remove duplicates. ORDER BY ____.
a. does the same thing.
b. alters the order of the rows in a table.
c. modifies the presentation by changing the order of the result set.
d. removes duplicates in the table.

____ 18. A primary key ____.


a. is a minimal superkey
b. is always the first field in each table
c. must be numeric
d. must be unique

____ 19. A table can be logically connected to another table by defining a ____.
a. hyperlink
b. common attribute
c. primary key
d. logic key

____ 20. A relational operator that allows for the combination of information from two or more tables is known as
the ____ operator.
a. SELECT
b. PROJECT
c. JOIN
d. DIFFERENCE

____ 21. Which of the following statements concerning the primary key is true?
a. All primary key entries are unique.
b. The primary key may be null.
c. The primary key is not required for all tables.
d. The primary key data do not have to be unique.

____ 22. We can describe a link by observing that ____.


a. a primary key of one table appears again as a primary key in a related table
b. a foreign key of one table appears again as a foreign key in a related table
c. a primary key of one table appears again as a foreign key in a related table
d. a foreign key of one table appears again as a surrogate key in a related table

____ 23. When designing a new database, it is a good idea to ____


a. minimize data redundancy
b. include redundant fields
c. include a common field in all tables
d. use composite keys

____ 24. An attribute (or combination of attributes) that uniquely identifies each entity in a table is called a ____.
a. superkey
b. foreign key
c. master key
d. secondary key
____ 25. A foreign key must ____.
a. be numeric
b. be unique
c. be defined in all tables within the database
d. match the value of a primary key in a related table

____ 26. The ERD is used to graphically represent the ____ database model.
a. condensed
b. physical
c. logical
d. conceptual

____ 27. A derived attribute ____.


a. must be stored physically within the database
b. need not be physically stored within the database
c. has many values
d. must be based on the value of three or more attributes

____ 28. A relationship is an association between ____.


a. objects
b. entities
c. databases
d. fields

____ 29. A ____ key is a key that consists of more than one attribute.
a. primary
b. foreign
c. composite
d. domain

____ 30. A ____ attribute is one that cannot be subdivided.


a. composite
b. atomic
c. binary-valued
d. multivalued

____ 31. If an entity can exist apart from one or more related entities, it is said to be ____-independent.
a. existence
b. relationship
c. business
d. weak

____ 32. A ____ relationship exists when three entities are associated.
a. unary
b. binary
c. ternary
d. weak

____ 33. The set of possible values for an attribute is a ____.


a. domain
b. range
c. set
d. key

____ 34. Which attribute(s) make up the primary key in the table definition:
CLASS (CRS_CODE, CLASS_SECTION, CLASS_TIME, CLASS_ROOM, PROF_NUM)
a. CRS_CODE
b. CLASS_SECTION
c. CRS_CODE and CLASS_SECTION
d. There is no primary key

____ 35. A table that has all key attributes defined, has no repeating groups, and all its attributes are dependent on
the primary key, is said to be in ____.
a. 1NF
b. 2NF
c. 3NF
d. 4NF

____ 36. A table that is in 2NF and contains no transitive dependencies is said to be in ____.
a. 1NF
b. 2NF
c. 3NF
d. 4NF

____ 37. Data redundancy produces ____.


a. slower lookups
b. robust design
c. efficient storage use
d. data integrity problems

____ 38. Normalization works through a series of normal ____.


a. schemas
b. entities
c. databases
d. forms

____ 39. Dependencies based on only a part of a composite primary key are called ____ dependencies.
a. primary
b. partial
c. incomplete
d. composite

____ 40. Given the table EMP_PROJ (PROJ_NUM, EMP_NUM, PROJ_NAME, EMP_NAME, PROJ_START,
HOURS), which of the following is a partial dependency?
a. PROJ_NUM --> PROJ_NAME
b. PROJ_NAME --> HOURS
c. PROJ_NUM, EMP_NUM --> HOURS
d. PROJ_NUM, EMP_NUM --> PROJ_NAME
____ 41. A relation is not in 1NF if:
a. it has multiple candidate keys
b. all of the key attributes are defined
c. there are repeating groups in the table
d. all attributes are dependent on the primary key

____ 42. The SQL command that lets you insert data into a table, one row at a time, is ____.
a. INSERT
b. SELECT
c. COMMIT
d. UPDATE

____ 43. The SQL command that enables you to make changes in the data is ____.
a. INSERT
b. SELECT
c. COMMIT
d. UPDATE

____ 44. To list all the contents of the PRODUCT table, you would use ____.
a. LIST * FROM PRODUCT;
b. SELECT * FROM PRODUCT;
c. DISPLAY * FROM PRODUCT;
d. SELECT ALL FROM PRODUCT;

____ 45. Which command would you use when making corrections to the PRODUCT table?
a. CHANGE PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
b. ROLLBACK PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
c. EDIT PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
d. UPDATE PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
____ 46. Which command would be used to delete the table row where the P_Code = '2238/QPD'?
a. DELETE FROM PRODUCT
WHERE P_CODE = '2238/QPD';
b. REMOVE FROM PRODUCT
WHERE P_CODE = '2238/QPD';
c. ERASE FROM PRODUCT
WHERE P_CODE = '2238/QPD';
d. ROLLBACK FROM PRODUCT
WHERE P_CODE = '2238/QPD';

____ 47. Which command is used to select partial table contents?


a. SELECT <column(s)>
FROM <Table name>
WHERE <Item>;
b. LIST <column(s)>
FROM <Table name>
WHERE <Conditions>;
c. SELECT <column(s)>
FROM <Table name>
WHERE <Conditions>;
d. LIST<column(s)>
FROM <Table name>
WHERE <Item>;

____ 48. Which query will output the table contents when the value of V_CODE is less than or equal to 21344?
a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE <> 21344;
b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE <=21344;
c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE => 21344;
d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344;

____ 49. Which query will list all the rows in which the inventory stock dates occur on or after January 20, 2006?
a. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE
FROM PRODUCT
WHERE P_INDICATE >= '01/20/2006'
b. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE
FROM PRODUCT
WHERE P_INDICATE >= #01/20/2004#

c. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE


FROM PRODUCT
WHERE P_INDICATE >= '20-JAN-2004'

d. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE


FROM PRODUCT
WHERE P_INDICATE >= {01-20-2004}

____ 50. What is the SQL syntax requirement to list the table contents for either V_CODE = 21344 or V_CODE =
24288?
a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344
OR V_CODE <= 24288
b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344
OR V_CODE => 24288
c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344
OR V_CODE > 24288
d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344
OR V_CODE = 24288

____ 51. What is the command to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the
V_NAME, V_AREACODE, V_PHONE, and V_CONTACT fields from the VENDOR table where the
value of V_CODE match?
a. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
b. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
c. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
d. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE;

____ 52. SQL allows the use of special operators in conjunction with the WHERE clause. A special operator used
to check for similar character strings is ____.
a. BETWEEN
b. IS NULL
c. LIKE
d. IN

____ 53. A table can be deleted from the database by using the ____ command.
a. DROP
b. DELETE
c. MODIFY
d. ERASE

____ 54. UPDATE tablename


*****
[WHERE conditionlist];
What command replaces the ***** in the above statement?
a. SET columnname = expression
b. columnname = expression
c. expression = columnname
d. LET columnname = expression

____ 55. A ____ join returns rows with matching values and includes all rows from both tables (T1 and T2) with
unmatched values.
a. natural
b. cross
c. full outer
d. left outer

____ 56. During which step in the extract, transform, load (ETL) process are raw data sets aggregated?
a. Transformation
b. Extraction
c. Loading
d. Denormalization

____ 57. Which is an important issue associated with the loading component of extract, transform, load (ETL)?
a. Mapping keys from one system to another
b. Monitor refreshing volume and frequency
c. Determining the content of the data
d. Denormalizing and renormalizing data

58.
A database includes the table shown above in the exhibit. Each teacher is associated with exactly one campus. The
address in the table is the address for the campus where the teacher teaches.
What change would you need to make to normalize the database to the third normal form (3NF)?

a) Combine the FirstName and LastName columns into a single column.


b) Combine the Campus, Address, City, State, Country, and PostalCode columns into a single column.
c) Create a separate table for campus address information. Use the Campus as the primary key. Add a
TeacherID column to the table and relate it to the Teacher ID column in the Teachers table.
d) Create a separate table for campus address information. Use Campus as the primary key for the
table. Create a foreign key in the Teachers table that relates teacher to the campus.

59.

Which statement will remove all rows from the Materials table that have a Status value of
‘Obsolete’ but do not have a value for the VendorID column?

a) DELETE Materials
WHERE Status = ‘Obsolete’ OR VendorID IS NULL
b) DELETE
FROM Materials
WHERE Status = ‘Obsolete’ AND VendorID IS NULL
c) DELETE MaterialID, Description, Status, VendorID
FROM Materials
WHERE Status = ‘Obsolete’ AND VendorID IS NULL
d) DELETE FROM Materials
WHERE Status = ‘Obsolete’
WHERE VendorID IS NULL

60.

The TestScores table is shown in the exhibit and has these characteristics:

Each student has a unique StudentID that references the Students table.
A specific test can be taken more than once.
Each instructor has a unique InstructorID that references the Instructors table
Each student may take multiple tests on the same date.
Each student may take tests on multiple dates.

What column or columns should you use for the primary key?
a) StudentID, Date
b) StudentID, Test, Date, InstructorID
c) StudentID, Test, and Date
d) Test

61.

You are creating a relational database to store information about instructors and the courses that
each instructor teaches. Each course is taught by a single instructor.

You have created an Instructor table and a Course table as shown above. You need to create a
relationship between the Instructor table and the Course table. You need to keep duplicate data to a
minimum. What should you do?

a) Create a new column in the Instructor table.


b) Create new columns in the Instructors table for each course taught.
c) Create a new table that includes two columns.
d) Create a new column in the Course table

62. Which of the following is structured data?

a) Images
b) Email Attachments
c) Records in a database
d) Audio/Video
63. Which kind of relationship does the diagram below depict?

AGENT
Agents at the NWREA may be assigned as a
AgentID
mentor to zero or more other agents.
LastName However, each agent being mentored is
FirstName mentored by only one NWREA agent.
DateOfHire
OfficePhoneNumber

a) Unary one-to-many
b) Binary many-to-many
c) Unary many-to-many
d) Binary one-to-many

64. Which kind of relationship does the diagram below depict?

AGENT
AgentID Agents at the NWREA are assigned as a men-
tor to one other agent. Each NWREA mentor
LastName can only work with one agent at a time. Fur-
FirstName ther, each agent is only mentored by one PN-
DateOfHire REA agent. However, while being mentored is
OfficePhoneNumber required, being a mentor is not.

a) Unary one-to-many
b) Binary many-to-many
c) Unary one-to-one
d) Binary one-to-many

65.

What is the modality of appointment?

a) At least one
b) Dependent on the quantity
c) Two
d) Two or more

66.

What form is this table in?

Registration Registration Student Course 1 Course 2 Course 3 Course 4


ID Date ID

215 10/1/16 101 C175 C170 C192 C200

a) Unnormalized
b) First normal form
c) Second normal form
d) Third normal form

67.

What form is this table in?

a) Unnormalized
b) First normal form
c) Second normal form
d) Third normal form

68. What form is this table in?

a) Unnormalized
b) First normal form
c) Second normal form
d) Third normal form

69. What form is this table in?

a) Unnormalized
b) First normal form
c) Second normal form
d) Third normal form

Answer Key
1. C
2. C
3. B
4. B
5. A
6. B
7. C
8. B
9. A
10. C
11. D
12. A
13. A
14. C
15. B
16. C
17. C
18. D
19. B
20. C
21. A
22. C
23. A
24. A
25. D
26. D
27. B
28. B
29. C
30. B
31. A
32. C
33. A
34. C
35. A
36. C
37. D
38. D
39. B
40. A
41. C
42. A
43. D
44. B
45. D
46. A
47. C
48. B
49. A
50. D
51. B
52. C
53. A
54. A
55. C
56. A
During the transformation step, a series of rules or functions is applied to the extracted data and can involve
transformation such as data summations, data encoding, data merging, data splitting, data calculations, and
create of surrogate keys.

57. B
The loading component of ETL is centered on moving the transformed data into the data warehouse. The
critical issues include the following:
→Target dependencies, such as where and on how many machines the repository lives, and the
specifics of loading data into that platform.

→Refresh volume and frequency, such as whether the data warehouse is to be loaded on an incre-
mental basis, whether data is forwarded to the repository as a result of triggered transaction
events, or whether all the data is periodically loaded into the warehouse in the form of a full re-
fresh.

58. D

TeacherID Campus (PK)


FirstName Address
Campus (FK) City

State

County

Postal Code

59. B
60. C
61. D
62. C

63. A
64. C
65. A

66. A
The table has not been normalized at all (unnormalized). We know this because there is a repeating field (Course 1,
Course 2, Course 3,…)

Registration Registration Student Course Course 2 Course 3 Course 4


ID Date ID 1

215 10/1/16 101 C175 C170 C192 C200

67. A
You can tell that this table has not been normalized at all because there are repeating groups and there is a
multi-
valued field.

Definition of 1NF: Each table has a primary key and there are no repeating groups or multi-valued fields.

Multi-valued field Repeating Group

68. C

The table is in 2NF. There is a transitive dependency on Coordinator ID. This must be resolved in order for the
table to be in 3NF.
69. B
This table is still in 1NF, because of the existence of partial dependencies. Item Name and Item Price are partially
dependent on Item Number. Date, Patron Number, and Last Name are dependent on Invoice Number.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy