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

Changed 1z0-144 Exam Questions

Page: 3 / 4
Total 103 questions

Oracle Database 11g: Program with PL/SQL Questions and Answers

Question 9

Which three statements are true about wrapping? (Choose three.)

Options:

A.

The PL/SQL wrapper detects and reports only syntax errors.

B.

The PL/SQL wrapper detects and reports both syntax and semantic errors.

C.

When wrapping a package or object type, both the body and specification should be wrapped.

D.

When wrapping a package or object type, only the body should be wrapped, not the specification.

E.

To change a wrapped object, the original source code needs to be modified and then wrapped again

F.

To change a wrapped object, the wrapped code can be unwrapped, modified In a text file, and then wrapped again.

Question 10

Examine the following DECLARE section of PL/SQL block:

Which line in the above declaration would generate an error?

Options:

A.

Line 2

B.

Line 3

C.

Line 4

D.

Line 5

E.

Line 6

Question 11

What is the correct definition of the persistent state of a packaged variable?

Options:

A.

It is a private variable defined in a procedure or function within a package body whose value is consistent within a user session.

B.

It is a public variable in a package specification whose value is consistent within a user session.

C.

It is a private variable in a package body whose value is consistent across all current active sessions.

D.

It is a public variable in a package specification whose value is always consistent across all current active sessions.

Question 12

View Exhibit1 and examine the structure of the employees table.

User SCOTT needs to generate a text report that contains the names of all employees and their salaries.

Examine the following commands issued by the DBA:

SQL_CREATE DICTORY my_dir AS '/temp/my_files* ;

SQL_GRANT WRITE ON DIRECTORY my_dir TO SCOTT;

View Exhibit2 and examine the procedure code. You issue the following command:

You issue the following command:

SQL_EXEC sal_5tatus ('MY_DIR', ‘EMPREPORT.TXT')

What is the outcome?

Options:

A.

It executes successfully and creates the report.

B.

It gives an error because the text file should be opened in append mode.

C.

It gives an error because the "no data found" condition is not handled to come out of the loop.

D.

It gives an error because user SCOTT should be granted both read and write privileges to the directory alias.

E.

It executes but no data is written to the text file because the FFLUSH subprogram is not used to write all the data buffered in memory to a file.

Page: 3 / 4
Total 103 questions