click below
click below
Normal Size Small Size show me how
PL/SQL
| Question | Answer |
|---|---|
| A ________ allows us to declare a variable as a record based on a particular table’s structure. | %ROWTYPE |
| PL/SQL records contain one or more components/fields of any _______ or composite type. | SCALAR |
| In explicit cursor operations, the set of rows returned by a multiple-row query is called ACTIVE SET. Group of answer choices True False | TRUE |
| The __________ keyword is used in user-defined exception for error notification. | RAISE |
| When an exception is raised, control immediately shifts to the _______ and the appropriate handler in the exception section is executed. | EXCEPTION SECTION |
| The exception section begins with the keyword _______. | EXCEPTION |
| The term ________ in exceptions is the same as handling any error by including corresponding exception handler. | EXCEPTION HANDLING????????? |
| Each exception handler is consists of a WHEN clause, which specifies an exception name. Group of answer choices True False | TRUE |
| Exception handlers are code that defines the recovery actions to be performed when execution-time errors occur. Group of answer choices True False | TRUE |
| In exception section, the WHEN clause if followed by a condition. Group of answer choices True False | FALSE |
| Always add exception handlers whenever there is a possibility of an error occurring. Group of answer choices True False | TRUE |
| The term TRAP in exceptions is the same as handling any error by including corresponding exception handler. Group of answer choices True False | TRUE |
| Names for predefined exceptions must be declared in the declaration section. Group of answer choices True False | FALSE |
| User-defined exceptions are declared within the declarative section and are raised explicitly. Group of answer choices True False | TRUE |
| You can use the RAISE_APPLICATION_ERROR procedure to return user-defined error messages from stored subprograms. Group of answer choices True False | TRUE |
| The RAISE_APPLICATION_ERROR can be used in: Group of answer choices Exception section Declaration and Exception section Executable section Executable and Exception section | Executable and Exception section |
| What is the first parameter of the PRAGMA EXCEPTION_INIT function? Group of answer choices Oracle error number EXCEPTION NAME | EXCEPTION NAME |
| The ________ clause is used in non-predefined exception to tell the compiler to associate an exception name with a specific Oracle error Group of answer choices SQLERRM RAISE_APPLICATION_ERROR SQLCODE PRAGMA EXCEPTION_INIT | PRAGMA EXCEPTION_INIT |
| Each exception handler is consists of a _____ clause, which specifies an exception name. Group of answer choices IF CONDITION WHEN Not in the options | WHEN |
| The ___________ and ___________ are the two types of Oracle Server Errors. Group of answer choices Implicit, Explicit Predefined, Non-predefined | Predefined, Non-predefined |
| The ( ) symbol is used to enclose the elements of the TYPE structure. Group of answer choices True False | True |
| TYPE and Records are composite structures. Group of answer choices True False | TRUE |
| The %ROWTYPE can be used to declare a record based on another record. Group of answer choices True False | FALSE |
| FOR cur_emps IN v_emp_record LOOP EXIT WHEN cur_emps%ROWCOUNT > 5; DBMS_OUTPUT.PUT_LINE(v_emp_record.employee_id || ' ' || v_emp_record.last_name); END LOOP; END; Counter declaration cur_emps IN v_emp_record | cur_emps IN v_emp_record |
| If you omit the ______ keyword, then the Oracle server waits indefinitely until the rows are available. | NOWAIT |