nerdexam
Oracle

1Z0-144 · Question #28

Examine the following partial code: Which statement is correct about the unnamed block of code at the end of a package body?

The correct answer is C. It acts as a package initialization block that executes once, when the package is first invoked. See the full explanation below for the reasoning.

Question

Examine the following partial code:

Which statement is correct about the unnamed block of code at the end of a package body?

Exhibit

1Z0-144 question #28 exhibit

Options

  • AIt generates an error because all the blocks of code in a package body must be named.
  • BIt generates an error because V_TAXRATE is a public variable that is already initialized in the
  • CIt acts as a package initialization block that executes once, when the package is first invoked
  • DIt acts as a package initialization block that executes each time a package subprogram is invoked

How the community answered

(61 responses)
  • A
    7% (4)
  • B
    3% (2)
  • C
    77% (47)
  • D
    13% (8)

Community Discussion

No community discussion yet for this question.

Full 1Z0-144 Practice