Labour Day - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpm65

Note! The 1z0-144 Exam is no longer available.

1z0-144 Oracle Database 11g: Program with PL/SQL Questions and Answers

Questions 4

View the exhibit and examine the structure of the EMPLOYEES table.

1z0-144 Question 4

The salary of EMPLOYEE_ID 195 is 2800.

You execute the following code

1z0-144 Question 4

What is the outcome?

Options:

A.

It gives an error because only the innermost block is labeled.

B.

It gives an error because the same variable name cannot be used across all the nested blocks.

C.

It executes successfully and displays the resultant values in the following sequence- 1000, 2800 50000, 2800.

D.

It executes successfully and displays the resultant values in the following sequence: 1000, 2800, 50000, 1000.

Buy Now
Questions 5

View the exhibit and examine the structure of the products table.

1z0-144 Question 5

Examine the following code

1z0-144 Question 5

Which statement is true when the procedure DELETE_DETAILS is invoked?

Options:

A.

It executes successfully but no error messages get recorded in the DEBUG_OUTPUT table

B.

It executes successfully and any error messages get recorded in the DEBUG_OUTPUT table.

C.

It gives an error because PRAGMA AUTONOMOUS_TRANSACTION can be used only in packaged procedures.

D.

It gives an error because procedures containing PRAGMA AUTONOMOUS_TRANSACTION cannot be called from the exception section.

Buy Now
Questions 6

Which three statements are true about anonymous blocks and subprograms? (Choose three.)

Options:

A.

Only subprograms can be parameterized.

B.

Only subprograms are persistent database objects.

C.

Both anonymous blocks and subprograms can be parameterized.

D.

Both anonymous blocks and subprograms are persistent database objects

E.

Only subprograms can return values that persist after the execution of the subprogram.

F.

Both anonymous blocks and subprograms can return values that persist In SQL*Plus variables after their execution.

Buy Now
Questions 7

View the Exhibit and examine the code and its outcome on execution:

1z0-144 Question 7

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)

Options:

A.

MY_PROC2 is not recompiled.

B.

MY_PROC1 is recompiled but remains unchanged.

C.

MY_PROC2 is recompiled but remains unchanged.

D.

MY_PROC1 is recompiled without the debugging code.

Buy Now
Questions 8

View the Exhibits and examine the structure of the EMPLOYEES, DEPARTMENTS AND EMP_BY_DEPT tables.

EMPLOYEES

1z0-144 Question 8

DEPAERTMENT

1z0-144 Question 8

EMP_BY_DEPT

1z0-144 Question 8

Examine the following code:

1z0-144 Question 8

What is the outcome on execution of the above code?

Options:

A.

It executes successfully but the output statements show different values.

B.

It executes successfully and both output statements show the same values.

C.

It gives an error because the SQL%ROWCOUNT attribute cannot be used with BULK COLLECT.

D.

It gives an error because the INSERT SELECT construct cannot be used with the FORALL

Buy Now
Questions 9

You want to create a trigger that fires whenever rows are deleted from the customer table and that displays the number of rows remaining in the table.

Which two statements are correct about the trigger to be created for the above requirement? (Choose two.)

Options:

A.

It should be an after trigger.

B.

It should be a before trigger.

C.

It should be a row-level trigger.

D.

It should be a statement-level trigger.

E.

It can be a before or an after trigger.

Buy Now
Questions 10

Which two statements are true about the exit statement encountered in loop? (Choose two)

Options:

A.

The PL/SQL block execution terminates immediately after the exit statement.

B.

The loop completes immediately and control passes to the statement after end loop

C.

The statements after the exit statement in the Iteration are not executed before terminating the LOOP.

D.

The current iteration of the loop completes immediately and control passes to the next iteration of the loop.

Buy Now
Questions 11

Which two statements are true about anonymous blocks and named subprograms?

(Choose two)

Options:

A.

Subprograms are by default executed with definer's rights.

B.

The declare section is optional for both anonymous blocks and subprograms.

C.

Both anonymous blocks and subprograms execute by default with invoker's rights.

D.

The declare section is mandatory for anonymous blocks and optional for subprograms.

Buy Now
Questions 12

View the Exhibit and examine the structure of the customer table.

You need to create a trigger to ensure that customers in category “A” and “B” have a credit limit of more than 8000.

Examine the following trigger.

1z0-144 Question 12

Which statement is correct about the outcome of this trigger?

Options:

A.

It compiles successfully and fires whenever the specified condition is met.

B.

It compiles successfully but does not fire even when the condition is met

C.

It gives an error on compilation because the new qualifier is prefixed with a colon.

D.

It gives an error on compilation because the new qualifier can be used only in row-level triggers.

Buy Now
Questions 13

User SCOTT has been granted CREATE ANY TRIGGER AND ALTER ANY TABLE by the DBA. HR is an existing schema in the database.

SCOTT creates the following trigger:

CREATE OR REPLACE TRIGGER drop_trigger

BEFORE DROP ON hr.SCHEMA

BEGIN

RAISE_APPLICATION_ERROR (-20000, ‘Cannot drop object');

END:

SCOTT does not grant the execute privilege on this trigger to any other users.

For which user(s) would this trigger fire by default when they drop an object in the hr schema?

Options:

A.

Only HR

B.

SCOTT and HR

C.

Only SCOTT

D.

SCOTT, HR, and SYS

Buy Now
Questions 14

View the Exhibit and examine the structure of the customer table.

1z0-144 Question 14

Examine the following trigger code:

1z0-144 Question 14

What is the outcome when the above trigger is compiled?

Options:

A.

It compiles successfully.

B.

It gives an error because the when condition is not valid.

C.

It gives an error because when cannot be used for row-level triggers.

D.

It gives an error because the statements under updating are not valid.

E.

It gives an error because the new qualifier in the when clause requires a colon prefix.

Buy Now
Questions 15

Which two statements are true about the %ROWTYPE attribute? (Choose two.)

Options:

A.

It is used to declare a record that can hold multiple rows of a table.

B.

The attributes of fields in the record with the %ROWTYPE attribute can be modified manually.

C.

The attributes of fields in the record take their names and data types from the columns of the table, view, cursor, or cursor variable.

D.

It ensures that the data types of the variables that are declared with the %ROWTYPE attribute change dynamically when the underlying table is altered.

Buy Now
Exam Code: 1z0-144
Exam Name: Oracle Database 11g: Program with PL/SQL
Last Update: Nov 27, 2023
Questions: 103
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 05 May 2024