0% found this document useful (0 votes)
139 views5 pages

Section 1: Exception ( ) End Declare ( ) Begin

This document contains a quiz on PL/SQL fundamentals. It includes 15 multiple choice questions covering topics such as the structure of a PL/SQL block, using DBMS_OUTPUT.PUT_LINE to display results, SQL being a common access language for databases, and using Oracle Application Express to create web applications that include PL/SQL. The document provides the questions, multiple choice answers, and marks whether the answer selected is correct or incorrect with references to sections for incorrect answers.

Uploaded by

Moh Nur Alifani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views5 pages

Section 1: Exception ( ) End Declare ( ) Begin

This document contains a quiz on PL/SQL fundamentals. It includes 15 multiple choice questions covering topics such as the structure of a PL/SQL block, using DBMS_OUTPUT.PUT_LINE to display results, SQL being a common access language for databases, and using Oracle Application Express to create web applications that include PL/SQL. The document provides the questions, multiple choice answers, and marks whether the answer selected is correct or incorrect with references to sections for incorrect answers.

Uploaded by

Moh Nur Alifani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SECTION 1

1. Which
statements Mark for Review
are (1) Points
optional in
a PL/SQL
block?
(Choose
two.)

(Choose all correct answers)

EXCEPTION (*)
END;
DECLARE (*)
BEGIN

Correct

2. Given below are the parts of a PL/SQL block:


Mark for Review
1. END; (1) Points
2. EXCEPTION
3. DECLARE
4. BEGIN

Arrange the parts in order.

3,2,4,1
2,1,4,3
4,3,2,1
3,4,2,1 (*)

Incorrect. Refer to Section 1 Lesson 3.

3. How can you display results to check that a PL/SQL block is working correctly?
Mark for Review
(1) Points

You don't need to do anything, the results will display automatically.


Write a C or Java program to display the results
Use DBMS_OUTPUT.PUT_LINE (*)
Use an Exception section
Correct

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


Mark for Review
(1) Points

PL/SQL Express
Java*Plus
SQL*Workshop in Application Express (*)
Oracle Cdeveloper

Correct

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


semicolon? Mark for Review
(1) Points

END
All PL/SQL statements
All SQL statements
DECLARE (*)

Correct

6. Which of
the Mark for Review
following (1) Points
statements
is true?

(Choose all correct answers)

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.

7. SQL is a common access language for many types of databases, including


Oracle. True or False? Mark for Review
(1) Points
True (*)
False

Correct

8. 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

nondeclarative
declarative
procedural (*)
low level

Incorrect. Refer to Section 1 Lesson 1.

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


Mark for Review
(1) Points

variables
constants
reusable program units
conditional statements
nonprocedural constructs (*)

Correct

10. Third-generation programming languages include all except _____ and _____.
Mark for Review
(1) Points

(Choose all correct answers)

MySQL (*)
Java
SQL (*)
PL/SQL
C++

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

All of these can be done (*)


Manage database tasks such as security
Create custom reports
Create complex applications
Retrieve and modify data in Oracle database tables

Correct

12. 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 Java


None of these can be compiled outside of a database
A program developed in PL/SQL
Programs developed in Java or C, but not in PL/SQL (*)
A program developed in PL/SQL or C

Correct

13. You can create a Web site application written entirely in PL/SQL. True or False?
Mark for Review
(1) Points

True
False (*)

Incorrect. Refer to Section 1 Lesson 2.

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


Mark for Review
(1) Points

Update data (DML)


Manage database security
All of these can be done (*)
Create customized reports
Develop Web applications using the Web Application Toolkit
Correct

15. Using Oracle Application Express, you can create Web applications that include
PL/SQL. True or False? Mark for Review
(1) Points

TRUE (*)
FALSE

Correct

You might also like