nerdexam
Oracle

1Z0-147 · Question #6

Examine this code: CREATE OR REPLACE PACKAGE comm_package IS g_comm NUMBER := 10; PROCEDURE reset_comm(p_comm IN NUMBER) END comm_package; / User Jones executes the following code at 9:01am: EXECUTE…

The correct answer is B. g_comm has a value of 15 at 9:06am for Jones. See the full explanation below for the reasoning.

Question

Examine this code: CREATE OR REPLACE PACKAGE comm_package IS g_comm NUMBER := 10; PROCEDURE reset_comm(p_comm IN NUMBER) END comm_package; / User Jones executes the following code at 9:01am: EXECUTE comm_package.g_comm := 15 User Smith executes the following code at 9:05am: EXECUTE comm_package.g_comm := 20 Which statement is true?

Options

  • Ag_comm has a value of 15 at 9:06am for Smith.
  • Bg_comm has a value of 15 at 9:06am for Jones.
  • Cg_comm has a value of 20 at 9:06am for both Jones and Smith.
  • Dg_comm has a value of 15 at 9:03am for both Jones and Smith.
  • Eg_comm has a value of 20 at 9:03am for both Jones and Smith.
  • Fg_comm has a value of 10 at 9:03 for both Jones and Smith.

How the community answered

(32 responses)
  • A
    9% (3)
  • B
    81% (26)
  • C
    3% (1)
  • E
    3% (1)
  • F
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-147 Practice