Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
11. In which three ways does PL/SQL extend the SQL programming
language? Mark for Review
(1) Points
12. Which of the following statements about PL/SQL and SQL is true?
Mark for Review
(1) Points
PL/SQL allows basic program logic and control flow to be combined with SQL
statements. (*)
PL/SQL and SQL can be used with many types of databases, including Oracle.
Correct Correct
True
False (*)
Correct Correct
PL/SQL (*)
C++ (*)
SQL
MySQL
Java (*)
Correct Correct
True (*)
False
Correct Correct
Previous Page 3 of 3
Section 1 Quiz
(Answer all questions in this section)
PL/SQL code can be developed on one platform and deployed on another (*)
Correct Correct
PL/SQL is easier to learn and does not require an Oracle database or tool
Correct Correct
True (*)
False
Correct Correct
10. Which of the following can be done using PL/SQL? Mark for
Review
(1) Points
Correct Correct
Section 1 Quiz
(Answer all questions in this section)
1. Which of the following tools can NOT be used to develop and test
PL/SQL code? Mark for Review
(1) Points
Oracle Jdeveloper
Oracle iSQL*Plus
Declarative (*)
Exception
Definition
Executable
Correct Correct
Correct Correct
4. Which lines of code will correctly display the message "The cat
sat on the mat"? (Choose two.) Mark for Review
(1) Points
END
DECLARE (*)
Section 1 Quiz
(Answer all questions in this section)
Procedural (*)
Primary
Processing
Proprietary
Correct Correct
C++
SQL (*)
Java
MySQL (*)
PL/SQL
Correct Correct
6. Which of the following tools can NOT be used to develop and test
PL/SQL code? Mark for Review
(1) Points
Oracle Jdeveloper
Correct Correct
Correct Correct
Correct Correct
DBMS_OUTPUT.PUT_LINE('Hello' || 'World');
DBMS_OUTPUT('Hello World');
Correct Correct
EXCEPTION (*)
END;
BEGIN
DECLARE (*)
True (*)
False
Correct Correct
12. You can create a Web site application written entirely in PL/SQL.
True or False? Mark for Review
(1) Points
True
False (*)
13. Using Oracle Application Express, you can create Web applications
that include PL/SQL. True or False? Mark for Review
(1) Points
TRUE (*)
FALSE
Correct Correct
14. 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 Correct
15. The fact that PL/SQL is portable is a good thing because: Mark
for Review
(1) Points
PL/SQL code can be developed on one platform and deployed on another (*)
Section 1 Quiz
(Answer all questions in this section)
PL/SQL Express
Oracle Cdeveloper
Java*Plus
True
False (*)
Incorrect Incorrect. Refer to Section 1 Lesson 3.
DBMS_OUTPUT.PUT_LINE('Hello' || 'World');
DBMS_OUTPUT('Hello World');
Correct Correct
Correct Correct
DECLARE (*)
Correct Correct
Section 1 Quiz
(Answer all questions in this section)
Correct Correct
True
False (*)
True (*)
False
Correct Correct
constants
conditional statements
variables
Proprietary
Processing
Primary
Procedural (*)
Correct Correct
Review your answers, feedback, and question scores below. An asterisk (*) indicates
a correct answer.
Section 1 Quiz
(Answer all questions in this section)
11. 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 Correct
12. 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
13. 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 easier to learn and does not require an Oracle database or tool
Correct Correct
14. Using Oracle Application Express, you can create Web applications
that include PL/SQL. True or False? Mark for Review
(1) Points
TRUE (*)
FALSE
Correct Correct
15. Which of the following can be done using PL/SQL? Mark for
Review
(1) Points
Correct Correct
Section 1 Quiz
(Answer all questions in this section)
constants
variables
conditional statements
Correct Correct
Procedural (*)
Primary
Proprietary
Processing
Correct Correct
True
False (*)
Correct Correct
SQL (*)
MySQL (*)
PL/SQL
Java
C++
Correct Correct
low level
procedural (*)
nondeclarative
declarative
Correct Correct
Section 1 Quiz
(Answer all questions in this section)
Executable only
Exception only
Correct Correct
DBMS_OUTPUT('Hello World');
DBMS_OUTPUT.PUT_LINE('Hello' || 'World');
Correct Correct
2,1,4,3
3,2,4,1
4,3,2,1
3,4,2,1 (*)
Correct Correct
END; (*)
BEGIN (*)
DECLARE
EXCEPTION
Correct Correct
SQL*Plus
gSQL*Plus (*)
Oracle jDeveloper
Correct Correct
Section 1 Quiz
(Answer all questions in this section)
11. You can create a Web site application written entirely in PL/SQL.
True or False? Mark for Review
(1) Points
True
False (*)
Correct Correct
12. Which of the following can be done using PL/SQL? Mark for
Review
(1) Points
Correct Correct
13. When multiple SQL statements are combined into PL/SQL blocks,
performance will typically improve. True or False? Mark for Review
(1) Points
True (*)
False
True (*)
False
Correct Correct
15. Which of the following can be done using PL/SQL? Mark for
Review
(1) Points
Correct Correct
Section 2 Quiz
(Answer all questions in this section)
True
False (*)
Neither - can't define a variable with the same name in both blocks
Inner
Outer (*)
Incorrect Incorrect. Refer to Section 2 Lesson 6.
True
False (*)
Correct Correct
Special character
Number
Letter (*)
Correct Correct
DECLARE
v_today DATE;
BEGIN
-- invoke the function here
Which of the following statements correctly assigns the date variable v_today to
the value returned by the format_todays_date function?
Correct Correct
Section 2 Quiz
(Answer all questions in this section)
True (*)
False
Correct Correct
TO_NUMBER (*)
TO_CHAR
TO_DATE
Correct Correct
True
False (*)
Correct Correct
True
False (*)
Correct Correct
VARCHAR2
CLOB
RECORD (*)
DATE
Section 2 Quiz
(Answer all questions in this section)
11. A Scalar data type holds a(n) ____ value. Mark for Review
(1) Points
Multi
Single (*)
image
Large
Correct Correct
12. If you use the %TYPE attribute, you can avoid hard-coding the
column name. True or False? Mark for Review
(1) Points
True
False (*)
13. You need to declare a variable to hold a value which has been
read from the SALARY column of the EMPLOYEES table. Which of the following is an
advantage of declaring the variable as: employees.salary%TYPE ? Mark for Review
(1) Points
If the SALARY column is ALTERed later, the PL/SQL code need not be changed.
(*)
True
False (*)
Correct Correct
Correct Correct