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)- A9% (3)
- B81% (26)
- C3% (1)
- E3% (1)
- F3% (1)
Community Discussion
No community discussion yet for this question.