100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU D427 ACTUAL PRACTICE TEST 2 CURRENTLY TESTING WITH COMPLETE SOLUTIONS

Rating
-
Sold
-
Pages
48
Grade
A+
Uploaded on
13-03-2025
Written in
2024/2025

WGU D427 ACTUAL PRACTICE TEST 2 CURRENTLY TESTING WITH COMPLETE SOLUTIONS












Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
March 13, 2025
Number of pages
48
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU D427 ACTUAL PRACTICE TEST 2 CURRENTLY TESTING WITH COMPLETE
SOLUTIONS
1. Portland, OR 97212

How many attributes are present in the address fragment?
a. 1
b. 2
c. 3
d. 4

2. The Patient table has the following columns:
first_name – varchar(20)
last_name – varchar(30)
birthdate – date
patient_id – int

Which column should be designated at the primary key for the Patient table?

a. first_name
b. last_name
c. birthdate
d. patient_id




3. The Exam table has the following columns:
exam_id – int
exam_date – date
exam_reason – varchar (100)
patient_id – int

Which column should be designated as the foreign key for the Exam table?

a. exam_id
b. exam_date
c. exam_reason
d. patient_id




4. Which data type represents numbers with fractional values:

, a. Varchar
b. Integer
c. Binary
d. Decimal


5. Which of the following is a DDL (Data Definition Language) command?

a. INSERT
b. SELECT
c. CREATE INDEX
d. UPDATE


6. Which of the following is a DML(Data Manipulation Language) command?

a. CREATE VIEW
b. CREATE TABLE
c. INSERT
d. ALTER INDEX


7.
CREATE TABLE Exam (
exam_id INT NOT NULL AUTO_INCREMENT,
exam_date DATE NOT NULL,
exam_reason VARCHAR (100),
patient_id INT NOT NULL,
PRIMARY KEY (exam_id),
FOREIGN KEY (patient_id) REFERENCES Patient (patient _id) ON DELETE CASCADE
);




Looking at the Patient and Exam tables above and the CREATE TABLE for the Exam table
with foreign key reference statement above, what would happen to exams in the Exam
table that are linked to a patient if that patient is deleted.

,a. Those exams would remain in the database.
b. Those exams would be deleted also.
c. The Patient ID for those exams would be changed to NULL.
d. Nothing would happen.



8.
CREATE TABLE Exam (
exam_id INT NOT NULL AUTO_INCREMENT,
exam_date DATE NOT NULL,
exam_reason VARCHAR (100),
patient_id INT NOT NULL,
PRIMARY KEY (exam_id),
FOREIGN KEY (patient_id) REFERENCES Patient (patient _id) ON DELETE RESTRICT
);




Looking at the Patient and Exam tables above and the CREATE TABLE for the Exam table
with foreign key reference statement above, what would happen to exams in the Exam
table that are linked to a patient if that patient is deleted.


a. Those invoices would remain in the database.
b. Those invoices would be deleted also.
c. The Customer ID for those invoices would be changed to NULL.
d. The delete of the Customer would not be allowed.




9.
CREATE TABLE Exam (
exam_id INT NOT NULL AUTO_INCREMENT,
exam_date DATE NOT NULL,

, exam_reason VARCHAR (100),
patient_id INT NOT NULL,
PRIMARY KEY (exam_id),
FOREIGN KEY (patient_id) REFERENCES Patient (patient _id) ON DELETE SET TO NULL
);




Looking at the Patient and Exam tables above and the CREATE TABLE for the Exam table
with foreign key reference statement above, what would happen to exams in the Exam
table that are linked to a patient if that patient is deleted.


a. Those invoices would remain in the database.
b. Those invoices would be deleted also.
c. The Customer ID for those invoices would be changed to NULL.
d. The delete of the Customer would not be allowed.



10.
Which of the following are true about materialized view (Choose 2)?


a. It is a base table.
b. It is stored.
c. It must be refreshed whenever the base table changes.
d. The results are stored as a temporary table.




11.
The Student table will have the following columns:
StudentID—positive integer

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Edumax Johns Hopkins University
View profile
Follow You need to be logged in order to follow users or courses
Sold
50
Member since
1 year
Number of followers
3
Documents
1303
Last sold
18 hours ago
EDUMAX SOLUTIONS

3.8

5 reviews

5
2
4
1
3
1
2
1
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions