Title | |
---|---|
Errors that are encountered during the execution of the program are referred to as ____ in PL/SQLErrors that are encountered during the execution of the program are referred to as ____ in PL/SQL.
The answer is:
C. EXCEPTION
|
|
How many types of exceptions are there? |
|
Which of the following is/are an/the type(s) of exceptions?Which of the following is/are an/the type(s) of exceptions?
The answer is:
C. Both A. and B.
|
|
Which command is used in order to raise an exception explicitly?Which command is used in order to raise an exception explicitly?
The answer is:
C. RAISE
|
|
Which of the following is TRUE about User-defined exceptions?Which of the following is TRUE about User-defined exceptions?
The answer is:
C. Both A. and B.
|
|
What is the syntax of User-defined exceptions?What is the syntax of User-defined exceptions?
The answer is:
A. DECLARE my-exception EXCEPTION;
|
|
Which of the following clause does not comes in the syntax while raising an exception?Which of the following clause does not comes in the syntax while raising an exception?
The answer is:
C. CLOSE
|
|
When SELECT INTO returns no rows, which pre-defined exception is raised?When SELECT INTO returns no rows, which pre-defined exception is raised?
The answer is:
B. NO_DATA_FOUND
|
|
When ACCESS_INTO_NULL exception does is raised?When ACCESS_INTO_NULL exception does is raised?
The answer is:
C. An automatic assignment of a value to a NULL object raises this exception.
|
|
Which exception is rose when there is no other clause in the "WHEN" clause of a CASE statement, and none of the choices in the "WHEN" clause have been selected?Which exception is rose when there is no other clause in the "WHEN" clause of a CASE statement, and none of the choices in the "WHEN" clause have been selected?
The answer is:
D. CASE_NOT_FOUND
|
|
When COLLECTION_IS_NULL exception is raised?When COLLECTION_IS_NULL exception is raised?
The answer is:
B. The exception is thrown when an uninitialized nested table or varray is attempted to be populated with collection methods other than exist, or when an element of an uninitialized nested table or varray is attempted to be assigned values.
|
|
When DUP_VAL_ON_INDEX exception does is raised?When DUP_VAL_ON_INDEX exception does is raised?
The answer is:
A. A unique index column with duplicate values is raised when this error occurs.
|
|
An exception which occurs when attempting to access a database without connecting to it is –An exception which occurs when attempting to access a database without connecting to it is –
The answer is:
C. NOT_LOGGED_ON
|
|
Which exception is raised when there is an internal problem in PL/SQL?Which exception is raised when there is an internal problem in PL/SQL?
The answer is:
D. PROGRAM_ERROR
|
|
When ROWTYPE_MISMATCH exception is raised?When ROWTYPE_MISMATCH exception is raised?
The answer is:
C. Cursors raise this exception when they seek values in variables of incompatible types.
|
|
When SELF_IS_NULL exception is raised?When SELF_IS_NULL exception is raised?
The answer is:
B. When a member method is invoked on an object type, but its instance has not been initialized, this exception is raised.
|
|
A PL/SQL exception, which occurs when a memory error occurs?A PL/SQL exception, which occurs when a memory error occurs?
The answer is:
D. STORAGE_ERROR
|
|
The exception thrown when more than one row is returned from a SELECT INTO statement?The exception thrown when more than one row is returned from a SELECT INTO statement?
The answer is:
C. TOO_MANY_ROWS
|
|
When VALUE_ERROR exception is raised?When VALUE_ERROR exception is raised?
The answer is:
A. Errors relating to arithmetic, conversion, truncation, or size constraints raise this signal.
|
|
When ZERO_DIVIDE exception is raised?When ZERO_DIVIDE exception is raised?
The answer is:
B. This error message appears when a number is divided by zero.
|
MCQs
Views
Best Answers
Points