Home »
MCQs »
Oracle MCQs
Oracle Functions MCQs
Oracle Functions MCQs: This section contains multiple-choice questions and answers on functions in Oracle.
Submitted by Anushree Goswami, on June 13, 2022
1. Functions return a single value from a ____.
- Program
- Subprogram
- Superprogram
- None
Answer: B) Subprogram
Explanation:
Functions return a single value from a subprogram.
Discuss this Question
2. Before invoking a function, it must be ____.
- Declared
- Defined
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Before invoking a function, it must be declared and defined.
Discuss this Question
3. Defining and declaring can be done in the ____.
- Same block
- Separately
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Defining and declaring can be done in the same block or they can be done separately.
Discuss this Question
4. Which of the following is present in the Create function?
- RETURN
- IS
- END
- All of the above
Answer: D) All of the above
Explanation:
RETURN, IS and END are all present in the Create function.
Discuss this Question
5. Which of the following is not present in the Create function?
- CREATE
- AS
- BEGIN
- None of the above
Answer: D) None of the above
Explanation:
CREATE, AS, BEGIN are all present in the Create function.
Discuss this Question
6. Which of the following parameters are present in Oracle function?
- IN
- OUT
- IN OUT
- All of the above
Answer: D) All of the above
Explanation:
All IN, OUT, IN OUT parameters are present in Oracle function.
Discuss this Question
7. ____ can call another subprograms.
- Programs
- Subprograms
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Programs and subprograms can call other programs and subprograms.
Discuss this Question
8. The drop function syntax is the best way to ____ your created functions from the database.
- Add
- Remove
- Fetch
- Store
Answer: B) Remove
Explanation:
The drop function syntax is the best way to remove your created functions from the database.
Discuss this Question
9. What is the syntax to drop a function?
- DROP PROCEDURE function_name;
- DELETE PROCEDURE function_name;
- DROP FUNCTION function_name;
- DELETE FUNCTION function_name;
Answer: C) DROP FUNCTION function_name;
Explanation:
The syntax to drop a function is DROP FUNCTION function_name;.
Discuss this Question
10. Subprograms can call themselves recursively, which is known as ____.
- Retrieval
- Recall
- Recursion
- Repetition
Answer: C) Recursion
Explanation:
Subprograms can call themselves recursively, which is known as recursion.
Discuss this Question