Winter Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

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

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

Examine these statements issued by user SH which execute successfully:

DBMS_OUTPUT.PUT_LINE(p_price(i)); END LOOP; END; END products_pkg; /

Now, examine this anonymous block executed by SH:

Which is true about the anonymous block?

Options:

A.

It will execute successfully only if PriceList is removed from the DECLARE section and defined as a standalone collection type.

B.

It will execute successfully only if PriceList is defined as an associative array in the package and anonymous block.

C.

It will fail at lines 6 and 7.

D.

It will fail only at line 7.

Question 2

Examine this DECLARE section:

Which line will cause an error upon execution?

Options:

A.

line 5

B.

line 3

C.

line 2

D.

line 4

E.

line 6

Question 3

Examine this statement which is submitted for compilation:

Which three are true? (Choose three.)

Options:

A.

This is a PACKAGE specification. A PACKAGE BODY is needed to use this.

B.

This will not compile successfully because the loan_amount variable is declared NOT NULL but lacks an initialization assignment.

C.

This program unit will compile successfully.

D.

Initialization of min_bal can be done while using this packaged constant in another program.

E.

Initialization of loan_amount can be done while using this packaged variable in another program.

F.

This will not compile successfully because the min_bal constant must be initialized.

G.

This is BODILESS PACKAGE. A PACKAGE BODY is not required to use this.

Question 4

Which three are true regarding code based access control (CBAC)? (Choose three.)

Options:

A.

In a multitenant environment, the DELEGATE option of CBAC cannot be used.

B.

CBAC roles can be granted to a program unit only if they are directly granted to its owner.

C.

CBAC roles can be granted to a program unit only if they are the predefined roles automatically defined by the standard scripts as part of database creation.

D.

You can use CBAC to attach database roles to a PL/SQL function or procedure only.

E.

In CBAC, the ADMIN and DELEGATE options cannot both be granted to the same user.

F.

You can use CBAC to attach database roles to a PL/SQL function, procedure, or package.

G.

CBAC cannot be used to secure definer's rights.

Question 5

Which code will successfully create a BODILESS PACKAGE to standardize CONSTANTS and EXCEPTIONS declarations?

Options:

A.

B.

C.

D.

Question 6

Which three are true about the procedure overloading feature? (Choose three.)

Options:

A.

Each procedure can be a nested subprogram.

B.

Each procedure's formal parameters can differ in data type or name.

C.

Each procedure must use named notation to specify the corresponding actual parameters.

D.

Each procedure's formal parameters must differ in name.

E.

Each procedure can be a packaged subprogram.

F.

Each procedure must use positional notation to specify the corresponding actual parameters.

G.

Each procedure can be a standalone subprogram.

Question 7

Which is the correct method to implement a local subprogram in an anonymous block?

Options:

A.

B.

C.

D.

Question 8

For which three SYSTEM EVENTS can triggers be created? (Choose three.)

Options:

A.

DDL

B.

AFTER AUDIT

C.

BEFORE ANALYZE

D.

SHUTDOWN

E.

SERVERERROR

F.

STARTUP

G.

BEFORE GRANT

Question 9

Which two are true about INDEX-BY tables? (Choose two.)

Options:

A.

The index can be integer or string.

B.

The index can be integer only.

C.

INDEX-BY table types can be created in PL/SQL blocks only.

D.

INDEX-BY table types can be created both with the CREATE TYPE statement and in PL/SQL blocks.

E.

INDEX-BY table types can be created with the CREATE TYPE statement.

Page: 1 / 7
Total 65 questions