Free Oracle 1Z0-144 Exam Questions (page: 7)

Examine the following PL/SQL code:

The server output is on for the session. Which statement is true about the execution of the code?

  1. The code executes successfully and gives the desired output.
  2. The code generates an error because the EMP_RECORD variable is not declared.
  3. The code generates an error because the cursor is not opened before the FOR loop.
  4. The code generates an error because the loop does not have the exit when clause.

Answer(s): A



View the Exhibit and examine the blocks of code that you plan to execute.
Which statement is true about the blocks of code?

  1. All the blocks execute successfully and the anonymous block displays cant: 45
    cnt: 45
  2. All the blocks execute successfully and the anonymous block displays cut: 0
    cart: 1
  3. The anonymous block gives an error because the function invocation in line 2 is not valid.
  4. The procedure creation gives an error because the function invocation in line 1 is not valid.

Answer(s): A



Which two statements are true about statement-level and row-level triggers? (Choose two.)

  1. A row trigger fires once even if no rows are affected.
  2. A statement trigger fires once even if no rows are affected.
  3. Row triggers are useful if the trigger action depends on the data of rows that are affected or on data that is provided by the triggering event itself.
  4. Statement triggers are useful if the trigger action depends on the data of rows that are affected or on data that is provided by the triggering event itself.

Answer(s): B,C



View the Exhibit and examine the structure of the AUDIR_CUST table.
Exhibit Missing
CUST_ID and CUST_LIMIT are existing columns in the CUSTOMER table.
Examine the following trigger code:

Which statement is true about the above trigger?

  1. It gives an error on compilation because it should be a statement-level trigger.
  2. It compiles and fires successfully when the credit limit is updated in the customer table.
  3. It gives an error on compilation because of the commit command in the trigger code
  4. It compiles successfully, but gives an error when the credit limit is updated in the

    CUSTOMER table because the PRAGMA AUTONOMOUS_TRANSACTION statement should be introduced in the trigger.

Answer(s): D



Viewing page 7 of 26



Post your Comments and Discuss Oracle 1Z0-144 exam prep with other Community members:

1Z0-144 Exam Discussions & Posts