exam questions

Exam 1z0-144 All Questions

View all questions & answers for the 1z0-144 exam

Exam 1z0-144 topic 1 question 6 discussion

Actual exam question from Oracle's 1z0-144
Question #: 6
Topic #: 1
[All 1z0-144 Questions]

What is the correct definition of the persistent state of a packaged variable?

  • A. It is a private variable defined in a procedure or function within a package body whose value is consistent within a user session.
  • B. It is a public variable in a package specification whose value is consistent within a user session.
  • C. It is a private variable in a package body whose value is consistent across all current active sessions.
  • D. It is a public variable in a package specification whose value is always consistent across all current active sessions.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Anubhav244
Highly Voted 4 years, 4 months ago
Yes, the correct answer is B. Explanation - Variables/Procedure/Functions declared in Package Declaration are all public that means they can be called outside Package Body as <Package_Name.Variable_Name>. Now the second part, a package can be called from different user sessions at the same time or separate times. In that case, the values assigned to the same variable by different sessions will be different and consistent within that session.
upvoted 7 times
...
Naveen_2022
Most Recent 2 years, 10 months ago
Yes, B is correct here.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...