FORMATIVE 2 Flashcards
Start with the (TYPE) keyword to define a user-defined record structure.
True or False
True
Use the ISOPEN cursor attribute before performing a fetch to test whether the cursor is open.
True or False
False
The term (TRAPPING) in exceptions is the same as handling any error by including corresponding exception handler.
True or False
True
Error in PL/SQL is known as (EXCEPTION)
True or False
True
When an exception is raised, control immediately shifts to the (EXCEPTION SECTION) and the appropriate handler in the exception section is executed.
True or False
True
Each exception handler is consists of a (WHEN) clause, which specifies an exception name.
True or False
True
The RAISE keyword is used in user-defined exception for error notification.
True or False
True
The term TRAP in exceptions is the same as handling any error by including corresponding exception handler.
True
False
True
The (OTHERS) is an optional exception-handling clause that traps any exceptions that have not been explicitly handled.
True or False
True
The OTHERS is mandatory exception-handling clause that traps any exceptions that have not been explicitly handled.
True or False
False
Non-predeffined errors are raised explicitly
True or False
False
Non-predefined exceptions has a standard Oracle error number (ORA-#####) and error message, but not a predefined name.
True or False
True
Pragma declaration is used in declaring user-defined exceptions.
True
False
False
You can use the __________ procedure to return userr-defined error messages from stored subprograms
EXCEPTION_INIT
RAISE_APPLICATION_ERROR
RAISE_APPLICATION_
ERROR
User-defined exceptions are declared within the declarative section and are raised explicitly.
True or False
True
The oracle error number, at the PRAGMA EXCEPTION_INIT function, starts with _____.
UNDERSCORE
0
1
HYPEN
HYPEN
The _____ is used in non-predefined exception to tell the compiler to associate an exception name with a specific Oracle error.
PRAGMA EXCEPTION INIT
EXCEPTION_INIT
EXCEPTION INIT
PRAGMA EXCEPTION_INIT
PRAGRA EXCEPTION_INIT
The NO_DATA_FOUND is an example of:
Non-predefined exception
Predefined exception
Predefined exception
The RAISE statement can be used to raise either ____ or predfined exception.
USER-DEFINED
NON-PREDEFINED
USER-DEFINED
What are/is the type of exception can be raised using the RAISE statement?
Pre-defined, Non-predefined
User-defined
Pre-defined, User-defined
Non-predefined, User-defined
NON-PREDEFINED
Pre-defined, Non-predefined
Type and record declared in the outer block are visible only in the outer block.
True or False
False
The type and the record declared in the outer block are visible within the outer block and the inner block.
True or False
True
You must include the FOR UPDATE clause in the cursor query so that the rows are locked on (OPEN).
True or False
True
PL/SQL record is a (COMPOSITE) data type, you can refer to the whole record by its name and/or to individual fields by their names.
True
False
True