Section 1 (Quiz)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

SECTION 1 (QUIZ)

Section 1

1. PL/SQL is an Oracle proprietary, procedural, fourth-generation programming language.


True or False?
Mark for Review

(1) Points
True
False (*)
Correct

2. Third-generation programming languages include all except _____ and _____.


Mark for Review

(1) Points
MySQL (*)
Java
C++
SQL (*)
PL/SQL
Incorrect. Refer to Section 1 Lesson 1.

3. PL/SQL extends SQL by including all of the following except:


Mark for Review

(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

5. Which of the following statements is true?


Mark for Review

(1) Points
PL/SQL is an ANSI-compliant, procedural programming language.
SQL is an ANSI-compliant, nonprocedural, fourth-generation programming language. (*)

PL/SQL is an Oracle proprietary, procedural, fourth-generation programming language.


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

Incorrect. Refer to Section 1 Lesson 1.

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

7. The fact that PL/SQL is portable is a good thing because:


Mark for Review

(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

12. Which of the following is NOT a PL/SQL programming environment?


Mark for Review

(1) Points
SQL Workshop in Application Express
gSQL*Plus (*)
Oracle jDeveloper
SQL*Plus
Correct

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


Mark for Review

(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

15. What is the purpose of using DBMS_OUTPUT.PUT_LINE in a PL/SQL block?


Mark for Review

(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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy