Sei sulla pagina 1di 52

1.

When
building a Mark for Review
model in (1) Points
Oracle
SQL Data
Modeler
you begin
in the
________
tab.

Conceptual
Physical
Logical (*)
Relational

Correct

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

True (*)
False

Correct

3. ________ Engineering is the process of transforming a Logical Data Model to a


Relational Model. Mark for Review
(1) Points

Reverse
Top-Down
Forward (*)
Target

Correct

4. The steps to convert a Relational model to a Logical model using the Oracle SQL
Developer Data Modeler are : Mark for Review
(1) Points

Select the Relational model, Accept defaults, Click the Engineer to Logical
Model icon, Click Engineer
Click the Engineer to Relational Model icon, Select the Logical model, Click
Engineer, Accept defaults.
Select the Relational model, Click the Engineer to Logical Model icon, Accept
defaults, Click Engineer (*)
None of the above.
Correct

Section 5
(Answer all questions in this section)

5. We can apply naming abbreviations using the .csv file containing the
abbreviations Mark for Review
(1) Points

True (*)
False

Correct
6. To define
naming Mark for Review
templates (1) Points
in Oracle
SQL Data
Modeler:

Right click the name of the design in object browser


Select properties, select template
Edit the template to use abbreviations
Do all of these steps. (*)

Correct

7. A ___________ model is the blue print to the actual database implementation


and can be used as the basis for implementing any type of Database Mark for Review
Management System (DBMS). (1) Points

Conceptual
Relational (*)
Logical
Database

Correct

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

Glossary
Naming Templates
Design Rule Validations
All of the above can be used to define naming standards in Oracle SQL Data
Modeler. (*)

Correct

Section 6
(Answer all questions in this section)

9. To see selected records from a table we will need to add a ___________ clause
to the query. Mark for Review
(1) Points

FROM
ORDER BY
WHERE (*)
IF
None of the above.

Incorrect. Refer to Section 6 Lesson 1.

10. In a basic query, following the word FROM comes the fields to be displayed.
Mark for Review
(1) Points

True
False (*)
11. To use a
computer Mark for Review
application (1) Points
you must
understand
how it is
built and
how it
works
inside.

True
False (*)

Correct

12. Which character is used as a substitution variable in APEX?


Mark for Review
(1) Points

;
: (*)
*
&

Incorrect. Refer to Section 6 Lesson 8.

13. Which is the correct order of execution for statements in a SELECT query ?
Mark for Review
(1) Points

FROM, WHERE, SELECT, ORDER BY (*)


SELECT, ORDER BY,FROM, WHERE,
SELECT, WHERE, FROM, ORDER BY
FROM, SELECT, ORDER BY,WHERE

Incorrect. Refer to Section 6 Lesson 8.

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

True
False (*)

Correct

15. Which statements will execute successfully?


(Choose 2) Mark for Review
(1) Points

(Choose all correct answers)

SELECT employee_id, last_name, job_id, department_id, hire_date FROM


employees ORDER BY 3; (*)
SELECT employee_id, first_name, last_name FROM employees ORDER BY
employee_id DESCEND;
SELECT first_name, last_name FROM employees ORDER BY employee_id
DES;
SELECT first_name, last_name, first_name||last_name fullname FROM
employees ORDER BY fullname; (*)
16. 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.

17. 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.

18. 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

Incorrect. Refer to Section 6 Lesson 7.

19. What is the result of executing the following statement: SELECT


EMPLOYEE_ID, LAST_NAME, JOB_ID, DEPARTMENT_ID AS "DEPTID" FROM Mark for Review
EMPLOYEES WHERE DEPARTMENT_ID = 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. (*)
Throws an error
Prompts the user for additional information.

Incorrect. Refer to Section 6 Lesson 7.

20. The ______ operator requires either of the component conditions to be true.
Mark for Review
(1) Points

EITHER
BETWEEN
OR (*)
AND

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

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

22. To connect to an Oracle database you need to use a client program. True or
False? Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

23. Which software is used to manage reading and manipulating a relational


database ? Mark for Review
(1) Points

DBMS software (*)


Spreadsheet software
Flat file software
ERD software

Incorrect. Refer to Section 6 Lesson 2.

24. The type of SQL Command used to modify data is :


Mark for Review
(1) Points

DCL
DDL
DML (*)
TCL
Incorrect. Refer to Section 6 Lesson 2.

25. Table names and column names must begin with a number and should be 1–
30 characters long. Mark for Review
(1) Points

True
False (*)

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

ALTER
ERASE
DROP (*)
SELECT

Incorrect. Refer to Section 6 Lesson 3.

27. What does the following statement do: 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 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.
It alters the DEPT_TEST table to add a composite unique key comprising of
the DEPT_ID and DEPARTMENT_NAME. (*)

Correct

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


Mark for Review
(1) Points

True
False (*)
Correct

29. To create a table you must identify all of the following except :
Mark for Review
(1) Points

Field values (*)


Table name
Field data types
Field names

Incorrect. Refer to Section 6 Lesson 3.

30. A literal can be all of the following except :


Mark for Review
(1) Points

a number
a calculation (*)
a character
a date

31. The
DESCRIBE Mark for Review
command (1) Points
describes
the
results of
a query.

True
False (*)

Correct

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

True (*)
False

Incorrect. Refer to Section 6 Lesson 6.

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

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


SELECT last_name, salary, 15*(salary+200) FROM employees;
Either statement will produced the desired result.
Neither statement will produce the desired result.

Incorrect. Refer to Section 6 Lesson 6.

34. If an arithmetic expression contains more than one operator, __________ are
evaluated first. Mark for Review
(1) Points

addition and subtraction


anything in parenthesis (*)
exponentiation
multiplication and division

Incorrect. Refer to Section 6 Lesson 6.

35. By default column aliases appear _________.


Mark for Review
(1) Points

Lower case
Upper case (*)
Mixed case
There is no default.

36. The ___________


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

CROSS (*)
OUTER
INNER
CARTESIAN

Incorrect. Refer
to Section 6
Lesson 9.

37. Which of the following


statements is Mark for Review
syntactically correct? (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 statements
are syntactically
correct. (*)
Neither statement
is syntactically
correct.

Incorrect. Refer
to Section 6
Lesson 9.

38. A _______ clause


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

NATURAL JOIN
ON
USING (*)
EQUI-JOIN
Incorrect. Refer
to Section 6
Lesson 9.

39. The __________


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

USING (*)
NATURAL JOIN
CROSS JOIN
OUTER JOIN

Incorrect. Refer
to Section 6
Lesson 9.

40. An _______ clause


creates an equijoin Mark for Review
between two tables (1) Points
using one column from
each table regardless
of the name or data
type.

NATURAL JOIN
USING
ON (*)
CROSS JOIN
41. Which of
the Mark for Review
following (1) Points
statements
is an
example of
a SELF
JOIN?

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);
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 ;

Incorrect. Refer to Section 6 Lesson 9.


42. The TRUNCATE statement is a data definition language (DDL) statement and
generates no rollback information. Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 4.

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

STANDARD
DEFAULT (*)
INSERT
BEGINNING

Incorrect. Refer to Section 6 Lesson 4.

44. ___________________ is used to add, modify and delete data.


Mark for Review
(1) Points

Data Control Language


Data Management Language
Data Manipulation Language (*)
Data Definition Language

Incorrect. Refer to Section 6 Lesson 4.

45. When issuing a SQL DELETE command all rows in the table are deleted if you
omit the __________ clause. Mark for Review
(1) Points

WHEN
WHERE (*)
IF
SELECT

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

TRUNCATE (*)
DELETE
Both
None

Incorrect. Refer to Section 6 Lesson 4.

47. A database transaction consists of the following except :


Mark for Review
(1) Points

SELECT queries (*)


One TCL Statement
One DDL Statement
DML statements representing one consistent change to the data

Incorrect. Refer to Section 6 Lesson 5.

48. An automatic commit occurs when _________ . (Choose 2)


Mark for Review
(1) Points

(Choose all correct answers)

A DML statement is executed.


SELECT statement is executed.
A TCL statement is executed. (*)
A DDL statement is executed. (*)

Incorrect. Refer to Section 6 Lesson 5.

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


Mark for Review
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 5.


50. A transaction begins when the first DML statement is encountered and ends
when one of the following occurs ..... Mark for Review
(1) Points

A COMMIT or ROLLBACK statement is issued.


A DDL statement, such as CREATE, is issued.
Either of the above statements (*)
None of the above

1. Which of
the Mark for Review
following (1) Points
cannot
be
modeled
using
the
Oracle
SQL
Data
Modeler
?

Entities, attributes, UIDs

Supertype and subtype entities

Recursive Relationships

Arc relationships

All can be modeled. (*)

Correct

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

True (*)

False

Correct

3. _______ 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

Forward

Reverse (*)
Top-Down

Target

Incorrect. Refer to Section 4 Lesson 2.

4. The steps to convert a Logical model to a Relational model using the Oracle SQL
Developer Data Modeler are : Mark for Review
(1) Points

Select the Logical model, Click the Engineer to Relational Model icon, Accept
defaults, Click Engineer (*)
Click the Engineer to Relational Model icon, Select the Logical model, Click
Engineer, Accept defaults.
Select the Logical model, Accept defaults, Click the Engineer to Relational
Model icon, Click Engineer
None of the above.

Correct

Section 5
(Answer all questions in this section)

5. To use the Oracle SQL Developer Data Modeler to apply naming standards :
Mark for Review
(1) Points

Use a .docx file constaining table names and abbreviations

Use a .csv file constaining table names and abbreviations (*)

Use a .accdb file constaining table names and abbreviations

None of the above.


6. Primary key constraints
are named using the Mark for Review
__________________. (1) Points

table short name (*)

UID suffix

foreign key name

full table name

7. 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 (*)

Primary Key

Candidate Key

Correct

8. The steps to create a glossary from an existing Logical model are :


Mark for Review
(1) Points

Right click Logical model, select Create Glossary from Logical


Model (*)
Double click the Logical Model

Rick click the Relational model, select Create Glossary from


Relational Model
None of the above.

Correct

Section 6
(Answer all questions in this section)

9. You use the ______ operator to perform wildcard searches of valid


search string values. Mark for Review
(1) Points

STRING

MATCH

BETWEEN

LIKE (*)

Correct

10. 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%' ;
Either statement displays the desired output.
Neither statement displays the desired output.

11. Which
operator Mark for Review
is used (1) Points
to
display
rows
based
on an
ordered
range of
values?

NOT NULL

LIKE

IN

BETWEEN (*)

Correct

12. Which of the following is the wildcard used for any number of characters in SQL?
Mark for Review
(1) Points

&

||

% (*)

Correct

13. According to the rules of precedence which operator will be evaluated first?
Mark for Review
(1) Points

AND (*)

OR

Both are on the same level of precedence.

Correct

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

WHERE
DESCRIBE

DISTINCT (*)

IF

Correct

15. Which column alias will cause an error?


Mark for Review
(1) Points

SELECT last_name AS Last Name FROM employees; (*)

SELECT last_name "Last Name" FROM employees;

SELECT last_name lname FROM employees;

SELECT last_name AS lname FROM employees;

16. You can


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

True (*)

False

Correct

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

* (*)

ALL

Correct

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

alias
concatenation (*)

addition

literal

Correct

19. The DESCRIBE command describes the results of a query.


Mark for Review
(1) Points

True

False (*)

Correct

20. Which is the correct order of execution for statements in a SELECT query ?
Mark for Review
(1) Points

SELECT, WHERE, FROM, ORDER BY

SELECT, ORDER BY,FROM, WHERE,

FROM, WHERE, SELECT, ORDER BY (*)

FROM, SELECT, ORDER BY,WHERE

21. The following


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

True (*)

False

Correct

22. You can use _____________ to temporarily store values, while executing a
query. Mark for Review
(1) Points

literal values
substitution variables (*)

database fields

database tables

Correct

23. Which character is used as a substitution variable in APEX?


Mark for Review
(1) Points

&

: (*)

Incorrect. Refer to Section 6 Lesson 8.

24. In the SQL Commands option of APEX, you can run more than one SQL
command at a time. Mark for Review
(1) Points

True

False (*)

Correct

25. The _________ clause in a query comes immediately after the SELECT and
FROM. Mark for Review
(1) Points

IF

GROUP BY

WHERE (*)

ORDER BY

26. In APEX
SQL Mark for Review
Workshop (1) Points
and
Object
Browser
options
you can
view table
layouts.

True (*)
False

Correct

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

True (*)

False

Correct

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


Mark for Review
(1) Points

SELECT worker.last_name emp, manager.last_name mgr FROM


employees worker JOIN employees manager ON (worker.manager_id =
manager.employee_id); (*)
SELECT department_id, department_name,location_id, city FROM
departments NATURAL JOIN locations;
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 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 ;

Correct

29. A _______________ is a join condition containing something other than an


equality operator. Mark for Review
(1) Points

NONEQUIJOIN (*)

OUTER JOIN

INNER JOIN

CROSS JOIN

Correct

30. An _______ clause creates an equijoin between two tables using one column
from each table regardless of the name or data type. Mark for Review
(1) Points

CROSS JOIN

ON (*)
NATURAL JOIN

USING

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

OUTER JOIN

USING (*)

NATURAL JOIN

CROSS JOIN

Correct

32. 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 statements are syntactically correct. (*)

Neither statement is syntactically correct.

Incorrect. Refer to Section 6 Lesson 9.

33. What does the following statement do: 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 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.
It alters the DEPT_TEST table to add a composite unique key
comprising of the DEPT_ID and DEPARTMENT_NAME. (*)

Correct
34. Constraints ensure the consistency and integrity of the database.
Mark for Review
(1) Points

True (*)

False

Correct

35. The Data Definition Language performs all of the following except :
Mark for Review
(1) Points

Create tables

Insert data into tables (*)

Add constraints to tables

Alter tables

36. If a
table Mark for Review
already (1) Points
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?

True (*)

False

Correct

37. 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

38. Which software is used to manage reading and manipulating a relational


database ? Mark for Review
(1) Points

Spreadsheet software

ERD software

Flat file software

DBMS software (*)

Correct

39. A __________ can be found at the intersection of a row and column and
contains one value. Mark for Review
(1) Points

table

instance

entity

field (*)

Correct

40. To connect to an Oracle database you need to use a client program. True or
False? Mark for Review
(1) Points

True (*)

False

41. All of the


following Mark for Review
are tools (1) Points
to access
a
relational
database
except :

SQL * Plus

Oracle SQL Data Modeler (*)

Oracle Application Express


Oracle SQL Developer

Correct

42. The command that always 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

Incorrect. Refer to Section 6 Lesson 4.

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

block

statement

transaction (*)

command

Correct

44. Data Manipulation Language includes all of the following except :


Mark for Review
(1) Points

DELETE

COMMIT (*)

INSERT

UPDATE

Correct

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

VALUE

MODIFY

SET (*)
WHERE

46. When
issuing a Mark for Review
SQL DELETE (1) Points
command
all rows in
the table
are deleted
if you omit
the
__________
clause.

SELECT

IF

WHERE (*)

WHEN

Correct

47. ____________ 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

Procedures

Functions

Code blocks

Transactions (*)

Correct

48. A transaction begins when the first DML statement is encountered and ends
when one of the following occurs ..... Mark for Review
(1) Points

A COMMIT or ROLLBACK statement is issued.

A DDL statement, such as CREATE, is issued.

Either of the above statements (*)

None of the above

Incorrect. Refer to Section 6 Lesson 5.

49. Users may view data that is in the process of being changed by another
user. Mark for Review
(1) Points
True

False (*)

Correct

50. An automatic commit occurs when _________ . (Choose 2)


Mark for Review
(1) Points

(Choose all correct answers)

A DML statement is executed.

A DDL statement is executed. (*)

A TCL statement is executed. (*)

SELECT statement is executed.

Section 4
(Answer all questions in this section)

1. The Oracle SQL Data Modeler enables you to do all of the following except:
Mark for Review
(1) Points

Store application data (*)

Capture business rules and information

Store metadata information

Create process, logical, relational and physical models

Correct

2. When building a model in Oracle SQL Data Modeler you begin in the ________ tab.
Mark for Review
(1) Points

Relational

Conceptual

Physical

Logical (*)

Correct

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


Mark for Review
(1) Points
True (*)

False

Correct

4. The steps to convert a Logical model to a Relational model using the Oracle SQL
Developer Data Modeler are : Mark for Review
(1) Points

Select the Logical model, Click the Engineer to Relational Model icon, Accept
defaults, Click Engineer (*)
Click the Engineer to Relational Model icon, Select the Logical model, Click
Engineer, Accept defaults.
Select the Logical model, Accept defaults, Click the Engineer to Relational Model
icon, Click Engineer
None of the above.

Correct

Section 5
(Answer all questions in this section)

5. Constraints should be given meaningful names to make them easier to reference.


Mark for Review
(1) Points

True (*)

False

Correct

Section 5
(Answer all questions in this section)

6. To use the Oracle SQL Developer Data Modeler to apply naming standards :
Mark for Review
(1) Points

Use a .docx file constaining table names and abbreviations

Use a .csv file constaining table names and abbreviations (*)

Use a .accdb file constaining table names and abbreviations

None of the above.

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

Database

Conceptual

Logical

Relational (*)

Correct

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

True (*)

False

Correct

Section 6
(Answer all questions in this section)

9. Which statements will execute successfully?


(Choose 2) Mark for Review
(1) Points

(Choose all correct answers)

SELECT employee_id, first_name, last_name FROM employees ORDER BY


employee_id DESCEND;
SELECT first_name, last_name, first_name||last_name fullname FROM
employees ORDER BY fullname; (*)
SELECT first_name, last_name FROM employees ORDER BY employee_id DES;

SELECT employee_id, last_name, job_id, department_id, hire_date FROM


employees ORDER BY 3; (*)

Incorrect. Refer to Section 6 Lesson 8.

10. Which SQL key word is used to do ranking in top-n-analysis


Mark for Review
(1) Points

ORDER BY

WHERE
ROWNUM (*)

GROUP BY

Correct

Section 6
(Answer all questions in this section)

11. Which is the correct order of execution for statements in a SELECT query ?
Mark for Review
(1) Points

SELECT, WHERE, FROM, ORDER BY

FROM, SELECT, ORDER BY,WHERE

SELECT, ORDER BY,FROM, WHERE,

FROM, WHERE, SELECT, ORDER BY (*)

Correct

12. Which character is used as a substitution variable in APEX?


Mark for Review
(1) Points

&

: (*)

Correct

13. 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

14. 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.

15. Which column alias will cause an error?


Mark for Review
(1) Points

SELECT last_name AS Last Name FROM employees; (*)

SELECT last_name AS lname FROM employees;

SELECT last_name lname FROM employees;

SELECT last_name "Last Name" FROM employees;

Correct

Section 6
(Answer all questions in this section)

16. You can display selected columns of a table by listing them in the __________
clause. Mark for Review
(1) Points

WHERE

FROM

IF

SELECT (*)

Correct

17. Arithmetic expressions containing a null value evaluate to _________.


Mark for Review
(1) Points

null (*)

will cause an error

whatever the calculation evaluates to

zero

Correct

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

True (*)

False
Correct

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

Transactions (*)

Code blocks

Functions

Procedures

Correct

20. A transaction begins when the first DML statement is encountered and ends when
one of the following occurs ..... Mark for Review
(1) Points

A COMMIT or ROLLBACK statement is issued.

A DDL statement, such as CREATE, is issued.

Either of the above statements (*)

None of the above

Correct

Section 6
(Answer all questions in this section)

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


Mark for Review
(1) Points

True (*)

False

Correct

22. Users may view data that is in the process of being changed by another user.
Mark for Review
(1) Points

True

False (*)

Correct
23. Which operator is used to display rows based on an ordered range of values?
Mark for Review
(1) Points

BETWEEN (*)

LIKE

NOT NULL

IN

Correct

24. What is the result of executing the following statement: SELECT EMPLOYEE_ID,
LAST_NAME, JOB_ID, DEPARTMENT_ID AS "DEPTID" FROM EMPLOYEES WHERE Mark for Review
DEPARTMENT_ID = 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 additional information.

Throws an error

Incorrect. Refer to Section 6 Lesson 7.

25. 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%' ;
Either statement displays the desired output.

Neither statement displays the desired output.

Correct

Section 6
(Answer all questions in this section)

26. According to the rules of precedence which operator will be evaluated first?
Mark for Review
(1) Points

AND (*)

OR
Both are on the same level of precedence.

Correct

27. 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

28. You can logically relate data from multiple tables using ___________.
Mark for Review
(1) Points

check constraints

data values

foreign keys (*)

unique keys

Correct

29. A table is the basic storage structure of an RDBMS.


Mark for Review
(1) Points

True (*)

False

Correct

30. All of the following are stages of SQL Processing except:


Mark for Review
(1) Points

Row Source Generation

Execution

Parsing

Optimization

All of the above options are stages of SQL processing. (*)

Correct
Section 6
(Answer all questions in this section)

31. Functions of SQL are:


Mark for Review
(1) Points

Inserting, updating, and deleting rows in a table

Querying data stored in the database

Both of the above options are functions of SQL (*)

Neither of the above options are functions of SQL

Incorrect. Refer to Section 6 Lesson 2.

32. Oracle Application Express is an application platform used to share and learn _____
and __________. Mark for Review
(1) Points

SQL, PL/SQL (*)

SQL, Java Script

Java, PL/SQL

SQL, Java

Correct

33. You can use Application Express (APEX) for ...


Mark for Review
(1) Points

Developing and expanding your skills with Oracle database, SQL and PL/SQL

Gaining access to SQL and PL/SQL examples shared by the Oracle developer
community
APEX can be used for both of the above functions (*)

APEX cannot be used for either of the above functions.

Incorrect. Refer to Section 6 Lesson 1.

34. In the SQL Workshop/SQL Commands ___________ tab you can view and retrieve
previously run queries. Mark for Review
(1) Points

Describe

History (*)

Explain
Saved SQL

Results

Correct

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

True (*)

False

Correct

Section 6
(Answer all questions in this section)

36. Joining tables with the NATURAL JOIN, USING, or ON clauses results in an
__________ join. (Choose 2) Mark for Review
(1) Points

(Choose all correct answers)

Equi-join (*)

INNER (*)

CROSS

OUTER

Correct

37. 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

38. The ___________ JOIN clause produces the cross-product of two tables.
Mark for Review
(1) Points

OUTER

CROSS (*)
INNER

CARTESIAN

Correct

39. 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 statements are syntactically correct. (*)
Neither statement is syntactically correct.

Correct

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

NATURAL JOIN

CROSS JOIN (*)

OUTER JOIN

INNER JOIN

Incorrect. Refer to Section 6 Lesson 9.

Section 6
(Answer all questions in this section)

41. Data Manipulation Language includes all of the following except :


Mark for Review
(1) Points

COMMIT (*)

INSERT

DELETE

UPDATE

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

True (*)

False

Correct

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

INSERT

BEGINNING

STANDARD

DEFAULT (*)

Correct

44. ___________________ is used to add, modify and delete data.


Mark for Review
(1) Points

Data Management Language

Data Manipulation Language (*)

Data Definition Language

Data Control Language

Correct

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

True (*)

False

Correct

Section 6
(Answer all questions in this section)

46. What does the following statement do: 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 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.

Correct

47. DDL means :


Mark for Review
(1) Points

Data Distribution Language

Data Definers Language

Data Definition Language (*)

None of the above.

Correct

48. When altering a table, you can decrease the width of a column if …
(Choose 3) 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 column contains numeric values

The table has no rows (*)

Correct

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


Mark for Review
(1) Points

True

False (*)

Correct

50. 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

NOT NULL

CHECK

UNIQUE KEY

PRIMARY KEY (*)

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

Section 4
(Answer all questions in this section)

1. The Oracle SQL Data Modeler enables you to do all of the following except:
Mark for Review
(1) Points

Store metadata information

Store application data (*)

Create process, logical, relational and physical models

Capture business rules and information

Correct

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

True (*)

False

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, which Mark for Review
data modeling approach would you choose? (1) Points

Bottom-Up Modeling (*)

You cannot model this.

Target Modeling

Top-Down Modeling

Incorrect. Refer to Section 4 Lesson 2.


4. Top-Down Modeling is the approach taken for designing a new database.
Mark for Review
(1) Points

True (*)

False

Incorrect. Refer to Section 4 Lesson 2.

Section 5
(Answer all questions in this section)

5. In Oracle SQL Developer Data Modeler you can select select how you want to map your
subtypes. Mark for Review
(1) Points

True (*)

False

Correct

6. Foreign key constraints are named using the ______________ of both tables.
Mark for Review
(1) Points

full table name

UID suffix

foreign key name

short table name (*)

Incorrect. Refer to Section 5 Lesson 2.

7. 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

Candidate Key

Foreign Key (*)

Primary Key

Super Key

Incorrect. Refer to Section 5 Lesson 1.


8. Each attribute in an entity maps to a _________ in a table.
Mark for Review
(1) Points

row

column (*)

primary key

instance

Correct

Section 6
(Answer all questions in this section)

9. Which software is used to manage reading and manipulating a relational database ?


Mark for Review
(1) Points

ERD software

Flat file software

DBMS software (*)

Spreadsheet software

Correct

10. The type of SQL Command used to define database structures is :


Mark for Review
(1) Points

TCL

DDL (*)

DCL

DML

Correct

Section 6
(Answer all questions in this section)

11. You can logically relate data from multiple tables using ___________.
Mark for Review
(1) Points
check constraints

data values

unique keys

foreign keys (*)

Correct

12. All of the following are tools to access a relational database except :
Mark for Review
(1) Points

Oracle SQL Developer

Oracle SQL Data Modeler (*)

Oracle Application Express


SQL * Plus

Correct

13. In the SQL Workshop/SQL Commands ___________ tab you can view and retrieve
previously run queries. Mark for Review
(1) Points

Explain

Saved SQL

History (*)

Results

Describe

Incorrect. Refer to Section 6 Lesson 1.

14. To see all the fields and records in the employees table you can run the following
query : Mark for Review
(1) Points

SELECT all FROM employees;

SELECT columns FROM employees;

SELECT * FROM employees; (*)

SELECT # FROM employees;

None of the above.

Correct
15. SQL Commands can be entered and run from the ________________ option within
the APEX Application. Mark for Review
(1) Points

Packed Apps

SQL Workshop (*)

Utilities

Application Builder

Correct

Section 6
(Answer all questions in this section)

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

True (*)

False

Correct

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

statement

block

transaction (*)

command

Incorrect. Refer to Section 6 Lesson 4.

18. ___________________ is used to add, modify and delete data.


Mark for Review
(1) Points

Data Management Language

Data Definition Language

Data Manipulation Language (*)

Data Control Language

Correct
19. Data Manipulation Language includes all of the following except :
Mark for Review
(1) Points

INSERT

COMMIT (*)

UPDATE

DELETE

Correct

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

True (*)

False

Correct

Section 6
(Answer all questions in this section)

21. Which coluwill cause an error?


Mark for Review
(1) Points

SELECT last_name "Last Name" FROM employees;

SELECT last_name lname FROM employees;

SELECT last_name AS Last Name FROM employees; (*)

SELECT last_name AS lname FROM employees;

Correct

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

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

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

Either statement will produced the desired result.

Neither statement will produce the desired result.

Incorrect. Refer to Section 6 Lesson 6.


23. The DESCRIBE command describes the results of a query.
Mark for Review
(1) Points

True

False (*)

Incorrect. Refer to Section 6 Lesson 6.

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

DISTINCT (*)

DESCRIBE

WHERE

IF

Correct

25. Literals can be used within a SELECT statement .


Mark for Review
(1) Points

True (*)

False

Incorrect. Refer to Section 6 Lesson 6.

Section 6
(Answer all questions in this section)

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

* (*)

ALL

Incorrect. Refer to Section 6 Lesson 6.

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

True (*)

False

Correct

28. ___________ constraints can only be created at the column level.


Mark for Review
(1) Points

Unique

Not Null (*)

Primary Key

Check

Correct

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


Mark for Review
(1) Points

True (*)

False

Correct

30. DDL means :


Mark for Review
(1) Points

Data Distribution Language

Data Definers Language

Data Definition Language (*)

None of the above.

Correct

Section 6
(Answer all questions in this section)

31. To create a table you must identify all of the following except :
Mark for Review
(1) Points

Field values (*)


Table name

Field names

Field data types

Incorrect. Refer to Section 6 Lesson 3.

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

True (*)

False

Incorrect. Refer to Section 6 Lesson 9.

33. A self-join can be used when there are two fields with the same data on a table that
have different meanings. Mark for Review
(1) Points

True (*)

False

Correct

34. We must use the ON clause to join three tables.


Mark for Review
(1) Points

True

False (*)

Incorrect. Refer to Section 6 Lesson 9.

35. 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

OUTER JOIN

NATURAL JOIN (*)

USING

Incorrect. Refer to Section 6 Lesson 9.

Section 6
(Answer all questions in this section)

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

EQUI-JOIN

NATURAL JOIN

ON

USING (*)

Incorrect. Refer to Section 6 Lesson 9.

37. The ___________ JOIN clause produces the cross-product of two tables.
Mark for Review
(1) Points

OUTER

INNER

CROSS (*)

CARTESIAN

Correct

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

DELETE

COMMIT (*)

WHERE

INSERT

Correct

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

Procedures

Functions

Code blocks

Transactions (*)
Incorrect. Refer to Section 6 Lesson 5.

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

Data

Table

Write

Read (*)

Incorrect. Refer to Section 6 Lesson 5.

Section 6
(Answer all questions in this section)

41. Users may view data that is in the process of being changed by another user.
Mark for Review
(1) Points

True

False (*)

Correct

42. The ______ operator requires either of the component conditions to be true.
Mark for Review
(1) Points

EITHER

AND

OR (*)

BETWEEN

Incorrect. Refer to Section 6 Lesson 7.

43. According to the rules of precedence which operator will be evaluated first?
Mark for Review
(1) Points

AND (*)

OR

Both are on the same level of precedence.

Incorrect. Refer to Section 6 Lesson 7.


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

True (*)

False

Correct

45. 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

Incorrect. Refer to Section 6 Lesson 7.

Section 6
(Answer all questions in this section)

46. Which of the following is the wildcard used for any number of characters in SQL?
Mark for Review
(1) Points

&

% (*)

||

Correct

47. Top-n-analysis is used when you want to retrieve only the top number of records from
a result set. Mark for Review
(1) Points

True (*)

False

Correct

48. Which SQL key word is used to do ranking in top-n-analysis


Mark for Review
(1) Points

WHERE
GROUP BY

ROWNUM (*)

ORDER BY

Correct

49. Which is the correct order of execution for statements in a SELECT query ?
Mark for Review
(1) Points

SELECT, WHERE, FROM, ORDER BY

FROM, SELECT, ORDER BY,WHERE

SELECT, ORDER BY,FROM, WHERE,

FROM, WHERE, SELECT, ORDER BY (*)

Incorrect. Refer to Section 6 Lesson 8.

50. Substitution variables are used when you want to prompt for different criteria in a
condition. Mark for Review
(1) Points

True (*)

False

Correct

Potrebbero piacerti anche