• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 16 pages
Exam (elaborations)

PL/SQL Chapter 6: Functions questions with correct answers

Document preview thumbnail
Preview 3 out of 16 pages

PL/SQL Chapter 6: Functions questions with correct answers

Content preview

PL/SQL Chapter 6: Functions
questions with correct answers

A function is quite similar to a procedure in that it is a program unit that achieves a task, can
receive input values, and returns values to the calling environment. - ANS ✔✔TRUE



The main difference between functions and procedures is that a function is part of an
expression. - ANS ✔✔TRUE



Procedures can be used in SQL statements. - ANS ✔✔FALSE



The RETURN statement can return constant values, such as a text string. - ANS ✔✔TRUE



You can include multiple RETURN statements in the body of a function. - ANS ✔✔TRUE



The RETURN statement in a function is used to control the flow of execution. - ANS ✔✔FALSE



The term "actual parameters" refers to the parameters that are listed in the program unit. - ANS
✔✔FALSE



The term "formal parameters" refers to the arguments that are used when calling or invoking
the program unit. - ANS ✔✔FALSE



Formal parameters including the RETURN data type cannot include size information. - ANS
✔✔TRUE

,The term "passed by value" means that a pointer to the value in the actual parameter is created
instead of copying the value from the actual parameter to the formal parameter. - ANS
✔✔FALSE



The term "passed by reference" means that the value is copied from the actual parameter to
the formal parameter. - ANS ✔✔FALSE



It is possible to reference a data dictionary to determine what code is contained in a program
unit. - ANS ✔✔TRUE



The following is a correct example of the use of the DROP command.



DROP function_name; - ANS ✔✔FALSE



A(n) procedure is one type of program unit that is used to accomplish one or more tasks, return
none or many values, and is used only in PL/SQL statements. - ANS ✔✔TRUE



A(n) procedure is part of an expression and cannot serve an entire statement. - ANS ✔✔FALSE



function



A(n) procedure cannot be invoked in a standalone fashion. - ANS ✔✔FALSE



function



In a(n) function, the RETURN statement includes no arguments and is followed with a
semicolon. - ANS ✔✔FALSE

, procedure



You cannot include data type information when declaring a formal parameter. - ANS ✔✔FALSE



size



The term passed by value implies that a pointer to the value in the actual parameter is created
instead of copying the value from the actual parameter to the formal parameter. - ANS
✔✔FALSE



passed by reference



The term passed by reference implies that the value is copied from the actual parameter to the
formal parameter. - ANS ✔✔FALSE



passed by value



The default behaviors of value passing can be overridden by using a compiler hint named
NOCOPY. - ANS ✔✔TRUE



Functions cannot be used in a(n) CHECK constraint or as a default value of a table column. - ANS
✔✔TRUE



Deleting a program unit can be accomplished by issuing a(n) DEL command. - ANS ✔✔FALSE



DROP



Which of the following statements is incorrect?

Document information

Uploaded on
November 12, 2025
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$22.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BravelRadon
3.5
(166)
Sold
979
Followers
541
Items
55807
Last sold
6 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions