Labour Day Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Oracle 1z0-149 Oracle Database 19c: Program with PL/SQL Exam Practice Test

Page: 1 / 7
Total 65 questions

Oracle Database 19c: Program with PL/SQL Questions and Answers

Question 1

Which three statements are true about Implicit Cursor and Explicit Cursor? (Choose three.)

Options:

A.

Implicit cursor returns only one record.

B.

Explicit cursor can return more than one record.

C.

%Isopen, %Rowtype, %Notfound, and %Found are the attributes of Explicit Cursor.

D.

%Isopen, %Rowcount, %Notfound, and %Found are the attributes of Explicit Cursor.

E.

%Isopen, %Type, %Notfound, and %Found are the attributes of Explicit Cursor.

F.

%Isopen is always false in Explicit Cursor.

G.

%Isopen is always false in Implicit Cursor.

Question 2

Which is true about the PLSCOPE_SETTINGS parameter?

Options:

A.

It is deprecated in Oracle 12c.

B.

It can be used to obtain information about all identifiers when compiling a procedure.

C.

It can be used to control execution of specific portions of the PL/SQL code conditionally.

D.

It can be used to control a user's privileges on PL/SQL objects at run time.

Question 3

Examine these facts:

Table EMP exists in schema USERA with columns SALARY and EMP_ID.

EMP_ID is the primary key with values ranging from 1 to 100.

USERA now executes these statements successfully:

Question # 3

USERA then grants execute privilege on procedure MYPROC to USERB.

USERB exists in the database identified by pdb1 but does not have select privilege on USERA.EMP.

USERB now executes these statements:

conn userB/userB@pdb1

execute userA.myproc;

Which is true?

Options:

A.

It results in an error because Authid Current_User is missing from MYPROC.

B.

It results in an error because Authid Definer is missing from MYPROC.

C.

It results in an error because USERB doesn't have select privilege on USERA.EMP.

D.

It executes successfully.

Question 4

Which three are true about PL/SQL subprograms? (Choose three.)

Options:

A.

Results of a subprogram can be cached in the SGA such that sessions connected to the same instance can reuse these results when available.

B.

Users granted execute privilege on a procedure compiled with definer's rights require grants to access objects belonging to the definer that are referenced in the procedure.

C.

Subprograms are cached by default and shared among users, thereby reducing memory requirements.

D.

Reuse of parsed PL/SQL code from the shared SQL area reduces parsing overhead.

E.

A subprogram's session state is retained even if any of the session’s instantiated subprograms are invalidated and revalidated.

F.

Host variables can be referenced inside any PL/SQL subprogram.

G.

A PL/SQL procedure can invoke an external code block written in a different programming language.

Question 5

Sequence S and table PRODUCTS exist in your schema.

Examine the table description:

Question # 5

Now, examine this block of code:

Question # 5

Which two lines each result in a compilation error? (Choose two.)

Options:

A.

line 1

B.

line 6

C.

line 8

D.

line 2

E.

line 3

F.

line 7

Question 6

Examine this row of data from the EMPLOYEES table:

Question # 6

Now, examine this block of code which executes successfully:

Question # 6

What is the value of v_commission?

Options:

A.

5000

B.

15000

C.

2500

D.

10000

Question 7

Which three are true about DDL triggers? (Choose three.)

Options:

A.

They cannot include the WHEN clause.

B.

They must be created in an enabled state.

C.

They can be fired when a table is truncated.

D.

They fire only when a DDL statement is executed by the owner of the trigger.

E.

They can be fired either before or after a DDL statement executes.

F.

They can be fired when a privilege is granted to a user.

G.

They must be created in a disabled state.

Question 8

Which three statements are true about passing parameters to subprograms? (Choose three.)

Options:

A.

PL/SQL assigns values to actual parameters in subprograms with unhandled exceptions.

B.

IN parameters passed to subprograms act like constants, to which values cannot be assigned by the subprogram.

C.

IN OUT parameters pass initial values to subprograms and return values updated by subprograms to the caller.

D.

The actual parameter must be a variable when calling a subprogram with an OUT parameter.

E.

IN parameters passed to subprograms act like variables, to which values can be assigned by the subprogram.

F.

OUT parameters returning values to calling subprograms act like constants in the called subprogram.

G.

Actual parameters corresponding to IN OUT formal parameters can be constants or expressions.

Question 9

Examine the structure of the ora1.depts table:

Question # 9

Now, examine these statements issued by user ora1 which execute successfully:

Create or replace view dep_vu as select * from depts;

Alter table depts add dep_email varchar2(20);

Finally, examine this block of code executed by user ora1:

Question # 9

Which is true?

Options:

A.

DEP_VU must be manually recompiled to successfully run this code.

B.

It will run successfully producing a result of 4.

C.

It will result in an error because table depts has been altered.

D.

It will run successfully producing a result of 5.

Page: 1 / 7
Total 65 questions