You are on page 1of 8

1/16/24, 4:27 PM Second Quarter Exam: Attempt review

Home / My courses / BAED-PROG3113-2312S / Quarterly Examination / Second Quarter Exam

Started on Monday, 15 January 2024, 2:10 PM


State Finished
Completed on Monday, 15 January 2024, 2:18 PM
Time taken 7 mins 38 secs
Marks 20.00/20.00
Grade 100.00 out of 100.00

Question 1
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

When an exception is user defined, the exception is raised ____________ .

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

What is the exception name when PL/SQL has an internal problem

Select one:
a. EXECUTION_ERROR
b. RUNTIME_ERROR
c. PROGRAM_ERROR
d. ERROR_MSG

Question 5
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;

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

Mark 1.00 out of 1.00

In PL/SQL Block Structure, which of the following are mandatory?

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

Mark 1.00 out of 1.00

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;

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

Mark 1.00 out of 1.00

Which of the folllowing statement describes PL/SQL?

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

Mark 1.00 out of 1.00

Which of the following DOES NOT describes an exception?

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

Mark 1.00 out of 1.00

Which of the following does NOT describes SELECT Statement in a PL/SQL.

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

Mark 1.00 out of 1.00

PL/SQL stands for

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Evaluate the PL/SQL

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

Mark 1.00 out of 1.00

Evaluate the following PL/SQL.

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

Mark 1.00 out of 1.00

PL/SQL Provides a block structure for executable units of ________________.

Select one:
a. Information
b. Table
c. Code
d. Data

Question 17

Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Which of the following DOES NOT describes an exception?

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

In the DECLARE section of the PL/SQL block,

Select one:
a. SQL statements are being executed
b. Actions are performed when error occurs
c. All of the choices
d. You define variables.

◄ First Quarter Exam

Jump to...

https://shsexam.amaesonline.com/2312/mod/quiz/review.php?attempt=59348&cmid=412 8/8

You might also like