Section 1 (Quiz)
Section 1 (Quiz)
Section 1 (Quiz)
Section 1
(1) Points
True
False (*)
Correct
(1) Points
MySQL (*)
Java
C++
SQL (*)
PL/SQL
Incorrect. Refer to Section 1 Lesson 1.
(1) Points
nonprocedural constructs (*)
reusable program units
constants
conditional statements
variables
Correct
4. 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
(1) Points
PL/SQL is an ANSI-compliant, procedural programming language.
SQL is an ANSI-compliant, nonprocedural, fourth-generation programming language. (*)
6. 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
None of these can be compiled outside of a database
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 or C
Correct
(1) Points
Blocks can be sent to the operating system.
Exceptions can be ported to different operating systems
PL/SQL code can be developed on one platform and deployed on another (*)
PL/SQL code can be run on any operating system without a database
Incorrect. Refer to Section 1 Lesson 2.
8. You can create a Web site application written entirely in PL/SQL. True or False?
Mark for Review
(1) Points
True
False (*)
Correct
9. When multiple SQL statements are combined into PL/SQL blocks, performance will
typically improve. True or False?
Mark for Review
(1) Points
True (*)
False
Correct
10. 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
11. Which lines of code will correctly display the message "The cat sat on the mat"? (Choose
two.)
Mark for Review
(1) Points
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
(1) Points
SQL Workshop in Application Express
gSQL*Plus (*)
Oracle jDeveloper
SQL*Plus
Correct
(1) Points
Function (*)
Procedure
Package
Anonymous
Correct
14. Errors are handled in the Exception part of the PL/SQL block. True or False?
Mark for Review
(1) Points
True (*)
False
Correct
(1) Points
To store new rows in the database
To allow a set of statements to be executed repeatedly
To perform conditional tests
To display results to check if our code is working correctly (*)
Correct