Sie sind auf Seite 1von 15

Section 1 Quiz

(Answer all questions in this section)

1. Which of the following can be done using PL/SQL?


Mark for Review
(1) Points

Develop Web applications using the Web Application Toolkit

All of these can be done (*)

Manage database security

Update data (DML)

Create customized reports

Correct

2. Procedural constructs give you better control of your SQL statements and their
execution. True or False? Mark for Review
(1) Points

True (*)

False

Correct

3. Comparing PL/SQL with other languages such as C and Java, which of the
following statements is true? Mark for Review
(1) Points

PL/SQL is harder to learn

PL/SQL is easier to learn and more efficient (*)

PL/SQL is easier to learn but less efficient

PL/SQL is easier to learn and does not require an Oracle database or tool

Correct

4. Which of the following statements about exception handling in PL/SQL is false?


Mark for Review
(1) Points

You can prepare for application exceptions by creating exception handlers.

None of these are false (*)


All of these are false

You can prepare for database exceptions by creating exception handlers.

Exception handling code tells your program what to do when an error is


encountered.

Correct

5. Which of the following can be compiled as a standalone program outside the


database? Mark for Review
(1) Points

A program developed in PL/SQL or C

A program developed in PL/SQL or Java

Programs developed in Java or C, but not in PL/SQL (*)

A program developed in PL/SQL

None of these can be compiled outside of a database

Correct
6. Which
lines of Mark for Review
code will
(1) Points
correctly
display
the
message
"The cat
sat on
the
mat"?
(Choose
two.)

(Choose all correct answers)

DBMS_OUTPUT.PUT_LINE(The cat sat on the mat);

DBMS_OUTPUT.PUT_LINE('The cat sat on the mat'); (*)

DBMS_OUTPUT.PUT_LINE('The cat sat ' || 'on the mat'); (*)

DBMS_OUTPUT.PUT_LINE('The cat' || 'sat on the mat');

Correct

7. What are the characteristics of an anonymous block? (Choose two.)


Mark for Review
(1) Points

(Choose all correct answers)


Unnamed (*)

Can be declared as procedures or as functions

Stored in the database

Compiled each time the code is executed (*)

Incorrect. Refer to Section 1 Lesson 3.

8. Which PL/SQL block type must return a value?


Mark for Review
(1) Points

Anonymous

Package

Procedure

Function (*)

Correct

9. What kind of block is defined by the following PL/SQL code?


Mark for Review
BEGIN (1) Points
DBMS_OUTPUT.PUT_LINE('My first quiz');
END;

procedure

subroutine

function

anonymous (*)

Correct

10. Which statements are mandatory in a PL/SQL block? (Choose two.)


Mark for Review
(1) Points

(Choose all correct answers)

END; (*)

EXCEPTION

BEGIN (*)

DECLARE
Correct
11. The P
in Mark for Review
PL/SQL
(1) Points
stands
for:

Primary

Procedural (*)

Processing

Proprietary

Correct

12. SQL is a common access language for many types of databases, including
Oracle. True or False? Mark for Review
(1) Points

True (*)

False

Correct

13. Nonprocedural languages allow the programmer to produce a result when a


series of steps are followed. True or False? Mark for Review
(1) Points

True

False (*)

Correct

14. Which of the following statements is true?


Mark for Review
(1) Points

(Choose all correct answers)

PL/SQL is an Oracle proprietary, procedural, third-generation


programming language. (*)
PL/SQL is an Oracle proprietary, procedural, fourth-generation
programming language.
PL/SQL is an ANSI-compliant, procedural programming language.

SQL is an ANSI-compliant, nonprocedural, fourth-generation


programming language. (*)

Correct
15. PL/SQL is an Oracle proprietary, procedural, fourth-generation programming
language. True or False? Mark for Review
(1) Points

True

False (*)

Correct

Section 1 Quiz

(Answer all questions in this section)

1. What are the characteristics of an anonymous block? (Choose two.)


Mark for Review

(1) Points

(Choose all correct answers)

Stored in the database

Compiled each time the code is executed (*)

Unnamed (*)

Can be declared as procedures or as functions


Correct Correct

2. Which PL/SQL block type must return a value? Mark for Review

(1) Points

Procedure

Function (*)

Anonymous

Package

Correct Correct

3. In which part of the PL/SQL block are declarations of variables defined?


Mark for Review

(1) Points

Exception
Executable

Definition

Declarative (*)

Correct Correct

4. In a PL/SQL block, which of the following should not be followed by a


semicolon? Mark for Review

(1) Points

DECLARE (*)

All SQL statements

All PL/SQL statements

END
Correct Correct

5. Which lines of code will correctly display the message "Hello World" ?
(Choose two.) Mark for Review

(1) Points

(Choose all correct answers)

DBMS_OUTPUT.PUT_LINE('Hello' || ' ' || 'World'); (*)

DBMS_OUTPUT.PUT_LINE('Hello World'); (*)

DBMS_OUTPUT('Hello World');

DBMS_OUTPUT.PUT_LINE('Hello' || 'World');

Correct Correct

6. The P in PL/SQL stands for: Mark for Review

(1) Points

Proprietary
Processing

Procedural (*)

Primary

Correct Correct

7. A program which specifies a list of operations to be performed sequentially


to achieve the desired result can be called: Mark for Review

(1) Points

low level

procedural (*)

nondeclarative

declarative
Correct Correct

8. Nonprocedural languages allow the programmer to produce a result when a


series of steps are followed. True or False? Mark for Review

(1) Points

True

False (*)

Correct Correct

9. PL/SQL extends SQL by including all of the following except: Mark for
Review

(1) Points

variables

reusable program units

conditional statements
nonprocedural constructs (*)

constants

Correct Correct

10. SQL is a common access language for many types of databases, including
Oracle. True or False? Mark for Review

(1) Points

True (*)

False

Correct Correct

11. PL/SQL can be used not only with an Oracle database, but also with any kind of relational
database. True or False? Mark for Review

(1) Points

True

False (*)
Correct Correct

12. Which of the following statements about exception handling in PL/SQL is


false? Mark for Review

(1) Points

You can prepare for application exceptions by creating exception handlers.

None of these are false (*)

You can prepare for database exceptions by creating exception handlers.

Exception handling code tells your program what to do when an error is encountered.

All of these are false

Correct Correct

13. Which of the following can be done using PL/SQL? Mark for Review
(1) Points

Create complex applications

Manage database tasks such as security

Create custom reports

All of these can be done (*)

Retrieve and modify data in Oracle database tables

Correct Correct

14. PL/SQL differs from C and Java in which of the following ways? (Choose
two.) Mark for Review

(1) Points

(Choose all correct answers)

It is the most complex programming language to learn.


It is the most efficient language to use with an Oracle database. (*)

It does not support object-oriented programming.

It is not portable to other operating systems.

It requires an Oracle database or tool. (*)

Correct Correct

15. Which of the following can be done using PL/SQL? Mark for Review

(1) Points

Manage database security

Develop Web applications using the Web Application Toolkit

Update data (DML)

Create customized reports


All of these can be done (*)

Correct Correct

Das könnte Ihnen auch gefallen