2. Which of the following will successfully return a user-defined error message?
(1) Point
Incorrect. Refer to Section 7 Lesson 3.
3. You want to display your own error message to the user. What is the correct syntax to do this?
(1) Point
Incorrect. Refer to Section 7 Lesson 3.
4. The following three steps must be performed to use a user-defined exception: - Raise the exception - Handle the exception - Declare the exception In what sequence must these steps be performed?
(1) Point
Incorrect. Refer to Section 7 Lesson 3.
5. The following code does not violate any constraints and will not raise an ORA-02292 error. What will happen when the code is executed?
BEGIN DECLARE e_constraint_violation EXCEPTION; PRAGMA EXCEPTION_INIT(e_constraint_violation, -2292); BEGIN DBMS_OUTPUT.PUT_LINE('Inner block message'); END; EXCEPTION WHEN e_constraint_violation THEN DBMS_OUTPUT.PUT_LINE('Outer block message'); END;
1. You can define variables and assign values to them using PLSQL_CCFLAGS. Then test the values of the variables using inquiry directives. True or False? Tandai untuk Ditinjau (1) Point True (*) False Correct 2. How would you determine the current Oracle database version? Tandai untuk Ditinjau (1) Point DBMS_DB_VERSION.VERSION (*) DBMS_DB_VERSION.RELEASE DBMS_DB_VERSION.VER_LE_11 DBMS_DB_VERSION.VER_LE_10 Correct 3. Identify the selection directives used in conditional compilation. Tandai untuk Ditinjau (1) Point $$IF $$THEN $$ELSE $$ELSIF $$END $IF $THEN $ELSE $ELSIF $END (*) $IF $THEN $ELSE $END $CCFLAG $IF $THEN $ELSE $ELSIF $ENDIF $$IF $$THEN $$ELSE $$END $$DEBUG Incorrect. Refer to Section 15 Lesson 3. 4. Conditional compilation allows you to include extra code to help with debugging, which can be removed once errors are resolved. True or False? Tandai untuk Ditinjau (1) Point True (*) False Correct 5. O...
1. Which of the following statements about the %ISOPEN cursor attribute is true? Tandai untuk Ditinjau (1) Point If a cursor is open, then the value of %ISOPEN is false. You can issue the %ISOPEN cursor attribute only when more than one record is returned. You can issue the %ISOPEN cursor attribute only when a cursor is open. You can issue the %ISOPEN cursor attribute when a cursor is open or closed. (*) Correct 2. Assume that you have declared a cursor called C_EMP. Which of the following statements about C_EMP is correct? (Choose two.) Tandai untuk Ditinjau (1) Point You can use c_emp%NOTFOUND to exit a loop. (*) You can use c_emp%ROWCOUNT to return the number of rows returned by the cursor so far. (*) You can fetch rows when c_emp%ISOPEN evaluates to FALSE. You can use c_emp%FOUND after the cursor is closed. Correct 3. You execute the following code: DECLARE CURSOR emp_curs IS SELECT last_name FROM employees; v_last_n...
1. Which of the following statements will show whether procedure myproc is valid or invalid? Tandai untuk Ditinjau (1) Point SELECT * FROM deptree; SELECT status FROM USER_PROCEDURES WHERE procedure_name = 'MYPROC'; SELECT status FROM USER_OBJECTS WHERE object_type = 'PROCEDURE' AND object_name = 'MYPROC'; (*) SELECT valid FROM USER_OBJECTS WHERE object_type = 'PROCEDURE' AND object_name = 'MYPROC'; Incorrect. Refer to Section 14 Lesson 1. 2. A single procedure can be both a referenced object and a dependent object. True or False? Tandai untuk Ditinjau (1) Point True (*) False Correct 3. A single PL/SQL subprogram such as a procedure can be both a referenced object and a dependent object. True or False? Tandai untuk Ditinjau (1) Point True (*) False Correct 4. View dept_view is based on a select from table departments. Procedure show_dept contains code which selects from dept_view. Which of the following statements are true? (C...
Komentar
Posting Komentar