0% found this document useful (0 votes)
132 views

Section 1 (Quiz)

This document contains a quiz on PL/SQL fundamentals with 15 multiple choice questions. It covers topics like the components of Oracle Application Express, PL/SQL anonymous blocks, exception handling, procedural vs. nonprocedural languages, and performance benefits of combining SQL statements into PL/SQL blocks. The SQL Workshop is identified as the tool used to enter and run SQL statements and PL/SQL blocks. Exceptions are handled in the Exception part of a PL/SQL block and the DECLARE and EXCEPTION sections are optional parts of a PL/SQL block.

Uploaded by

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

Section 1 (Quiz)

This document contains a quiz on PL/SQL fundamentals with 15 multiple choice questions. It covers topics like the components of Oracle Application Express, PL/SQL anonymous blocks, exception handling, procedural vs. nonprocedural languages, and performance benefits of combining SQL statements into PL/SQL blocks. The SQL Workshop is identified as the tool used to enter and run SQL statements and PL/SQL blocks. Exceptions are handled in the Exception part of a PL/SQL block and the DECLARE and EXCEPTION sections are optional parts of a PL/SQL block.

Uploaded by

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

SECTION 1 (QUIZ)

Section 1

(Answer all questions in this section)


1. Which component of Oracle Application Express is used to enter and run SQL statements
and PL/SQL blocks?
Mark for Review

(1) Points
Application Builder
Utilities
Object Browser
SQL Workshop (*)
Correct

2. What is wrong with this PL/SQL anonymous block?

BEGIN
DBMS_OUTPUT.PUT_LINE('Hello');
DBMS_OUTPUT.PUT_LINE(' and Goodbye');

Mark for Review

(1) Points
The Declaration section is missing
There is nothing wrong with the block, it will work fine.
The END; statement is missing (*)
The Exception section is missing
Incorrect. Refer to Section 1 Lesson 3.

3. This PL/SQL anonymous block will execute successfully. True or False?

DECLARE
v_date DATE := SYSDATE;
DBMS_OUTPUT.PUT_LINE(v_date);
END;

Mark for Review

(1) Points
True
False (*)
Incorrect. Refer to Section 1 Lesson 3.
4. Errors are handled in the Exception part of the PL/SQL block. True or False?
Mark for Review

(1) Points
True (*)
False
Incorrect. Refer to Section 1 Lesson 3.

5. Which statements are optional in a PL/SQL block? (Choose two.)


Mark for Review

(1) Points
BEGIN
DECLARE (*)
EXCEPTION (*)
END;
Correct

6. Fourth-generation programming languages include all except _____ and _____.


Mark for Review

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

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


True or False?
Mark for Review

(1) Points
True
False (*)
Incorrect. Refer to Section 1 Lesson 1.

8. The P in PL/SQL stands for:


Mark for Review
(1) Points
Primary
Proprietary
Procedural (*)
Processing
Correct

9. 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 (*)
Incorrect. Refer to Section 1 Lesson 1.

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


Mark for Review

(1) Points
nonprocedural constructs (*)
constants
conditional statements
variables
reusable program units
Incorrect. Refer to Section 1 Lesson 1.

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


Mark for Review

(1) Points
All of these can be done (*)
Develop Web applications using the Web Application Toolkit
Create customized reports
Update data (DML)
Manage database security
Correct
12. Using Oracle Application Express, you can create Web applications that include PL/SQL.
True or False?
Mark for Review

(1) Points
TRUE (*)
FALSE
Correct

13. Procedural constructs give you better control of your SQL statements and their execution.
True or False?
Mark for Review

(1) Points
True (*)
False
Correct

14. Which of the following statements about exception handling in PL/SQL is false?
Mark for Review

(1) Points
Exception handling code tells your program what to do when an error is encountered.
You can prepare for database exceptions by creating exception handlers.
All of these are false
None of these are false (*)
You can prepare for application exceptions by creating exception handlers.
Incorrect. Refer to Section 1 Lesson 2.

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

You might also like