Docsity

WGU C170 Data Management Applications Practice Exam SQL, Normalization & Database Design, Exams of Nursing

Toggle sidebar
bg1
WGU C170 Data Management Applications Practice Exam · 300 Questions Page 1
WGU C170 Data Management –
Applications Practice Exam
SQL, Normalization & Database Design Review: 300 Questions with Answers
& Detailed Rationales
300
Practice Questions
12
Content Domains
Full
Answer Rationales
This is an independent study resource with original practice questions. It is not affiliated with or endorsed by
Western Governors University (WGU), and it does not contain actual assessment questions. SQL examples use
MySQL syntax unless otherwise noted.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download WGU C170 Data Management Applications Practice Exam SQL, Normalization & Database Design and more Exams Nursing in PDF only on Docsity!

WGU C170 Data Management –

Applications Practice Exam

SQL, Normalization & Database Design Review: 300 Questions with Answers

& Detailed Rationales

Practice Questions

Content Domains

Full Answer Rationales

This is an independent study resource with original practice questions. It is not affiliated with or endorsed by Western Governors University (WGU), and it does not contain actual assessment questions. SQL examples use MySQL syntax unless otherwise noted.

Table of Contents

  • About WGU C170
  • How to Use This Practice Exam
  • Part 1: Database Concepts & the Relational Model (Q1–25)
  • Part 2: Data Modeling & ER Diagrams (Q26–50)
  • Part 3: Normalization (Q51–75)
  • Part 4: SQL DDL: Creating & Altering Tables (Q76–100)
  • Part 5: SQL DML: Insert, Update & Delete (Q101–125)
  • Part 6: SELECT Queries, Filtering & Sorting (Q126–150)
  • Part 7: Aggregate Functions, GROUP BY & HAVING (Q151–175)
  • Part 8: Joins (Q176–200)
  • Part 9: Subqueries, Set Operations & Views (Q201–225)
  • Part 10: Indexes, Performance & Physical Design (Q226–250)
  • Part 11: Security, Transactions, Backup & Administration (Q251–275)
  • Part 12: Applied SQL Scenarios (Q276–300)

How to Use This Practice Exam

Work through one part at a time under timed conditions. The correct answer is highlighted in green right after each question, followed by its rationale. To test yourself, cover the green answer box with a sheet of paper, choose your answer, then reveal it.

Record your score for each part in the Score Tracker below. Any area under 80% is a priority for review — study that topic, then retake those questions.

Read the rationale for every question, including those you got right. Rationales explain the reasoning the real exam tests.

Test-Taking Tips

  • Remember the clause order: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT.
  • WHERE filters rows; HAVING filters groups. Aggregates never go in WHERE.
  • Use IS NULL, not = NULL.
  • LEFT JOIN with WHERE right_table.key IS NULL finds rows with no match.
  • For normalization, ask: is every value atomic (1NF), does everything depend on the whole key (2NF), and nothing but the key (3NF)?

Score Tracker

Domain Questions Your Score

Database Concepts & the Relational Model 1–25 ____ / 25

Data Modeling & ER Diagrams 26–50 ____ / 25

Normalization 51–75 ____ / 25

SQL DDL: Creating & Altering Tables 76–100 ____ / 25

SQL DML: Insert, Update & Delete 101–125 ____ / 25

SELECT Queries, Filtering & Sorting 126–150 ____ / 25

Aggregate Functions, GROUP BY & HAVING 151–175 ____ / 25

Joins 176–200 ____ / 25

Subqueries, Set Operations & Views 201–225 ____ / 25

Indexes, Performance & Physical Design 226–250 ____ / 25

Security, Transactions, Backup & Administration 251–275 ____ / 25

Applied SQL Scenarios 276–300 ____ / 25

Part 1: Database Concepts & the Relational Model

1. A relational database organizes data into:

A. Linked lists B. Tables made up of rows and columns ✔ C. Hierarchical trees only D. Unstructured text files Answer: B Rationale: Tables are also called relations.

2. In the relational model, a row is also called a:

A. Domain B. Schema C. Attribute D. Tuple ✔ Answer: D Rationale: A column is an attribute.

3. In the relational model, a column is also called an:

A. Cardinality B. Record set C. Attribute ✔ D. Tuple Answer: C Rationale: Each attribute has a domain of allowed values.

4. A primary key must be:

A. Duplicated across rows B. A text field only C. Unique and not null ✔ D. Nullable Answer: C Rationale: It uniquely identifies each row.

5. A foreign key is:

A. A column that references the primary key of another (or the same) table ✔ B. A column with unique values only C. Always the first column D. A key used to encrypt data Answer: A Rationale: Enforces referential integrity.

11. SQL stands for:

A. Structured Query Language ✔ B. Simple Query Logic C. Sequential Query List D. System Query Language Answer: A Rationale: The standard language for relational databases.

12. Data Definition Language (DDL) commands include:

A. GRANT, REVOKE B. CREATE, ALTER, and DROP ✔ C. SELECT, INSERT, UPDATE D. COMMIT, ROLLBACK Answer: B Rationale: DDL defines database structures.

13. Data Manipulation Language (DML) commands include:

A. CREATE, ALTER, DROP B. TRUNCATE only C. GRANT, REVOKE D. INSERT, UPDATE, and DELETE ✔ Answer: D Rationale: SELECT is often grouped with DML or as DQL.

14. Data Control Language (DCL) commands include:

A. INSERT and DELETE B. COMMIT and ROLLBACK C. GRANT and REVOKE ✔ D. CREATE and DROP Answer: C Rationale: Manage permissions.

15. Transaction Control Language (TCL) commands include:

A. CREATE and ALTER B. GRANT and REVOKE C. COMMIT and ROLLBACK ✔ D. SELECT and JOIN Answer: C Rationale: Manage transactions.

16. A NULL value represents:

A. An empty string always B. Missing or unknown data ✔ C. A space character D. Zero Answer: B Rationale: NULL is not equal to anything, including NULL.

17. A database schema is:

A. The data stored in tables B. The structure or blueprint of the database ✔ C. A single query D. A backup file Answer: B Rationale: Includes tables, columns, and relationships.

18. Data independence means:

A. Each user owns their data B. Data is not shared C. Data is stored in separate files D. Changes in storage or structure do not require changes to applications ✔ Answer: D Rationale: Physical and logical data independence.

19. Metadata is:

A. Deleted data B. Encrypted data C. Data about data, such as column names and data types ✔ D. Large binary data Answer: C Rationale: Stored in the data dictionary.

20. Cardinality of a table refers to:

A. The number of rows ✔ B. The number of keys C. The number of indexes D. The number of columns Answer: A Rationale: Degree refers to the number of columns.

Part 2: Data Modeling & ER Diagrams

26. An entity in an ER diagram represents:

A. A SQL command B. A person, place, thing, or concept about which data is stored ✔ C. A relationship only D. A single value Answer: B Rationale: Entities become tables.

27. An attribute in an ER diagram is:

A. A table B. A relationship C. A database D. A property or characteristic of an entity ✔ Answer: D Rationale: Attributes become columns.

28. A one-to-many (1:M) relationship means:

A. No relationship exists B. One instance of entity A relates to many instances of entity B ✔ C. Each A relates to exactly one B D. Many A relate to many B Answer: B Rationale: Example: one customer places many orders.

29. A many-to-many (M:N) relationship is implemented in a relational database by:

A. Merging the tables B. Using a view C. Creating an associative (junction) table ✔ D. Adding a foreign key to both tables Answer: C Rationale: The junction table holds foreign keys to both.

30. In a 1:M relationship, the foreign key is placed in:

A. The table on the 'many' side ✔ B. Both tables C. The table on the 'one' side D. Neither table Answer: A Rationale: Orders table holds CustomerID.

31. In crow's foot notation, the crow's foot symbol indicates:

A. Zero only B. Many ✔ C. One D. Optional only Answer: B Rationale: A single line indicates one.

32. A circle in crow's foot notation indicates:

A. Many B. Optionality (zero) ✔ C. Primary key D. Mandatory Answer: B Rationale: A bar indicates mandatory (one).

33. Minimum cardinality refers to:

A. The number of tables B. Whether participation in a relationship is optional or mandatory ✔ C. The maximum number of rows D. The number of columns Answer: B Rationale: Zero means optional; one means mandatory.

34. A weak entity:

A. Cannot be stored B. Has its own complete primary key C. Has no attributes D. Depends on another entity for its identification ✔ Answer: D Rationale: Example: dependent of an employee.

35. A recursive (unary) relationship occurs when:

A. Two entities share a key B. An entity is related to itself ✔ C. Three entities are related D. No relationships exist Answer: B Rationale: Example: employee manages employee.

41. A multivalued attribute (such as multiple phone numbers) is usually implemented by:

A. Creating a separate table ✔ B. Storing comma-separated values in one column C. Using a view D. Ignoring extra values Answer: A Rationale: Supports first normal form.

42. A composite attribute is:

A. A null value B. An attribute that can be divided into smaller parts ✔ C. A primary key D. A derived value Answer: B Rationale: Example: Address into Street, City, State, ZIP.

43. A one-to-one relationship can be implemented by:

A. No implementation B. Merging all columns into a view C. A junction table always D. Placing a unique foreign key in one of the tables ✔ Answer: D Rationale: Example: employee and parking space.

44. Business rules in data modeling:

A. Only affect formatting B. Are SQL syntax rules C. Describe policies that determine relationships and constraints ✔ D. Are unrelated to design Answer: C Rationale: Example: each order must have one customer.

45. Requirements gathering for database design involves:

A. Deleting old data B. Interviewing users and reviewing documents to understand data needs ✔ C. Buying hardware D. Writing SQL immediately Answer: B Rationale: Comes before modeling.

46. An associative entity in a M:N relationship may also include:

A. Only one foreign key B. A view C. No attributes D. Its own attributes, such as quantity or date ✔ Answer: D Rationale: Example: OrderLine with Quantity.

47. Which relationship is an example of many-to-many?

A. Department and manager (one manager) B. Person and Social Security number C. Students and courses ✔ D. Customer and orders Answer: C Rationale: Students take many courses; courses have many students.

48. An identifying relationship:

A. Connects a weak entity to its owner entity ✔ B. Is a recursive relationship C. Is never drawn D. Connects two strong entities Answer: A Rationale: The weak entity's key includes the owner's key.

49. A ternary relationship involves:

A. Three entities ✔ B. Four entities C. Two entities D. One entity Answer: A Rationale: Degree of a relationship.

50. Database design typically proceeds in which order?

A. Requirements, conceptual, logical, physical ✔ B. Conceptual, physical, requirements C. Physical, logical, conceptual, requirements D. Logical, requirements, physical Answer: A Rationale: From abstract to concrete.

56. A transitive dependency exists when:

A. The key is composite B. An attribute depends on the whole key C. There are repeating groups D. A non-key attribute depends on another non-key attribute ✔ Answer: D Rationale: Removed in 3NF.

57. In a table Orders(OrderID, ProductID, ProductName, Quantity) with key (OrderID, ProductID), ProductName creates:

A. No dependency B. A partial dependency ✔ C. A multivalued dependency D. A transitive dependency Answer: B Rationale: ProductName depends only on ProductID.

58. In Employee(EmpID, DeptID, DeptName), DeptName creates:

A. No dependency B. A transitive dependency ✔ C. A key D. A partial dependency Answer: B Rationale: EmpID → DeptID → DeptName.

59. An update anomaly occurs when:

A. A query runs quickly B. A table is normalized C. Data is encrypted D. Changing a value requires updating multiple rows, risking inconsistency ✔ Answer: D Rationale: Caused by redundancy.

60. An insertion anomaly occurs when:

A. A transaction commits B. Data cannot be added without unrelated data ✔ C. Data is inserted correctly D. Indexes are created Answer: B Rationale: Example: can't add a new department until an employee exists.

61. A deletion anomaly occurs when:

A. Duplicates are removed B. Deleting a row unintentionally removes other important data ✔ C. Data is backed up D. A table is dropped intentionally Answer: B Rationale: Example: deleting the last employee loses department info.

62. Boyce-Codd Normal Form (BCNF) requires that:

A. There are no foreign keys B. Every determinant is a candidate key ✔ C. Tables have one column D. All attributes are numeric Answer: B Rationale: A stricter form of 3NF.

63. A functional dependency A → B means:

A. A is null B. B determines A C. A and B are unrelated D. Each value of A determines exactly one value of B ✔ Answer: D Rationale: Foundation of normalization.

64. Denormalization is:

A. Encrypting data B. Deleting tables C. Intentionally adding redundancy to improve read performance ✔ D. Removing all redundancy Answer: C Rationale: Common in data warehouses.

65. A column containing 'red, blue, green' violates:

A. Third normal form only B. Second normal form only C. BCNF only D. First normal form ✔ Answer: D Rationale: Values must be atomic.

71. A determinant is:

A. An attribute whose value determines another attribute's value ✔ B. An index C. A null value D. A dependent attribute Answer: A Rationale: Left side of a functional dependency.

72. Redundant data can lead to:

A. Inconsistencies and wasted storage ✔ B. Better integrity C. Faster updates D. No effect Answer: A Rationale: Normalization reduces redundancy.

73. Which design best eliminates repeating groups for multiple phone numbers per customer?

A. A text file B. Phone1, Phone2, Phone3 columns C. A CustomerPhone table with CustomerID and PhoneNumber ✔ D. A comma-separated list Answer: C Rationale: Allows unlimited phones.

74. Normalization generally results in:

A. More redundancy B. One large table C. No relationships D. More tables with fewer columns each ✔ Answer: D Rationale: Tables are joined as needed.

75. A star schema in data warehousing is:

A. A fully normalized OLTP design B. A NoSQL graph C. A single flat file D. A denormalized design with a central fact table and dimension tables ✔ Answer: D Rationale: Optimized for analysis.

Part 4: SQL DDL: Creating & Altering Tables

76. Which statement creates a new table?

A. NEW TABLE B. INSERT TABLE C. MAKE TABLE D. CREATE TABLE ✔ Answer: D Rationale: Followed by column definitions.

77. Which statement adds a new column to an existing table?

A. INSERT INTO Customers Email; B. ALTER TABLE Customers ADD Email VARCHAR(100); ✔ C. MODIFY Customers Email; D. UPDATE Customers ADD Email VARCHAR(100); Answer: B Rationale: ALTER TABLE changes structure.

78. Which statement removes a table and its data permanently?

A. DELETE TABLE B. TRUNCATE COLUMN C. REMOVE TABLE D. DROP TABLE ✔ Answer: D Rationale: DROP removes the structure too.

79. TRUNCATE TABLE differs from DELETE without a WHERE clause because TRUNCATE:

A. Removes all rows quickly while keeping the table structure, typically without row-by-row logging ✔ B. Requires a WHERE clause C. Removes only one row D. Removes the table structure Answer: A Rationale: DELETE can be filtered with WHERE.

80. VARCHAR(50) defines a column that stores:

A. 50 dates B. Variable-length character data up to 50 characters ✔ C. Exactly 50 characters always D. Numbers up to 50 Answer: B Rationale: CHAR(50) is fixed-length.