Sie sind auf Seite 1von 27

1.

When Mark for Review


building a
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 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

3. ________ Engineering is the process of transforming a Logical Data Model to a Mark for Review
Relational Model.
(1) Points

Reverse
Top-Down
Forward (*)
Target

Correct

4. The steps to convert a Relational model to a Logical model using the Oracle SQL Mark for Review
Developer Data Modeler are :
(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 Mark for Review
abbreviations
(1) Points

True (*)
False

Correct
6. To define Mark for Review
naming
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 Mark for Review
and can be used as the basis for implementing any type of Database
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 Mark for Review
to the query.
(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 Mark for Review


computer
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 Mark for Review
statement.
(1) Points

True
False (*)

Correct

15. 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; (*)
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 Mark for Review
condition
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 Mark for Review
quotation marks (' ').
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 7.

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

True (*)
False

Incorrect. Refer to Section 6 Lesson 7.

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


Query
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 Mark for Review
False?
(1) Points

True (*)
False

Incorrect. Refer to Section 6 Lesson 2.

23. Which software is used to manage reading and manipulating a relational Mark for Review
database ?
(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– Mark for Review
30 characters long.
(1) Points

True
False (*)

26. When Mark for Review


you
_______ (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 Mark for Review
CONSTRAINT unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) ;
(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 Mark for Review


DESCRIBE
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 Mark for Review
employees where the annual compensation is calculated by multiplying the
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 Mark for Review
evaluated first.
(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 ___________ Mark for Review


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

CROSS (*)
OUTER
INNER
CARTESIAN
Incorrect. Refer
to Section 6
Lesson 9.

37. Which of the following Mark for Review


statements is
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 Mark for Review


creates an equijoin
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 __________ Mark for Review


clause can be used to
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 Mark for Review


creates an equijoin
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 Mark for Review


the
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 Mark for Review
generates no rollback information.
(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 Mark for Review
unless we have _________ values for the missing columns that are used.
(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 Mark for Review
omit the __________ clause.
(1) Points

WHEN
WHERE (*)
IF
SELECT
46. The Mark for Review
command
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 Mark for Review
when one of the following occurs .....
(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 Mark for Review


the
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 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
3. _______ Engineering is the process of creating a conceptual or logical model by Mark for Review
extracting the information from an existing data source.
(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 Mark for Review
Developer Data Modeler are :
(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 Mark for Review


constraints are named
using the (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 Mark for Review
primary key in the same or another table.
(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 Mark for Review
search string values.
(1) Points

STRING
MATCH
BETWEEN
LIKE (*)

Correct

10. Which statement will display those employees who have a job title Mark for Review
that contains the string ‘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%' ;
Either statement displays the desired output.
Neither statement displays the desired output.

11. Which Mark for Review


operator
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 Mark for Review
SELECT clause.
(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 Mark for Review


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

True (*)
False

Correct

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

* (*)
%
ALL
#

Correct

18. You can link columns to other columns, arithmetic expressions, or constant Mark for Review
values to create a character expression by using the ____________ operator
(||). (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 Mark for Review


following
statement (1) Points
will execute
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 Mark for Review
query.
(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 Mark for Review
command at a time.
(1) Points

True
False (*)

Correct

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

IF
GROUP BY
WHERE (*)
ORDER BY

26. In APEX Mark for Review


SQL
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 Mark for Review
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 = (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 Mark for Review
equality operator.
(1) Points

NONEQUIJOIN (*)
OUTER JOIN
INNER JOIN
CROSS JOIN

Correct

30. An _______ clause creates an equijoin between two tables using one column Mark for Review
from each table regardless of the name or data type.
(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 Mark for Review
CONSTRAINT unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) ;
(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 Mark for Review


table
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 Mark for Review
SYS_Cn format.
(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 Mark for Review
one value.
(1) Points

table
instance
entity
field (*)

Correct

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

True (*)
False

41. All of the Mark for Review


following
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 Mark for Review
empty and the table structure intact is ...
(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 Mark for Review
_______ clause is specified.
(1) Points

VALUE
MODIFY
SET (*)
WHERE

46. When Mark for Review


issuing a
SQL (1) Points
DELETE
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 Mark for Review
they ensure data consistency in the event of user process failure or system
failure. (1) Points

Procedures
Functions
Code blocks
Transactions (*)

Correct

48. A transaction begins when the first DML statement is encountered and ends Mark for Review
when one of the following occurs .....
(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.

Das könnte Ihnen auch gefallen