Professional Documents
Culture Documents
Question 1
Correct
You can use this procedure to issue user-defined error messages from stored subprograms.
Select one:
a. USER_DEFINED_PROC
b. SUB_ROUTINE
c. RAISE_APPLICATION_ERROR
d. CALL_FUNCTION
e. PROCEDURE
Question 2
Correct
Select one:
a. Interactively
b. Implicitly
c. None of the choices
d. Exclusively
e. Explicitly
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 1/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 3
Correct
You can use this procedure to issue user-defined error messages from stored subprograms.
Select one:
a. RAISE_APPLICATION_ERROR
b. USER_DEFINED_PROC
c. CALL_FUNCTION
d. PROCEDURE
e. SUB_ROUTINE
Question 4
Correct
Select one:
a. EXECUTION_ERROR
b. RUNTIME_ERROR
c. PROGRAM_ERROR
d. ERROR_MSG
Question 5
Correct
You can trap any error by including a corresponding handler within the exception-handling section of the PL/SQL block.
Select one:
True
False
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 2/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 6
Correct
Select one:
a. An error will occur in EXCEPTION section.
b. An error will occur in declaration section.
c. An error will occur in SQL command.
d. The PL/SQL block will run successfully.
e. None of the choices
Question 7
Correct
Select one:
a. DECLARE and BEGIN
b. DECLARE and END
c. BEGIN and EXCEPTION
d. BEGIN and END
e. EXCEPTION and END
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 3/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 8
Correct
Select one:
a. An error will occur in EXCEPTION section.
b. An error will occur in SQL command.
c. An error will occur in declaration section.
d. None of the choices
e. The PL/SQL block will run successfully.
Question 9
Correct
Select one:
a. PL/SQL is an Oracle proprietary, procedural, 3GL programming language
b. PL/SQL is an Oracle proprietary, procedural, unstructured programming language
c. PL/SQL is a ANSI compliant, procedural and structured programming language
d. PL/SQL is an Oracle proprietary.
e. PL/SQL is an Oracle proprietary, nonprocedural, 3GL programming language
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 4/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 10
Correct
Select one:
a. An exception can be raised implicitly by the Oracle server
b. An exception can be raisedexplicitly by the program
c. None of the choices
d. Exception is a PL/SQL error that is raised before program execution.
e. An exception can be handled by trapping it with a handler
Question 11
Correct
Select one:
a. The INTO clause is required.
b. WHERE clause is required.
c. Queries must return only one column.
d. INTO clause should be followed by a varible name
Question 12
Correct
Select one:
a. Process Linkage to SQL
b. Procedural Libraries of SQL
c. Procedural Language extension to SQL
d. Procedural Logic of SQL
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 5/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 13
Correct
What is the exception name when single row SELECT returned no data.
Select one:
a. END_OF_DATA
b. NO_RECORDS_FOUND
c. NO_DATA_FOUND
d. ZERO_RECORDS_FOUND
Question 14
Correct
1. DECLARE
2. v_first_name VARCHAR2(50);
3. v_last_name VARCHAR2(50);
4. v_salary INTEGER(20);
5. BEGIN
6. SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM employees WHERE department_id = 60;
7. DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
8. DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
9. DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
10. END;
Select one:
a. No Error.
b. Error in Line 7,8,9.
c. Error in line 2,3,4
d. Error in Line 6.
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 6/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 15
Correct
1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. DELETE employees WHERE employee_id = v_employee_id;
5. END;
Select one:
a. The PL/SQL will produce an error in line 4.
b. To execute successfully delete line 1,2,3,5.
c. The PL/SQL will delete employee number 114.
d. The PL/SQL will produce an error in line 2.
Question 16
Correct
Select one:
a. Information
b. Table
c. Code
d. Data
Question 17
Correct
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. ERRORCODE
b. SQL_ERRORCODE
c. ERROR_CODE
d. SQLCODE
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 7/8
1/16/24, 4:27 PM Second Quarter Exam: Attempt review
Question 18
Correct
Select one:
a. An exception can be raisedexplicitly by the program
b. Exception is a PL/SQL error that is raised before program execution.
c. None of the choices
d. An exception can be raised implicitly by the Oracle server
e. An exception can be handled by trapping it with a handler
Question 19
Correct
You can trap any error by including a corresponding handler within the exception-handling section of the PL/SQL block.
Select one:
True
False
Question 20
Correct
Select one:
a. SQL statements are being executed
b. Actions are performed when error occurs
c. All of the choices
d. You define variables.
Jump to...
https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 8/8