C170 Alternate Test

Beschreibung

Alternate practice test for C170 WGU
Craig Willey
Quiz von Craig Willey, aktualisiert more than 1 year ago
Craig Willey
Erstellt von Craig Willey vor mehr als 5 Jahre
88
1

Zusammenfassung der Ressource

Frage 1

Frage
A customer can purchase many products and a product can be purchased by many customers. Which kind of binary relationship does this scenario describe?
Antworten
  • Many-to-many
  • One-to-many
  • One-to-one binary
  • One-to-one

Frage 2

Frage
Which kind of relationship is displayed in this entity-relationship diagram?
Antworten
  • Binary one-to-one
  • Unary many-to-many
  • Ternary one-to-one
  • Binary many-to-many
  • Unary one-to-one
  • Ternary many-to-many

Frage 3

Frage
Which kind of relationship is displayed in this entity-relationship diagram?
Antworten
  • One-to-one binary
  • One-to-one unary
  • Many-to-many binary
  • Many-to-many unary

Frage 4

Frage
How is this portion of the entity-relationship diagram read, from left to right?
Antworten
  • Only one appointment was scheduled by one patient.
  • One appointment was scheduled by more than one patient.
  • No appointments were scheduled by a patient.
  • At least one appointment is scheduled by a patient.

Frage 5

Frage
Which two examples are attributes?
Antworten
  • A patient ID
  • An appointment number
  • A patient being seen at an appointment
  • An appointment

Frage 6

Frage
Which delete rule sets column values in a child table to NULL when the matching data is deleted from the parent table?
Antworten
  • Restrict
  • Set-to-Null
  • Cascade
  • Matching

Frage 7

Frage
A patient is related to two exam records. The table follows the restrict delete rule. What happens if someone tried to delete the patient?
Antworten
  • The lack of a patient connected to the exam records is flagged for later.
  • The delete occurs immediately.
  • The delete is not allowed.
  • Another patient is linked with the exam records.

Frage 8

Frage
Which two columns are created as something other than variable-length strings in the statement above? Choose 2 answers
Antworten
  • activity_id
  • activity_name
  • activity_date
  • time
  • location
  • coordinator_id

Frage 9

Frage
The database table above has 7 different physician IDs in the first column and physician_id is the primary key of the table. There are 7 different physician names in the second column. The third column indicates which site a physician is located at. There are 3 different sites. Two of the site names are repeated 3 times. Which action should be used to translate this data into third normal form?
Antworten
  • Move the data from the second column into the third column
  • Move the data from the third column into its own table.
  • Move the data from the third column into the first column.
  • Move the data from the first two columns into separate tables.

Frage 10

Frage
A database designer is working through the normalization process. A simple primary key has been established. All of the repeating groups and multi-valued fields have been removed In which form is this table:
Antworten
  • First Normal Form
  • Second Normal Form
  • Third Normal Form
  • Unnormalized

Frage 11

Frage
Two attributes in two related tables have the exact same domain of values. The attribute is a primary key (PK) in one table. Which kind of key is the attribute in the other table?
Antworten
  • Foreign
  • Composite
  • Primary
  • Compound

Frage 12

Frage
In this entity-relationship diagram, many instructors are shown as working at a minimum of one campus. How is the relationship between instructors and campuses represented in the diagram?
Antworten
  • It is undefined.
  • It is linked through the instructor_id
  • It is indicated by the tables’ adjacency.
  • It is linked through the campus_id.

Frage 13

Frage
In which two ways can data redundancy affect managing disk storage space and calculation speed? Choose 2 answers:
Antworten
  • Additional processing time is needed to update redundant data.
  • Additional processing time is needed to find intersection data for each redundant piece of data
  • Redundant data must be processed as unary, binary, and ternary information.
  • Redundant data takes up additional disk space.
  • Every copy of redundant data must be copied to a third record in the database

Frage 14

Frage
With which command can a database administrator allow a user named Mary to query the Patient table by executing SELECT commands on it?
Antworten
  • GRANT Patient TO ‘mary’@ ‘localhost’;
  • GRANT SELECT ON PATIENT TO ‘mary’@ ‘localhost’;
  • GRANT SELECT PATIENT TO ‘mary’@ ‘localhost’;
  • GRANT PATIENT ON SELECT TO ‘mary’@ ‘localhost’;

Frage 15

Frage
Why does MySQL’s architecture use concurrency control?
Antworten
  • To prevent two users from viewing the same record during potential updates.
  • To ensure that users are logged in on a local machine.
  • To let multiple clients easily find and negotiate with each other.
  • To prevent two users from modifying the same record at the same time.

Frage 16

Frage
Which command creates a database only if it does not already exist?
Antworten
  • CREATE DATABASE IF NOT EXISTS db_name;
  • IF NOT EXISTS CREATE DATABASE db_name;
  • IF NOT EXISTS db_name;
  • CREATE DATABASE IF NEW db_name;

Frage 17

Frage
Refer to the given SQL statement: SELECT item_number, item_name FROM item Which line should be added to the end of the statement to return the item numbers and item names for items that have an item_price of 10 dollars?
Antworten
  • AND item_price = 20;
  • AND item_price >= 20;
  • WHERE item_price = 20;
  • WHERE item_price >= 20;

Frage 18

Frage
What does WHERE identify in a basic SQL SELECT statement?
Antworten
  • The associative entity
  • A table’s intersection data
  • The rows to be included in the result set
  • A range of included columns

Frage 19

Frage
Refer to the given SQL statement. SELECT patient_id FROM patient Which line added to the end of the statement returns patient ids of at least 1000?
Antworten
  • WHERE patient_id >=1000;
  • WHERE patient_id => 1000;
  • WHERE patient_id = 1000+;
  • WHERE patient_id > 1000;

Frage 20

Frage
Refer to the given SQL statement: SELECT item_id, SUM(quantity) FROM invoice Which line, when added to the end of the statement, returns the total number of each kind of item by item_id?
Antworten
  • SUM item_id;
  • GROUP BY item_id;
  • COUNT item_id;
  • ORDER BY item_id;

Frage 21

Frage
Which data definition language statement affects databases or objects in them?
Antworten
  • NULL
  • INSERT
  • SELECT
  • ALTER

Frage 22

Frage
What does the DELETE statement do?
Antworten
  • It removes rows from a table.
  • It removes columns not named in the column list.
  • It removes views.
  • It removes columns from a table.

Frage 23

Frage
Which condition must be in effect to use the INSERT INTO … VALUES syntax for an INSERT statement?
Antworten
  • The VALUES list must contain a value for each non-null valued column in the table.
  • The VALUES list must contain a value for each attribute/column in the table.
  • The INSERT INTO portion of the statement must generate a LOAD DATA statement.
  • THE INSERT INTO portion of the statement must refer to a sampdb database table.

Frage 24

Frage
Which kind of data type is FLOAT in the statement?
Antworten
  • Decimal
  • Integer
  • Data
  • String

Frage 25

Frage
Which two MySQL data types can represent images or sounds? Choose two
Antworten
  • TINYBLOB
  • FLOAT
  • BINARY
  • TERNARY
  • INT
  • SOUNDBLOB

Frage 26

Frage
Refer to the given SQL statement. CREATE TABLE Invoice ( invoice_id INT NOT NULL , date DATE NOT NULL, customer_id INT NOT NULL, PRIMARY KEY (invoice_id), FOREIGN KEY (customer_id) REFERENCES Customer (customer_id) ); In which line of the statement is the table given its name?
Antworten
  • customer_id INT NOT NULL,
  • PRIMARY KEY (invoice_id),
  • CREATE TABLE Invoice (
  • FOREIGN KEY (customer_id) REFERENCES Customer (customer_id)

Frage 27

Frage
Which method creates an empty copy of a table and then populates it from the original table?
Antworten
  • CREATE TABLE new_tbl_name INTO tbl_name; INSERT INTO new_tbl_name;
  • INSERT TABLE new_tbl_name SELECT tbl_name; INSERT INTO new_tbl_name LIKE tbl_name;
  • CREATE TABLE new_tbl_name LIKE tbl_name; INSERT INTO new_tbl_name SELECT * FROM tbl_name;
  • INSERT TABLE new_tbl_name LIKE tbl_name; SELECT tbl_name;

Frage 28

Frage
Refer to the given MySQL syntax. ALTER TABLE tbl_name action [, action ] … ; What does this syntax allow? Choose two answers:
Antworten
  • Changing storage space
  • Changing column data types
  • Dropping indexes
  • Adding rows

Frage 29

Frage
Which command eliminates a table?
Antworten
  • TRUNCATE TABLE
  • DELETE TABLE
  • REMOVE TABLE
  • DROP TABLE

Frage 30

Frage
Why is a view used to give controlled access to data?
Antworten
  • To limit many-to-many relationship between various entities and attributes
  • To restrict access to persons retrieving and modifying sensitive information
  • To move complicated security routines to subqueries
  • To add complexity to encryption techniques

Frage 31

Frage
Which data definition language statement affects databases or objects in them?
Antworten
  • SELECT
  • INSERT
  • ALTER
  • NULL

Frage 32

Frage
Refer to the given SQL statement. SELECT customer_id, customer_last_name, customer_first_name FROM customer; Which statement, when added before this statement, generates a view?
Antworten
  • ALTER custview AS
  • WHERE VIEW custview IS
  • CREATE VIEW custview AS
  • VIEW custview

Frage 33

Frage
What is the proper command to change a view?
Antworten
  • ALTER VIEW
  • CHANGE VIEW
  • MODIFY VIEW
  • UPDATE VIEW

Frage 34

Frage
DROP VIEW patient_view; What happens as a result of the execution of this statement to the patient table on which patient_view is based?
Antworten
  • Unauthorized access to the view is restricted
  • The view is discarded
  • The data is discarded
  • The patient table data is discarded

Frage 35

Frage
Which optional clause added to a GRANT statement enables the account to give its own privileges to other uses?
Antworten
  • TO
  • WITH GRANT OPTION
  • REQUIRE
  • FOR

Frage 36

Frage
When a patient is deleted from the patient table, all corresponding rows from the patient in the exam table are automatically deleted as well. What is this referential integrity technique called?
Antworten
  • Cascaded delete
  • Foreign key constraint
  • Referential delete
  • Dynamic update

Frage 37

Frage
Which clause should be added to the end to make the invoice_id attribute the primary key within a CREATE TABLE statement?
Antworten
  • PRIMARY KEY (invoice_id));
  • PRIMARY KEY = (invoice_id));
  • (PRIMARY KEY): invoice_id;
  • (PRIMARY KEY) = (invoice_id));

Frage 38

Frage
Which statement should be used to establish a foreign key on customer_id?
Antworten
  • FOREIGN KEY (customer_id) (index_columns)
  • FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
  • FOREIGN KEY [table_name](customer_id)
  • FOREIGN KEY = (customer_id) REFERENCES customer (customer_id)

Frage 39

Frage
Which ALTER TABLE statement adds a foreign key constraint to a child table?
Antworten
  • ALTER TABLE child ADD FOREIGN KEY (parent_id) ON DELETE CASCADE;
  • ALTER TABLE child ADD FOREIGN KEY WHERE parent (parent_id) ON DELETE CASCADE;
  • ALTER TABLE child ADD FOREIGN KEY (parent_id) REFERENCES parent (parent_id) ON DELETE CASCADE;
  • ALTER TABLE child ADD FOREIGN KEY (parent_id) WHERE parent (parent_id) ON DELETE CASCADE;

Frage 40

Frage
The database administrator has been tasked with implementing an index to speed up the retrieval of data based on the V_STATE values. The database is using the InnoDB engine. What is the correct syntax to create an index to be built on the V_STATE field based on the database information?
Antworten
  • ALTER TABLE ‘Vendor’ ADD UNIQUE INDEX ‘state_index (‘V_STATE’);
  • ALTER TABLE Vendor ADD INDEX ‘state_index’ (‘V_STATE’);
  • CREATE UNIQUE INDEX state_index ON Vendo (V_STATE) USING HASH;
  • CREATE INDEX state_index USING HASH ON Vendor (V_STATE);

Frage 41

Frage
Which clause when added to the end of the statement creates and index on the customer_id field?
Antworten
  • INDEX custid_index (customer_id));
  • INDEX = (customer_id);
  • INDEX = (customer_id));
  • SET INDEX custid_index (customer_id));

Frage 42

Frage
Which syntax is the correct way to use the DROP INDEX command to drop a primary key from a table?
Antworten
  • DROP INDEX ‘PRIMARY’ ON tbl_name;
  • DROP INDEX WHERE PRIMARY KEY = ON tbl_name;
  • DROP INDEX ‘PRIMARY KEY’ ON tbl_name;
  • DROP INDEX PRIMARY KEY tbl_name;

Frage 43

Frage
A database administrator tried to delete a row in a parent table, but the delete fails because a row in another table depends on that row. Which referential-integrity rule is in effect?
Antworten
  • The set-to-null delete rule
  • The restrict rule
  • The default delete rule
  • The cascade delete rule

Frage 44

Frage
Refer to the given MySQL statement. INSERT INTO Invoice VALUES (10217, ‘2018-08-01’, 55527), (10218, ‘2018-08-01’, 44436); Describe what the parentheses denote.
Antworten
  • The row values for two individual columns
  • The attributes that are changeable
  • The column values for two individual rows
  • The data to be duplicated.

Frage 45

Frage
Which statement deletes all rows from the invoice table?
Antworten
  • DELETE FROM Invoice WHERE invoice_id = *;
  • DELETE FROM Invoice;
  • DELETE FROM Invoice WHERE invoice_id == *;
  • DELETE ALL FROM Invoice;

Frage 46

Frage
Refer to the given SQL statement. SELECT table1.*, table2.* FROM table1 LEFT JOIN table2 ON table1.column_name = table2.column_name;
Antworten
  • It selects only the rows in Table 1 that are the same as Table 2
  • It selects the rows in both Tables that have numerical data that is left-aligned.
  • It selects the rows in Table 1 numbered the same as Table 2.
  • It selects all of the rows in Table 1 (regardless of if there is a match in Table 2) and the matching rows in Table 2.

Frage 47

Frage
Refer to the given SQL Statement. 1. SELECT invoice_id 2. FROM Invoice 3. WHERE customer_id = 4. FROM customer 5. WHERE customer_id = 55547); What is missing from the subquery at the beginning of Line 4?
Antworten
  • (SUBQUERY = customer_id
  • (FIND customer_id
  • (SELECT customer_id
  • (SUBQUERY customer_id
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Zellzyklus
Nele Ramrath
Statistik
vemi1994
Geschirrkunde
malimi something
Abitur Lernplan 2017
Justin Nolte
PuKW STEP6 - Hummel (Sofort überprüfbar)
Tim Schröder
Angewandte Sozialpsychologie
Leonie Horn
Veti Pharma
Anna Leps
Vetie Viro 2018
Anna Nie
Vetie Repro Bilderspaß
Tropsi B
Vetie Pharma 2019
Lea Schmidt