You are on page 1of 83

Section 4 and 5 Quiz

(Answer all questions in this section)


1. When two
attributes in the Mark for Review
same entity relate (1) Points
to the same
unique identifier
attribute then you
can fold the keys
into one column in
the Relational
model during
engineering.

True (*)
False

Incorrect. Refer to Section


5 Lesson 2.

2. A primary unique identifier in an entity is transformed to a Unique


Key in a table. Mark for Review
(1) Points

True
False (*)

Correct

3. For a mandatory 1:1 relationship, the foreign key will be placed on


the mandatory side of the table and will use the NOT NULL Mark for Review
constraint to enforce the mandatory condition. (1) Points

True (*)
False

Incorrect. Refer to Section


5 Lesson 2.

4. When an exclusive relationship is engineered to a Relational


model, a foreign key column is created for each relationship Mark for Review
included in the arc. (1) Points

True (*)
False

Incorrect. Refer to Section


5 Lesson 2.

5. In Oracle SQL Developer Data Modeler, the attribute that you


assign as primary UID is automatically set to a mandatory Mark for Review
attribute and will be engineered to a primary key in the relational (1) Points
model.

True (*)
False

Correct
6. A supertype can
only have two Mark for Review
subtypes and (1) Points
no more. True
or False?

True
False (*)

Incorrect. Refer to Section


4 Lesson 1.

7. When creating entities you must follow these rules: (Choose Two)
Mark for Review
(1) Points

(Choose all correct answers)

Exclude Attributes
Name them in Plural
Include Attributes (*)
Name them in Singular (*)

Incorrect. Refer to Section


4 Lesson 1.

8. All instances of a subtype may be an instance of the supertype but


does not have to. True or False? Mark for Review
(1) Points

True
False (*)

Correct

9. All ER diagrams must have one of each of the following: (Choose


two) Mark for Review
(1) Points

(Choose all correct answers)

Relationships between entities (*)


Arcs
One or more Entities (*)
At least one supertype and subtype

Incorrect. Refer to Section


4 Lesson 1.
10. An entity creates a table and an attribute becomes a column in a
table. Mark for Review
(1) Points

True (*)
False

Correct

11. A Relational model is


closer to the Mark for Review
implementation (1) Points
solution, facilitates
discussion and forms
the basis for the
physical database
design.

True (*)
False

Incorrect. Refer to Section


4 Lesson 2.

12. A column or set of columns that uniquely identifies


each row in a table. Mark for Review
(1) Points

Database Key
Primary Key (*)
Foreign Key

Correct

13. You can define naming standards in Oracle SQL


Developer Data Modeler using .. Mark for Review
(1) Points

(Choose all correct answers)

Design Rule Validations (*)


Glossary (*)
Naming Templates (*)
None

Incorrect. Refer to Section


5 Lesson 1.

14. A column or combination of columns in one table that


refers to a primary key in the same or another table. Mark for Review
(1) Points

Super Key
Foreign Key (*)
Candidate Key
Primary Key

Incorrect. Refer to Section


5 Lesson 1.

15. Each attribute in an entity maps to a column in a


table. Mark for Review
(1) Points

True (*)
False

Correct

1. For a mandatory
1:1 relationship, Mark for Review
the foreign key will (1) Points
be placed on the
mandatory side of
the table and will
use the NOT NULL
constraint to
enforce the
mandatory
condition.

True (*)
False

Incorrect. Refer to Section 5 Lesson 2.

2. A relationship in an ER Diagram expresses the rules that apply


between two entities. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 5 Lesson 2.

3. When two attributes in the same entity relate to the same unique
identifier attribute then you can fold the keys into one column in Mark for Review
the Relational model during engineering. (1) Points

True (*)
False

Correct

4. If a 1:1 relationship is optional in both directions, the foreign key


can be in either table. Mark for Review
(1) Points
True (*)
False

Correct

5. A Relational model is closer to the implementation solution,


facilitates discussion and forms the basis for the physical database Mark for Review
design. (1) Points

True (*)
False

Correct

6. Forward Engineering is the


process of transforming a Mark for Review
Relational Data Model to a (1) Points
Logical Model.

True
False (*)

Incorrect. Refer to
Section 4 Lesson 2.

7. A column or set of columns that uniquely identifies each


row in a table. Mark for Review
(1) Points

Primary Key (*)


Foreign Key
Database Key

Correct

8. An Entity Relationship model does not highlight the


physical and database constraints. It is essential to Mark for Review
transform the ER model into a relational model which (1) Points
can serve as the basis for defining the physical
implementation of the database.

True (*)
False

Correct

9. You can define naming standards in Oracle SQL


Developer Data Modeler using .. Mark for Review
(1) Points

(Choose all correct answers)


Design Rule Validations (*)
Naming Templates (*)
None
Glossary (*)

Incorrect. Refer to
Section 5 Lesson 1.

10. A rule set is a collection of rules that you want to be able


to check as a set. Mark for Review
(1) Points

True (*)
False

Correct
11. The "Other"
subtype is Mark for Review
mandatory. (1) Points
True or False?

True
False (*)

Incorrect. Refer to
Section 4 Lesson 1.

12. All ER diagrams must have one of each of the following:


(Choose two) Mark for Review
(1) Points

(Choose all correct answers)

Relationships between entities (*)


One or more Entities (*)
Arcs
At least one supertype and subtype

Incorrect. Refer to
Section 4 Lesson 1.

13. You can only create relationships to a Supertype, not to a


Subtype. True or False? Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to
Section 4 Lesson 1.

14. A relationship that participates in an entity's unique


identifier is called a Hierarchical Relationship. Mark for Review
(1) Points
True
False (*)

Incorrect. Refer to
Section 4 Lesson 1.

15. All instances of a subtype may be an instance of the


supertype but does not have to. True or False? Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to
Section 4 Lesson 1.

1. In Oracle SQL Developer Data Modeler, the attribute that you assign as primary
UID is automatically set to a mandatory attribute and will be engineered to a Mark for Review
primary key in the relational model. (1) Points

True (*)

False

Correct

2. When creating entities you must follow these rules: (Choose Two)
Mark for Review
(1) Points

(Choose all correct answers)

Name them in Singular (*)

Name them in Plural

Exclude Attributes

Include Attributes (*)

Incorrect. Refer to Section 4 Lesson 1.

3. Which of the following are suitable Entity names? (Choose Two)


Mark for Review
(1) Points

(Choose all correct answers)


ANIMALS

DOGS

ANIMAL (*)

DOG (*)

Correct

4. A Supertype can have only one subtype. True or False?


Mark for Review
(1) Points

True

False (*)

Incorrect. Refer to Section 4 Lesson 1.

5. All instances of the supertype must be an instance of one of the subtypes. True or
False? Mark for Review
(1) Points

True (*)

False

Incorrect. Refer to Section 4 Lesson 1.


6. When creating
a database Mark for Review
based on (1) Points
extracting
metadata from
an existing
database or
using the DDL
code obtained
from an
implementation
of an existing
database,
which data
modeling
approach
would you
choose?

Bottom-Up Modeling (*)


You cannot model this.

Top-Down Modeling

Target Modeling

Correct

7. Top-Down Modeling is the approach taken for designing a new


database. Mark for Review
(1) Points

True (*)

False

Correct

8. Forward Engineering is the process of transforming a Relational Data


Model to a Logical Model. Mark for Review
(1) Points

True

False (*)

Incorrect. Refer to Section 4 Lesson 2.

9. A rule set is a collection of rules that you want to be able to check as a


set. Mark for Review
(1) Points

True (*)

False

Incorrect. Refer to Section 5 Lesson 1.

10. Each attribute in an entity maps to a column in a table.


Mark for Review
(1) Points

True (*)

False
Correct

11. A
glossary Mark for Review
in Oracle (1) Points
SQL
Develope
r Data
Modeler
is a set of
accepted
terms
that can
be used
in the
design.

True (*)

False

Correct

12. When an exclusive relationship is engineered to a Relational model, a


foreign key column is created for each relationship included in the arc. Mark for Review
(1) Points

True (*)

False

Correct

13. When two attributes in the same entity relate to the same unique identifier
attribute then you can fold the keys into one column in the Relational Mark for Review
model during engineering. (1) Points

True (*)

False

Correct

14. A primary unique identifier in an entity is transformed to a Unique Key in a


table. Mark for Review
(1) Points

True
False (*)

Correct

15. For a mandatory 1:1 relationship, the foreign key will be placed on the
mandatory side of the table and will use the NOT NULL constraint to Mark for Review
enforce the mandatory condition. (1) Points

True (*)

False

Correct
1. A
column Mark for Review
or set of (1) Points
columns
that
uniquely
identifie
s each
row in a
table.

Primary Key (*)

Database Key

Foreign Key

Correct

2. Reverse Engineering is the process of creating a conceptual or logical model


by extracting the information from an existing data source. Mark for Review
(1) Points

True (*)

False

Correct

3. Top-Down Modeling is the approach taken for designing a new database.


Mark for Review
(1) Points

True (*)
False

Correct

4. A supertype can only have two subtypes and no more. True or False?
Mark for Review
(1) Points

True

False (*)

Correct

5. Which of the following are suitable Entity names? (Choose Two)


Mark for Review
(1) Points

(Choose all correct answers)

DOG (*)

ANIMAL (*)

ANIMALS

DOGS

Correct

6. In Oracle SQL
Developer Mark for Review
Data Modeler, (1) Points
the attribute
that you
assign as
primary UID is
automatically
set to a
mandatory
attribute and
will be
engineered to
a primary key
in the
relational
model.
True (*)

False

Correct

7. A Supertype
can have only Mark for Review
one subtype. (1) Points
True or False?

True

False (*)

Correct

8. A relationship
that Mark for Review
participates in (1) Points
an entity's
unique
identifier is
called a
Hierarchical
Relationship.

True

False (*)

Correct

9. When an
exclusive Mark for Review
relationship is (1) Points
engineered to
a Relational
model, a
foreign key
column is
created for
each
relationship
included in the
arc.

True (*)

False
Correct

10. A primary
unique Mark for Review
identifier in an (1) Points
entity is
transformed to
a Unique Key
in a table.

True

False (*)

Incorrect.
Refer to
Section 5
Lesson 2.
11. When two
attributes in Mark for Review
the same (1) Points
entity relate
to the same
unique
identifier
attribute
then you
can fold the
keys into
one column
in the
Relational
model
during
engineering
.

True (*)

False

Correct

12. If a 1:1 relationship is optional in both directions, the foreign key can be
in either table. Mark for Review
(1) Points

True (*)

False
Incorrect. Refer to Section 5 Lesson 2.

13. A glossary in Oracle SQL Developer Data Modeler is a set of accepted


terms that can be used in the design. Mark for Review
(1) Points

True (*)

False

Correct

14. A column or combination of columns in one table that refers to a


primary key in the same or another table. Mark for Review
(1) Points

Primary Key

Super Key

Candidate Key

Foreign Key (*)

Correct

15. An Entity Relationship model does not highlight the physical and
database constraints. It is essential to transform the ER model into a Mark for Review
relational model which can serve as the basis for defining the physical (1) Points
implementation of the database.

True (*)

False

Incorrect. Refer to Section 5 Lesson 1.


1. A
foreign Mark for Review
key (1) Points
refers
to a
primary
key or
a
unique
key in
the
same
table or
in
anothe
r table.

True (*)
False

Correct

2. Structured Query Language (SQL)is the set-based, declarative language used to


access data in an Oracle database. Mark for Review
(1) Points

True (*)
False

Correct

3. A primary key must contain a value and the value must be unique.
Mark for Review
(1) Points

True (*)
False

Correct

4. You can logically relate data from multiple tables using foreign keys.
Mark for Review
(1) Points

True (*)
False

Correct

5. In Oracle Application Express (APEX) , you can export your SQL code results to a
spreadsheet. Mark for Review
(1) Points

True (*)
False

Correct

6. In Oracle
Application Mark for Review
Express (1) Points
(APEX),
SQL code
can be
entered
from the
SQL
Command
s option of
the SQL
Workshop.

True (*)
False

Correct

7. In Oracle Application Express (APEX), you can import and run a SQL Script
from the _____________ component of SQL Workshop. Mark for Review
(1) Points

SQL Scipts (*)


Scripts and Tutorials
Schema
SQL Worksheet

Incorrect. Refer to Section 6 Lesson 1.

8. It is possible to place conditions on the data retrieved by an SQL statement


using the WHEN clause. Mark for Review
(1) Points

True
False (*)

Correct

9. The command that removes all rows from a table, leaving the table empty and
the table structure intact is ... Mark for Review
(1) Points

TRUNCATE (*)
DELETE
Both
None

Correct

10. A collection of DML statements that form a logical unit of work is called a
transaction. Mark for Review
(1) Points

True (*)
False

11. When you


have Mark for Review
constraint (1) Points
s in place
on
columns,
an error is
returned if
you try to
violate the
constraint
rule.

True (*)
False

Correct

12. If a table already contains rows when a column is added, the new column is
initially null or takes the default value for all the rows. True or False? Mark for Review
(1) Points

True (*)
False

Correct

13. You can name a constraint or the Oracle server generates a name by using
the SYS_Cn format. Mark for Review
(1) Points

True (*)
False

Correct

14. Once you have created a table, you can run the DESCRIBE command to
confirm that it was created. Mark for Review
(1) Points

True (*)
False

Correct

15. What does the following statement: ALTER TABLE DEPT_TEST ADD
CONSTRAINT unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) ; Mark for Review
(1) Points

It alters the DEPT_TEST table to add a composite primary key comprising


of the DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a the DEPT_ID and
DEPARTMENT_NAME columns.
It alters the DEPT_TEST table to add a composite foreign key comprising
of the DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a composite unique key comprising
of the DEPT_ID and DEPARTMENT_NAME. (*)

Incorrect. Refer to Section 6 Lesson 3.


1. A
three- Mark for Review
way (1) Points
join is
a join
of
three
tables.
True (*)
False

Correct

2. A nonequijoin is a join condition containing something other than an equality


operator. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 9.

3. The CARTESIAN JOIN clause produces the cross-product of two tables.


Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 9.

4. A join between two tables that returns the results of the INNER join as well as
the unmatched rows from the left (or right) table is called a left (or right) Mark for Review
OUTER join. (1) Points

True (*)
False

Correct

5. You can override the default order by using parentheses around the expressions
that you want to calculate first. Mark for Review
(1) Points

True (*)
False

Correct
6. A logical
condition Mark for Review
combines (1) Points
the result
of two
component
conditions
to produce
a single
result
based on
those
conditions
or it
inverts the
result of a
single
condition.

True (*)
False

Incorrect. Refer to Section 6 Lesson 7.

7. You can link columns to other columns, arithmetic expressions, or constant


values to create a character expression by using the concatenation operator Mark for Review
(||). (1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 6.

8. If an arithmetic expression contains more than one operator, addition and


subtraction are evaluated first. True or False? Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 6.

9. Null is the same as zero or a blank space. True or False?


Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 6.

10. A literal is a character, a number, or a date that is included in the SELECT


list. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 6.


11. You can
specify Mark for Review
multiple (1) Points
columns
after the
DISTINCT
qualifier.
True (*)
False

Incorrect. Refer to Section 6 Lesson 6.

12. Read consistency guarantees a consistent view of the data at all times.
Mark for Review
(1) Points

True (*)
False

Correct

13. Transactions give you more flexibility and control when changing data, and
they ensure data consistency in the event of user process failure or system Mark for Review
failure. (1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 5.

14. The row_limiting_clause allows you to limit the rows that are returned by
the query. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 8.

15. You can specify the row_limiting_clause in the SQL SELECT statement by
placing it before the ORDER BY clause. Mark for Review
(1) Points

True
False (*)

Correct
1. To
SELECT all Mark for Review
fields from (1) Points
a table
enter :
SELECT *
from
tablename

True (*)
False
Incorrect. Refer to Section 6 Lesson 1.

2. Oracle Application Express (APEX) is a web application platform used to


develop and deploy SQL applications. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 1.

3. In Oracle Application Express (APEX), SQL code can be entered from the
SQL Commands option of the SQL Workshop. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 1.

4. An Application Program allows end users to buy and use fully developed,
ready to use programs to accomplish various tasks. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 1.

5. Relational Database stores data in a two-dimensional matrix known as a


table. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.


6. Functions
of SQL Mark for Review
are: (1) Points

Inserting, updating, and deleting rows in a table


Querying data stored in the database
Both (*)
None

Correct

7. Structured Query Language (SQL)is the set-based, declarative language used


to access data in an Oracle database. Mark for Review
(1) Points
True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

8. A foreign key refers to a primary key or a unique key in the same table or in
another table. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

9. You can decrease the width of a column if:


Mark for Review
(1) Points

(Choose all correct answers)

The column contains only null values (*)


The table has no rows (*)
The decrease in column width is not less than the existing values in that
column (*)
The column width can only be increased and not decreased.

Incorrect. Refer to Section 6 Lesson 3.

10. To issue a CREATE TABLE statement, you must have the __________
privilege. Mark for Review
(1) Points

DISTRIBUTE TABLE
CREATE TABLE (*)
Both
None

Incorrect. Refer to Section 6 Lesson 3.


11. Columns
without Mark for Review
the NOT (1) Points
NULL
constraint
can
contain
null
values by
default.

True (*)
False

Incorrect. Refer to Section 6 Lesson 3.


12. When you drop a table, the database loses all the data in the table.
Mark for Review
(1) Points

True (*)
False

Correct

13. The command that removes all rows from a table, leaving the table empty
and the table structure intact is ... Mark for Review
(1) Points

TRUNCATE (*)
DELETE
Both
None

Correct

14. All rows in the table are deleted if you omit the WHERE clause in the
DELETE statement. Mark for Review
(1) Points

True (*)
False

Correct

15. Any column that is not listed explicitly obtains a null value in the new row
unless we have default values for the missing columns that are used. Mark for Review
(1) Points

True (*)
False

Correct
1. An ON
clause Mark for Review
creates an (1) Points
equijoin
between
two tables
using one
column
from each
table
regardless
of the
name or
data type.
True or
False?
True (*)
False

Incorrect. Refer to Section 6 Lesson 9.

2. A nonequijoin is a join condition containing something other than an equality


operator. Mark for Review
(1) Points

True (*)
False

Correct

3. A USING clause creates an equijoin between two tables using one column
with the same name, regardless of the data type. Mark for Review
(1) Points

True (*)
False

Correct

4. Will the following statement execute successfully (True or False)? SELECT


employee_id, city, department_name FROM employees e JOIN departments Mark for Review
d ON d.department_id = e.department_id JOIN locations l ON d.location_id (1) Points
= l.location_id;

True (*)
False

Correct

5. The following statement will execute successfully (true or false): SELECT


employee_id, last_name, salary*12 annsal FROM employees ORDER BY Mark for Review
annsal ; (1) Points

True (*)
False

Correct
6. The
ORDER BY Mark for Review
clause (1) Points
must be
placed
before the
WHERE
clause in a
SQL
statement.

True
False (*)

Incorrect. Refer to Section 6 Lesson 8.

7. A logical condition combines the result of two component conditions to


produce a single result based on those conditions or it inverts the result of a Mark for Review
single condition. (1) Points

True (*)
False

Correct

8. The IS NULL condition tests for nulls. True or False?


Mark for Review
(1) Points

True (*)
False

Correct

9. Transactions give you more flexibility and control when changing data, and
they ensure data consistency in the event of user process failure or system Mark for Review
failure. (1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 5.

10. Read consistency guarantees a consistent view of the data at all times.
Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 5.


11. Which
statement Mark for Review
displays the (1) Points
last name,
salary, and
annual
compensation
of employees
where the
annual
compensation
is calculated
by multiplying
the monthly
salary with
15, plus a
one-time
bonus of
$200.

(Choose all correct answers)

SELECT last_name, salary, 15*salary+200 FROM employees; (*)


SELECT last_name, salary, 15*(salary+200) FROM employees;
Both
None

Correct

12. You can link columns to other columns, arithmetic expressions, or


constant values to create a character expression by using the Mark for Review
concatenation operator (||). (1) Points

True (*)
False

Correct

13. Null is the same as zero or a blank space. True or False?


Mark for Review
(1) Points

True
False (*)

Correct

14. A literal is a character, a number, or a date that is included in the


SELECT list. Mark for Review
(1) Points

True (*)
False

Correct

15. If an arithmetic expression contains more than one operator, addition


and subtraction are evaluated first. True or False? Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 6.


1. You can
use single- Mark for Review
ampersand (1) Points
(&)
substitution
variables to
temporarily
store
values.

True (*)
False

Correct

2. The ORDER BY clause can be used to sort the rows.


Mark for Review
(1) Points

True (*)
False

Correct

3. Which statement will display those employees who have a job title that
contains the string "JEF" and earn $10,000 or more? Mark for Review
(1) Points

SELECT employee_id, last_name, job_id, salary FROM employees


WHERE salary >= 10000 AND job_id LIKE '%JEF%' ; (*)
SELECT employee_id, last_name, job_id, salary FROM employees
WHERE salary >= 10000 OR job_id LIKE '%JEF%' ;
Both
None

Correct

4. Character strings and dates in the WHERE clause must be enclosed with
single quotation marks (''). Mark for Review
(1) Points

True (*)
False

Correct

5. What type of join is the following statement? SELECT e.EMPLOYEE_ID,


e.LAST_NAME, d.DEPARTMENT_ID, d.DEPARTMENT_NAME, Mark for Review
d.LOCATION_ID FROM EMPLOYEES e, DEPARTMENTS d; (1) Points

NATURAL JOIN
INNER JOIN
OUTER JOIN
CROSS JOIN (*)

Incorrect. Refer to Section 6 Lesson 9.


6. A join
between Mark for Review
two (1) Points
tables
that
returns
the
results
of an
INNER
join as
well as
the
results
of a left
and
right
join is a
FULL
OUTER
join.

True (*)
False

Incorrect. Refer to Section 6 Lesson 9.

7. Will the following statement execute successfully (True or False)? SELECT


l.city, d.department_name FROM locations l JOIN departments d USING Mark for Review
(location_id) WHERE d.location_id = 1400; (1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 9.

8. Which of the following statements is syntactically correct?


Mark for Review
(1) Points

SELECT e.employee_id, e.last_name, e.department_id, d.department_id,


d.location_id FROM employees e JOIN departments d ON
(e.department_id = d.department_id) AND e.manager_id = 149 ;
SELECT e.employee_id, e.last_name, e.department_id, d.department_id,
d.location_id FROM employees e JOIN departments d ON
(e.department_id = d.department_id) WHERE e.manager_id = 149 ;
Both (*)
None

Incorrect. Refer to Section 6 Lesson 9.

9. With the COMMIT and ROLLBACK statements, you have control over making
changes to the data permanent Mark for Review
(1) Points

True (*)
False
Correct

10. Read consistency guarantees a consistent view of the data at all times.
Mark for Review
(1) Points

True (*)
False

Correct
11. You can link
columns to Mark for Review
other (1) Points
columns,
arithmetic
expressions,
or constant
values to
create a
character
expression by
using the
concatenation
operator (||).

True (*)
False

Incorrect. Refer to Section 6 Lesson 6.

12. If you concatenate a null value with a character string, the result is a
character string. True or False? Mark for Review
(1) Points

True (*)
False

Correct

13. Arithmetic expressions containing a null value evaluate to null.


Mark for Review
(1) Points

True (*)
False

Correct

14. The following statement will result in an error (True or False): SELECT
last_name "Name" , salary*12 "Annual Salary", Annual Salary +100 Mark for Review
FROM employees; (1) Points

True (*)
False

Correct

15. A literal is a character, a number, or a date that is included in the


SELECT list. Mark for Review
(1) Points

True (*)
False

Correct
1. Which two
statements Mark for Review
are (1) Points
correct?

(Choose all correct answers)

SQL statements are not case sensitive (unless indicated). (*)


Keywords cannot be abbreviated or split across lines. (*)
SQL statements are case sensitive.
Keywords can be abbreviated or split across lines.

Incorrect. Refer to Section 6 Lesson 6.

2. You can link columns to other columns, arithmetic expressions, or constant


values to create a character expression by using the concatenation operator Mark for Review
(||). (1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 6.

3. If an arithmetic expression contains more than one operator, addition and


subtraction are evaluated first. True or False? Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 6.

4. To eliminate duplicate rows in the result, include the DISTINCT keyword in


the SELECT clause. Mark for Review
(1) Points

True (*)
False
Correct

5. Null is the same as zero or a blank space. True or False?


Mark for Review
(1) Points

True
False (*)

Correct
6. You can specify the
row_limiting_clause Mark for Review
in the SQL SELECT (1) Points
statement by
placing it before
the ORDER BY
clause.

True
False (*)

Correct

7. Which statements are not true?


(Choose 2) Mark for Review
(1) Points

(Choose all correct answers)

You cannot sort query results by more than one column. (*)
You can also sort by a column that is not in the SELECT list.
You cannot also use a column alias in the ORDER BY clause.
(*)
You can sort query results by specifying the numeric position
of the column in the SELECT clause.

Incorrect. Refer to Section 6 Lesson 8.

8. A nonequijoin is a join condition containing something other than


an equality operator. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 9.

9. The ________ join clause is based on all the columns in the two
tables that have the same name and the same datatype. Mark for Review
(1) Points

CROSS JOIN
NATURAL JOIN (*)
USING
OUTER JOIN

Correct

10. A join between two tables that returns the results of an INNER join
as well as the results of a left and right join is a FULL OUTER join. Mark for Review
(1) Points

True (*)
False

Correct
11. Which of
the Mark for Review
following (1) Points
statements
is an
example of
a SELF
JOIN?

SELECT e.employee_id, e.last_name, e.department_id,


d.department_id, d.location_id FROM employees e JOIN departments
d ON (e.department_id = d.department_id) AND e.manager_id = 149
;
SELECT e.employee_id, e.last_name, e.department_id,
d.department_id, d.location_id FROM employees e JOIN departments
d ON (e.department_id = d.department_id);
SELECT department_id, department_name,location_id, city FROM
departments NATURAL JOIN locations;
SELECT worker.last_name emp, manager.last_name mgr FROM
employees worker JOIN employees manager ON (worker.manager_id
= manager.employee_id); (*)

Incorrect. Refer to Section 6 Lesson 9.

12. The Oracle server ensures data consistency based on transactions.


Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 5.

13. An automatic commit occurs when a DML statement issued. True or False?
Mark for Review
(1) Points

True
False (*)

Correct

14. Character strings and dates in the WHERE clause must be enclosed with
single quotation marks (''). Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 7.

15. The rules of precedence determine the order in which expressions are
evaluated and calculated. Mark for Review
(1) Points

True (*)
False

Correct

1. You can
delete a Mark for Review
row (1) Points
that
contains
a
primary
key that
is used
as a
foreign
key in
another
table.

True
False (*)

Correct

2. The command that removes all rows from a table, leaving the table empty and
the table structure intact is ... Mark for Review
(1) Points

TRUNCATE (*)
DELETE
Both
None

Correct

3. Any column that is not listed explicitly obtains a null value in the new row
unless we have default values for the missing columns that are used. Mark for Review
(1) Points

True (*)
False
Incorrect. Refer to Section 6 Lesson 4.

4. NOT NULL constraints can be created at the table as well as at the column
level. Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 3.

5. Constraints ensure the consistency and integrity of the database.


Mark for Review
(1) Points

True (*)
False

Correct
6. When
altering Mark for Review
a table, (1) Points
you can
decrease
the
width of
a
column
if ...

(Choose all correct answers)

The decrease in column width is not less than the existing values in that
column (*)
The column contains numeric values
The table has no rows (*)
The column contains only null values (*)

Incorrect. Refer to Section 6 Lesson 3.

7. When you drop a table, the database loses all the data in the table.
Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 3.

8. The stages of SQL Processing are Parsing, Optimization, Row Source


Generation and _____________ . Mark for Review
(1) Points
Analyzing
Execution (*)
Both
None

Correct

9. Relational Database stores data in a two-dimensional matrix known as a table.


Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

10. Functions of SQL are:


Mark for Review
(1) Points

Inserting, updating, and deleting rows in a table


Querying data stored in the database
Both (*)
None

Incorrect. Refer to Section 6 Lesson 2.

11. A
foreign Mark for Review
key (1) Points
refers
to a
primary
key or
a
unique
key in
the
same
table or
in
another
table.

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

12. In Application Express a schema is a collection of logical structures of data. A


schema is owned by a database user and has the same name as that user. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 1.

13. It is possible to place conditions on the data retrieved by an SQL statement


using the WHEN clause. Mark for Review
(1) Points

True
False (*)

Correct

14. SQL Commands is a component in the SQL Workshop of APEX that allows
multiple SQL statements to be run simultaneously within the current Mark for Review
application users assigned database schema. (1) Points

True
False (*)

Correct

15. In Oracle Application Express (APEX) , you can export your SQL code results
to a spreadsheet. Mark for Review
(1) Points

True (*)
False

Correct
1. The
ORDER BY Mark for Review
clause (1) Points
must be
placed
before the
WHERE
clause in a
SQL
statement.

True
False (*)

Correct

2. You can use single-ampersand (&) substitution variables to temporarily store


values. Mark for Review
(1) Points

True (*)
False
Correct

3. An automatic commit occurs when a DML statement issued. True or False?


Mark for Review
(1) Points

True
False (*)

Correct

4. The Oracle server ensures data consistency based on transactions.


Mark for Review
(1) Points

True (*)
False

Correct

5. Will the following statement execute successfully (True or False)? SELECT


l.city, d.department_name FROM locations l JOIN departments d USING Mark for Review
(location_id) WHERE d.location_id = 1400; (1) Points

True
False (*)

Correct
6. What type of join is the
following statement? Mark for Review
SELECT (1) Points
e.EMPLOYEE_ID,
e.LAST_NAME,
d.DEPARTMENT_ID,
d.DEPARTMENT_NAME,
d.LOCATION_ID FROM
EMPLOYEES e,
DEPARTMENTS d;

OUTER JOIN
CROSS JOIN (*)
NATURAL JOIN
INNER JOIN

Correct

7. Joining tables with the NATURAL JOIN, USING, or ON clauses


results in an INNER join. Mark for Review
(1) Points

True (*)
False
Correct

8. A join between two tables that returns the results of an INNER


join as well as the results of a left and right join is a FULL Mark for Review
OUTER join. (1) Points

True (*)
False

Correct

9. A literal is a character, a number, or a date that is included in


the SELECT list. Mark for Review
(1) Points

True (*)
False

Correct

10. You can specify multiple columns after the DISTINCT qualifier.
Mark for Review
(1) Points

True (*)
False

Correct
11. The
following Mark for Review
statement (1) Points
displays all
the rows in
the
departments
table:
SELECT *
FROM
departments;

True (*)
False

Correct

12. Null is the same as zero or a blank space. True or False?


Mark for Review
(1) Points

True
False (*)

Correct
13. The following statement will result in an error (True or False): SELECT
last_name "Name" , salary*12 "Annual Salary", Annual Salary +100 Mark for Review
FROM employees; (1) Points

True (*)
False

Correct

14. The AND operator requires either of the component conditions to be


true. Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 6 Lesson 7.

15. You can display all columns of data in a table by following the SELECT
keyword with an asterisk (*). Mark for Review
(1) Points

True (*)
False

Correct

Section 4 and 5 Quiz

(Answer all questions in this section)

1. Forward Engineering is the process of transforming a Relational Data Model to a


Logical Model. Mark for Review
(1) Points

True
False (*)

Correct

2. A column or set of columns that uniquely identifies each row in a table.


Mark for Review
(1) Points

Database Key
Primary Key (*)
Foreign Key

Correct
3. When creating a database based on extracting metadata from an existing database
or using the DDL code obtained from an implementation of an existing database, Mark for Review
which data modeling approach would you choose? (1) Points

Bottom-Up Modeling (*)


Top-Down Modeling
You cannot model this.
Target Modeling

Correct

4. All instances of the supertype must be an instance of one of the subtypes. True or
False? Mark for Review
(1) Points

True (*)
False

Correct

5. Which of the following are suitable Entity names? (Choose Two)


Mark for Review
(1) Points

(Choose all correct answers)

ANIMALS
DOGS
DOG (*)
ANIMAL (*)

Correct
6. In a
relationship, Mark for Review
if the same (1) Points
entity
participates
more than
once, it is
termed as a
recursive
relationship.

True (*)

False

Correct
7. In Oracle SQL Developer Data Modeler, the attribute that you
assign as primary UID is automatically set to a mandatory Mark for Review
attribute and will be engineered to a primary key in the (1) Points
relational model.

True (*)

False

Incorrect. Refer to Section 4 Lesson


1.

8. When creating entities you must follow these rules: (Choose


Two) Mark for Review
(1) Points

(Choose all correct answers)

Exclude Attributes

Include Attributes (*)

Name them in Plural

Name them in Singular (*)

Correct

9. Each attribute in an entity maps to a column in a table.


Mark for Review
(1) Points

True (*)

False

Correct

10. A glossary in Oracle SQL Developer Data Modeler is a set of


accepted terms that can be used in the design. Mark for Review
(1) Points

True (*)
False

Correct
11. A Relational
model is the Mark for Review
blue print to (1) Points
the actual
database
implementation
and can be
used as the
basis for
implementing
any type of
Database
Management
System
(DBMS).

True (*)

False

Correct

12. For a mandatory 1:1 relationship, the foreign key will be


placed on the mandatory side of the table and will use the Mark for Review
NOT NULL constraint to enforce the mandatory condition. (1) Points

True (*)

False

Correct

13. When an exclusive relationship is engineered to a Relational


model, a foreign key column is created for each relationship Mark for Review
included in the arc. (1) Points

True (*)

False

Correct
14. If a 1:1 relationship is optional in both directions, the
foreign key can be in either table. Mark for Review
(1) Points

True (*)

False

Correct

15. When two attributes in the same entity relate to the same
unique identifier attribute then you can fold the keys into Mark for Review
one column in the Relational model during engineering. (1) Points

True (*)

False

Correct

Test: Section 6 Quiz 1 - L1-L4

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 6 - Quiz 1 L1-L4
(Answer all questions in this section)

11. Any column that is not listed explicitly obtains a null value in the new row unless
we have default values for the missing columns that are used. Mark for Review
(1) Points

True (*)
False

Correct

12. When altering a table, you can decrease the width of a column if ...
Mark for Review
(1) Points

(Choose all correct answers)

The decrease in column width is not less than the existing values in that
column (*)
The column contains only null values (*)
The table has no rows (*)
The column contains numeric values

Incorrect. Refer to Section 6 Lesson 3.

13. Which constratint specifies that the column (or combination of column) must
contain unique value AND IS NOT NULL for all rows? Mark for Review
(1) Points

UNIQUE KEY
CHECK
PRIMARY KEY (*)
NOT NULL

Correct

14. Constraints ensure the consistency and integrity of the database.


Mark for Review
(1) Points

True (*)
False

Correct

15. When you drop a table, the database loses all the data in the table.
Mark for Review
(1) Points

True (*)
False

Correct

Previous Page 3 of 3 Summary

Test: Section 4 and 5 Quiz

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 4 and 5 Quiz
(Answer all questions in this section)

1. A Supertype can have only one subtype. True or False?


Mark for Review
(1) Points

True
False (*)

Correct

2. When creating entities you must follow these rules: (Choose Two)
Mark for Review
(1) Points

(Choose all correct answers)

Exclude Attributes
Include Attributes (*)
Name them in Singular (*)
Name them in Plural

Incorrect. Refer to Section 4 Lesson 1.

3. All instances of the supertype must be an instance of one of the subtypes. True or
False? Mark for Review
(1) Points

True (*)
False

Correct

4. Which of the following are suitable Entity names? (Choose Two)


Mark for Review
(1) Points

(Choose all correct answers)

ANIMAL (*)
DOG (*)
ANIMALS
DOGS

Correct

5. A relationship that participates in an entity's unique identifier is called a Hierarchical


Relationship. Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 4 Lesson 1.

Page 1 of 3 Next Summary


Test: Section 4 and 5 Quiz

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 4 and 5 Quiz
(Answer all questions in this section)

6. A Relational model is the blue print to the actual database implementation and can
be used as the basis for implementing any type of Database Management System Mark for Review
(DBMS). (1) Points

True (*)
False

Correct

7. You can define naming standards in Oracle SQL Developer Data Modeler using ..
Mark for Review
(1) Points

(Choose all correct answers)

Naming Templates (*)


Design Rule Validations (*)
None
Glossary (*)

Incorrect. Refer to Section 5 Lesson 1.

8. A glossary in Oracle SQL Developer Data Modeler is a set of accepted terms that
can be used in the design. Mark for Review
(1) Points

True (*)
False

Correct

9. Top-Down Modeling is the approach taken for designing a new database.


Mark for Review
(1) Points

True (*)
False

Correct

10. Reverse Engineering is the process of creating a conceptual or logical model by


extracting the information from an existing data source. Mark for Review
(1) Points

True (*)
False

Correct

Previous Page 2 of 3 Next Summary

Test: Section 4 and 5 Quiz

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 4 and 5 Quiz
(Answer all questions in this section)

11. A Relational model is closer to the implementation solution, facilitates discussion


and forms the basis for the physical database design. Mark for Review
(1) Points

True (*)
False

Correct

12. When an exclusive relationship is engineered to a Relational model, a foreign key


column is created for each relationship included in the arc. Mark for Review
(1) Points

True (*)
False

Correct

13. A relationship in an ER Diagram expresses the rules that apply between two
entities. Mark for Review
(1) Points

True (*)
False

Correct

14. For a mandatory 1:1 relationship, the foreign key will be placed on the mandatory
side of the table and will use the NOT NULL constraint to enforce the mandatory Mark for Review
condition. (1) Points

True (*)
False

Correct
15. When two attributes in the same entity relate to the same unique identifier
attribute then you can fold the keys into one column in the Relational model during Mark for Review
engineering. (1) Points

True (*)
False

Correct

Previous Page 3 of 3 Summary


Bottom of Form
Section 6 - Quiz 1 L1-L4

(Answer all questions in this section)

1. All rows in the table are deleted if you omit the WHERE clause in the DELETE
statement. Mark for Review
(1) Points

True (*)
False

Correct

2. The UPDATE statement modifies the values of a specific row or rows if the SET
clause is specified. Mark for Review
(1) Points

True
False (*)

Correct

3. It is not mandatory to specify the column list in the INSERT statement. True or
False? Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 4.

4. A primary key must contain a value and the value must be unique.
Mark for Review
(1) Points

True (*)
False

Correct

5. Functions of SQL are:


Mark for Review
(1) Points

Inserting, updating, and deleting rows in a table


Querying data stored in the database
Both (*)
None

Incorrect. Refer to Section 6 Lesson 2.


6. An
alternate Mark for Review
key is a (1) Points
column
that
defines
how
tables
relate to
each
other.

True
False (*)

Correct

7. Relational Database stores data in a two-dimensional matrix known as a table.


Mark for Review
(1) Points

True (*)
False

Correct

8. In Oracle Application Express (APEX), SQL code can be entered from the SQL
Commands option of the SQL Workshop. Mark for Review
(1) Points

True (*)
False

Correct

9. To SELECT all fields from a table enter : SELECT * from tablename


Mark for Review
(1) Points

True (*)
False

Correct
10. Oracle Application Express (APEX) is a web application platform used to
develop and deploy SQL applications. Mark for Review
(1) Points

True (*)
False

Correct
11. SQL
Commands is Mark for Review
a component (1) Points
in the SQL
Workshop of
APEX that
allows
multiple SQL
statements to
be run
simultaneously
within the
current
application
users assigned
database
schema.

True
False (*)

Incorrect. Refer to Section 6 Lesson 1.

12. Constraints cannot be added to a table after its creation.


Mark for Review
(1) Points

True
False (*)

Correct

13. When you drop a table, the database loses all the data in the table.
Mark for Review
(1) Points

True (*)
False

Correct

14. You can decrease the width of a column if:


Mark for Review
(1) Points

(Choose all correct answers)


The column contains only null values (*)
The table has no rows (*)
The decrease in column width is not less than the existing values
in that column (*)
The column width can only be increased and not decreased.

Incorrect. Refer to Section 6 Lesson 3.

15. What does the following statement: ALTER TABLE DEPT_TEST ADD
CONSTRAINT unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) Mark for Review
; (1) Points

It alters the DEPT_TEST table to add a the DEPT_ID and


DEPARTMENT_NAME columns.
It alters the DEPT_TEST table to add a composite foreign key
comprising of the DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a composite unique key
comprising of the DEPT_ID and DEPARTMENT_NAME. (*)
It alters the DEPT_TEST table to add a composite primary key
comprising of the DEPT_ID and DEPARTMENT_NAME.

Incorrect. Refer to Section 6 Lesson 3.

Section 6 - Quiz 1 L1-L4

(Answer all questions in this section)

1. SQL Commands is a component in the SQL Workshop of APEX that allows multiple
SQL statements to be run simultaneously within the current application users Mark for Review
assigned database schema. (1) Points

True
False (*)

Correct

2. In Oracle Application Express (APEX), SQL code can be entered from the SQL
Commands option of the SQL Workshop. Mark for Review
(1) Points

True (*)
False

Correct

3. In Oracle Application Express (APEX) , you can export your SQL code results to a
spreadsheet. Mark for Review
(1) Points

True (*)
False

Correct
4. Oracle Application Express (APEX) is a web application platform used to develop and
deploy SQL applications. Mark for Review
(1) Points

True (*)
False

Correct

5. Relational Database stores data in a two-dimensional matrix known as a table.


Mark for Review
(1) Points

True (*)
False

Correct
6. The stages of
SQL Processing Mark for Review
are Parsing, (1) Points
Optimization,
Row Source
Generation and
_____________
.

Analyzing

Execution (*)

Both

None

Correct

7. To connect to an Oracle database you


need to use a client program. True or Mark for Review
False? (1) Points

True (*)

False

Correct
8. An alternate key is a column that defines
how tables relate to each other. Mark for Review
(1) Points

True

False (*)

Correct

9. Columns without the NOT NULL


constraint can contain null values by Mark for Review
default. (1) Points

True (*)

False

Incorrect.
Refer to
Section 6
Lesson 3.

10. When altering a table, you can decrease


the width of a column if ... Mark for Review
(1) Points

(Choose all correct answers)

The table has no rows (*)

The decrease in column width is not


less than the existing values in that
column (*)
The column contains numeric values

The column contains only null values


(*)

Incorrect.
Refer to
Section 6
Lesson 3.
11. Foreign
keys are Mark for Review
based (1) Points
on data
values
and are
purely
logical,
rather
than
physical,
pointers.

True (*)

False

Correct

12. What does the following statement: ALTER


TABLE DEPT_TEST ADD CONSTRAINT Mark for Review
unq_dept_det UNIQUE (DEPT_ID, (1) Points
DEPARTMENT_NAME) ;

It alters the DEPT_TEST table to add a the


DEPT_ID and DEPARTMENT_NAME
columns.
It alters the DEPT_TEST table to add a
composite primary key comprising of the
DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a
composite unique key comprising of the
DEPT_ID and DEPARTMENT_NAME. (*)
It alters the DEPT_TEST table to add a
composite foreign key comprising of the
DEPT_ID and DEPARTMENT_NAME.

Correct

13. You can delete a row that contains a primary


key that is used as a foreign key in another Mark for Review
table. (1) Points

True

False (*)

Incorrect. Refer to
Section 6 Lesson 4.

14. Any column that is not listed explicitly obtains


a null value in the new row unless we have Mark for Review
default values for the missing columns that are (1) Points
used.
True (*)

False

Correct

15. The UPDATE statement modifies the values of


a specific row or rows if the _______ clause is Mark for Review
specified. (1) Points

WHERE (*)

MODIFY

VALUE

SET

Incorrect. Refer to
Section 6 Lesson 4.

Section 6 - Quiz 2 L5-L9

(Answer all questions in this section)

1. Character strings and dates in the WHERE clause must be enclosed with double
quotation marks (" "). Mark for
Review
(1) Points

True
False (*)

Correct

2. You can override the default order by using parentheses around the expressions
that you want to calculate first. Mark for
Review
(1) Points

True (*)
False

Correct

3. You can use single-ampersand (&) substitution variables to temporarily store


values. Mark for
Review
(1) Points

True (*)
False

Correct

4. The ORDER BY clause must be placed before the WHERE clause in a SQL
statement. Mark for
Review
(1) Points

True
False (*)

Correct

5. With the COMMIT and ROLLBACK statements, you have control over making
changes to the data permanent Mark for
Review
(1) Points

True (*)
False

Correct
6. A
transaction Mark for
begins Review
when the (1) Points
first DML
statement is
encountere
d and ends
when one of
the
following
occurs .....

A COMMIT or ROLLBACK statement is


issued.
A DDL statement, such as CREATE, is
issued.
Both (*)

None

Correct
7. What type of join is the following
statement? SELECT e.EMPLOYEE_ID, Mark for
e.LAST_NAME, d.DEPARTMENT_ID, Review
d.DEPARTMENT_NAME, d.LOCATION_ID (1) Points
FROM EMPLOYEES e, DEPARTMENTS d;

NATURAL JOIN

CROSS JOIN (*)

OUTER JOIN

INNER JOIN

Correct

8. The CARTESIAN JOIN clause produces the


cross-product of two tables. Mark for
Review
(1) Points

True

False (*)

Correct

9. Will the following statement execute


successfully (True or False)? SELECT l.city, Mark for
d.department_name FROM locations l JOIN Review
departments d USING (location_id) WHERE (1) Points
d.location_id = 1400;

True

False (*)

Incorrect. Refer
to Section 6
Lesson 9.

10. A USING clause creates an equijoin


between two tables using one column with Mark for
the same name, regardless of the data Review
type. (1) Points
True (*)

False

Correct
11. You can
specify Mark for
multiple Review
columns (1) Points
after the
DISTINC
T
qualifier.

True (*)

False

Correct

12. If you concatenate a null value with a


character string, the result is a character Mark for
string. True or False? Review
(1) Points

True (*)

False

Correct

13. Which statement displays the last name,


salary, and annual compensation of Mark for
employees where the annual compensation Review
is calculated by multiplying the monthly (1) Points
salary with 15, plus a one-time bonus of
$200.

(Choose all correct answers)

SELECT last_name, salary,


15*salary+200 FROM employees; (*)
SELECT last_name, salary,
15*(salary+200) FROM employees;
Both

None

Correct

14. The following statement displays all the rows


in the departments table: SELECT * FROM Mark for
departments; Review
(1) Points

True (*)

False

Correct

15. To eliminate duplicate rows in the result,


include the DISTINCT keyword in the Mark for
SELECT clause. Review
(1) Points

True (*)

False

Correct

Test: Section 6 Quiz 2 - L5-L9

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 6 - Quiz 2 L5-L9
(Answer all questions in this section)

1. Which of the following statements is an example of a SELF JOIN?


Mark for Review
(1) Points

SELECT e.employee_id, e.last_name, e.department_id, d.department_id,


d.location_id FROM employees e JOIN departments d ON (e.department_id =
d.department_id) AND e.manager_id = 149 ;
SELECT department_id, department_name,location_id, city FROM departments
NATURAL JOIN locations;
SELECT worker.last_name emp, manager.last_name mgr FROM employees
worker JOIN employees manager ON (worker.manager_id =
manager.employee_id); (*)
SELECT e.employee_id, e.last_name, e.department_id, d.department_id,
d.location_id FROM employees e JOIN departments d ON (e.department_id =
d.department_id);

Incorrect. Refer to Section 6 Lesson 9.

2. A join between two tables that returns the results of an INNER join as well as the
results of a left and right join is a FULL OUTER join. Mark for Review
(1) Points

True (*)
False

Correct

3. A join between two tables that returns the results of the INNER join as well as the
unmatched rows from the left (or right) table is called a left (or right) OUTER join. Mark for Review
(1) Points

True (*)
False

Correct

4. The ________ join clause is based on all the columns in the two tables that have the
same name and the same datatype. Mark for Review
(1) Points

NATURAL JOIN (*)


CROSS JOIN
OUTER JOIN
USING

Incorrect. Refer to Section 6 Lesson 9.

5. Which operator is used to display rows based on a range of values?


Mark for Review
(1) Points

IN
LIKE
BETWEEN (*)
NOT NULL

Incorrect. Refer to Section 6 Lesson 7.

Page 1 of 3 Next Summary


Test: Section 6 Quiz 2 - L5-L9

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 6 - Quiz 2 L5-L9
(Answer all questions in this section)

6. You can override the default order by using parentheses around the expressions
that you want to calculate first. Mark for Review
(1) Points

True (*)
False

Correct

7. To eliminate duplicate rows in the result, include the DISTINCT keyword in the
SELECT clause. Mark for Review
(1) Points

True (*)
False

Correct

8. Arithmetic expressions containing a null value evaluate to null.


Mark for Review
(1) Points

True (*)
False

Correct

9. The following statement will result in an error (True or False): SELECT last_name
"Name" , salary*12 "Annual Salary", Annual Salary +100 FROM employees; Mark for Review
(1) Points

True (*)
False

Correct

10. If you concatenate a null value with a character string, the result is a character
string. True or False? Mark for Review
(1) Points

True (*)
False

Correct
Previous Page 2 of 3 Next Summary

Test: Section 6 Quiz 2 - L5-L9

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Top of Form
Section 6 - Quiz 2 L5-L9
(Answer all questions in this section)

11. The following statement displays all the rows in the departments table: SELECT *
FROM departments; Mark for Review
(1) Points

True (*)
False

Correct

12. The ORDER BY clause can be used to sort the rows.


Mark for Review
(1) Points

True (*)
False

Correct

13. You can use single-ampersand (&) substitution variables to temporarily store
values. Mark for Review
(1) Points

True (*)
False

Correct

14. Read consistency guarantees a consistent view of the data at all times.
Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 5.

15. With the COMMIT and ROLLBACK statements, you have control over making
changes to the data permanent Mark for Review
(1) Points

True (*)
False

Correct

Previous Page 3 of 3 Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 4

(Answer all questions in this section)

1. When creating a database based on extracting metadata from an existing database or using
Mark for Review
the DDL code obtained from an implementation of an existing database, which data
modeling approach would you choose? (1) Points

You cannot model this.

Target Modeling

Top-Down Modeling

Bottom-Up Modeling (*)

Correct

2. Forward Engineering is the process of transforming a Relational Data Model to a Logical


Mark for Review
Model.
(1) Points

True

False (*)

Correct
3. All instances of the supertype must be an instance of one of the subtypes. True or False?
Mark for Review
(1) Points

True (*)

False

Correct

4. In Oracle SQL Developer Data Modeler, the attribute that you assign as primary UID is
Mark for Review
automatically set to a mandatory attribute and will be engineered to a primary key in the
relational model. (1) Points

True (*)

False

Correct

Section 5

(Answer all questions in this section)

5. A Relational model is the blue print to the actual database implementation and can be used
Mark for Review
as the basis for implementing any type of Database Management System (DBMS).
(1) Points

True (*)

False

Correct

Page 1 of 10 Next Summary


Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 5

(Answer all questions in this section)

6. Each attribute in an entity maps to a column in a table.


Mark for Review
(1) Points

True (*)

False

Correct

7. A relationship in an ER Diagram expresses the rules that apply between two entities.
Mark for Review
(1) Points

True (*)

False

Correct

8. For a mandatory 1:1 relationship, the foreign key will be placed on the mandatory side of
Mark for Review
the table and will use the NOT NULL constraint to enforce the mandatory condition.
(1) Points

True (*)

False

Correct
9. If a 1:1 relationship is optional in both directions, the foreign key can be in either table.
Mark for Review
(1) Points

True (*)

False

Correct

10. A primary unique identifier in an entity is transformed to a Unique Key in a table.


Mark for Review
(1) Points

True

False (*)

Correct

Previous Page 2 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

11. Will the following statement execute successfully (True or False)? SELECT e.employee_id,
Mark for Review
e.last_name, e.department_id, d.department_id, d.location_id FROM employees e JOIN
departments d ON (e.department_id = d.department_id); (1) Points

True (*)

False
Correct

12. The ________ join clause is based on all the columns in the two tables that have the same
Mark for Review
name and the same datatype.
(1) Points

USING

OUTER JOIN

NATURAL JOIN (*)

CROSS JOIN

Correct

13. Will the following statement execute successfully (True or False)? SELECT employee_id,
Mark for Review
city, department_name FROM employees e JOIN departments d ON d.department_id =
e.department_id JOIN locations l ON d.location_id = l.location_id; (1) Points

True (*)

False

Correct

14. The USING clause can also be used to match columns with the same name, but different
Mark for Review
data types.
(1) Points

True (*)

False

Correct

15. The CARTESIAN JOIN clause produces the cross-product of two tables.
Mark for Review
(1) Points
True

False (*)

Correct

Previous Page 3 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

16. Structured Query Language (SQL)is the set-based, declarative language used to access data
Mark for Review
in an Oracle database.
(1) Points

True (*)

False

Correct

17. An alternate key is a column that defines how tables relate to each other.
Mark for Review
(1) Points

True

False (*)

Correct
18. The stages of SQL Processing are Parsing, Optimization, Row Source Generation and
Mark for Review
_____________ .
(1) Points

Analyzing

Execution (*)

Both

None

Correct

19. Relational Database stores data in a two-dimensional matrix known as a table.


Mark for Review
(1) Points

True (*)

False

Correct

20. What is the result of executing the following statement: SELECT EMPLOYEE_ID,
Mark for Review
LAST_NAME, JOB_ID, DEPARTMENT_ID AS "DEPTID" FROM EMPLOYEES WHERE DEPTID =
90 ; (1) Points

Displays the EMPLOYEE_ID, LAST_NAME, JOB_ID, DEPARTMENT_ID, DEPTID


from the EMPLOYEES table where the department id is 90.

Displays the EMPLOYEE_ID, LAST_NAME, JOB_ID, DEPARTMENT_ID from the


EMPLOYEES table where the department id is 90.

Prompts the user for additinal information.

Throws an error (*)

Correct

Previous Page 4 of 10 Next Summary


Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

21. Which operator is used to display rows based on a range of values?


Mark for Review
(1) Points

BETWEEN (*)

NOT NULL

IN

LIKE

Correct

22. You can display all columns of data in a table by following the SELECT keyword with an
Mark for Review
asterisk (*).
(1) Points

True (*)

False

Correct

23. Which statement will display those employees who have a job title that contains the string
Mark for Review
"JEF" and earn $10,000 or more?
(1) Points
SELECT employee_id, last_name, job_id, salary FROM employees WHERE
salary >= 10000 AND job_id LIKE '%JEF%' ; (*)

SELECT employee_id, last_name, job_id, salary FROM employees WHERE


salary >= 10000 OR job_id LIKE '%JEF%' ;

Both

None

Correct

24. You use the LIKE operator to perform wildcard searches of valid search string values.
Mark for Review
(1) Points

True (*)

False

Correct

25. You can specify multiple columns after the DISTINCT qualifier.
Mark for Review
(1) Points

True (*)

False

Correct

Previous Page 5 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6
(Answer all questions in this section)

26. Which two statements are correct?


Mark for Review
(1) Points

(Choose all correct answers)

SQL statements are case sensitive.

Keywords cannot be abbreviated or split across lines. (*)

Keywords can be abbreviated or split across lines.

SQL statements are not case sensitive (unless indicated). (*)

Correct

27. Which statement displays the last name, salary, and annual compensation of employees
Mark for Review
where the annual compensation is calculated by multiplying the monthly salary with 15,
plus a one-time bonus of $200. (1) Points

(Choose all correct answers)

SELECT last_name, salary, 15*salary+200 FROM employees; (*)

SELECT last_name, salary, 15*(salary+200) FROM employees;

Both

None

Correct

28. If an arithmetic expression contains more than one operator, addition and subtraction are
Mark for Review
evaluated first. True or False?
(1) Points

True
False (*)

Correct

29. The following statement will result in an error (True or False): SELECT last_name "Name" ,
Mark for Review
salary*12 "Annual Salary", Annual Salary +100 FROM employees;
(1) Points

True (*)

False

Correct

30. A literal is a character, a number, or a date that is included in the SELECT list.
Mark for Review
(1) Points

True (*)

False

Correct

Previous Page 6 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

31. The ORDER BY clause must be placed before the WHERE clause in a SQL statement.
Mark for Review
(1) Points
True

False (*)

Correct

32. Which statements will execute successfully?


Mark for Review
(Choose 2)
(1) Points

(Choose all correct answers)

SELECT employee_id, last_name, job_id, department_id, hire_date FROM


employees ORDER BY 3 WHERE department_id = 80;

SELECT employee_id, first_name, last_name FROM employees FETCH FIRST 5


ROWS ONLY ORDER BY employee_id ;

SELECT first_name, last_name FROM employees ORDER BY employee_id


OFFSET 5 ROWS FETCH NEXT 10 ROWS ONLY; (*)

SELECT first_name, last_name FROM employees ORDER BY employee_id


FETCH FIRST 10 ROWS ONLY; (*)

Incorrect. Refer to Section 6 Lesson 8.

33. You can specify the row_limiting_clause in the SQL SELECT statement by placing it before
Mark for Review
the ORDER BY clause.
(1) Points

True

False (*)

Correct

34. The following statement will execute successfully (true or false): SELECT employee_id,
Mark for Review
last_name, salary*12 annsal FROM employees ORDER BY annsal ;
(1) Points
True (*)

False

Correct

35. You can use single-ampersand (&) substitution variables to temporarily store values.
Mark for Review
(1) Points

True (*)

False

Correct

Previous Page 7 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

36. You can use Oracle Application Express (APEX) to ...


Mark for Review
(1) Points

Learn SQL using the SQL Workshop component

Design and develop applications using the Application Builder component

Both of these (*)

None of these.
Incorrect. Refer to Section 6 Lesson 1.

37. It is possible to place conditions on the data retrieved by an SQL statement using the
Mark for Review
WHEN clause.
(1) Points

True

False (*)

Correct

38. SQL Commands is a component in the SQL Workshop of APEX that allows multiple SQL
Mark for Review
statements to be run simultaneously within the current application users assigned
database schema. (1) Points

True

False (*)

Correct

39. To issue a CREATE TABLE statement, you must have the __________ privilege.
Mark for Review
(1) Points

DISTRIBUTE TABLE

CREATE TABLE (*)

Both

None

Correct

40. What does the following statement: ALTER TABLE DEPT_TEST ADD CONSTRAINT
Mark for Review
unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) ;
(1) Points
It alters the DEPT_TEST table to add a composite unique key comprising of
the DEPT_ID and DEPARTMENT_NAME. (*)

It alters the DEPT_TEST table to add a composite foreign key comprising of


the DEPT_ID and DEPARTMENT_NAME.

It alters the DEPT_TEST table to add a composite primary key comprising of


the DEPT_ID and DEPARTMENT_NAME.

It alters the DEPT_TEST table to add a the DEPT_ID and DEPARTMENT_NAME


columns.

Correct

Previous Page 8 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

41. You can name a constraint or the Oracle server generates a name by using the SYS_Cn
Mark for Review
format.
(1) Points

True (*)

False

Correct

42. When you drop a table, the database loses all the data in the table.
Mark for Review
(1) Points

True (*)

False
Correct

43. The command that removes all rows from a table, leaving the table empty and the table
Mark for Review
structure intact is ...
(1) Points

TRUNCATE (*)

DELETE

Both

None

Correct

44. It is not mandatory to specify the column list in the INSERT statement. True or False?
Mark for Review
(1) Points

True (*)

False

Correct

45. The UPDATE statement modifies the values of a specific row or rows if the _______ clause
Mark for Review
is specified.
(1) Points

VALUE

WHERE (*)

SET

MODIFY

Correct
Previous Page 9 of 10 Next Summary

Test: Database Foundations Final Exam

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 6

(Answer all questions in this section)

46. All rows in the table are deleted if you omit the WHERE clause in the DELETE statement.
Mark for Review
(1) Points

True (*)

False

Correct

47. Read consistency guarantees a consistent view of the data at all times.
Mark for Review
(1) Points

True (*)

False

Correct

48. The Oracle server ensures data consistency based on transactions.


Mark for Review
(1) Points

True (*)

False
Correct

49. You can create a marker in the current transaction by using the SAVEPOINT statement.
Mark for Review
(1) Points

True (*)

False

Correct

50. Transactions give you more flexibility and control when changing data, and they ensure
Mark for Review
data consistency in the event of user process failure or system failure.
(1) Points

True (*)

False

Correct

Previous Page 10 of 10 Summary

You might also like