Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
1Z0-147(STS)

1Z0-147(STS)

Ratings: (0)|Views: 442|Likes:
Published by api-3707774

More info:

Published by: api-3707774 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

Examine this package specification and body:

CREATE OR REPLACE PACKAGE theater_pck
IS
PROCEDURE find_seats_sold
(v_movie_id IN NUMBER DEFAULT 34, v_theater_id IN NUMBER);
END theater_pck;

CREATE OR REPLACE PACKAGE BODY theater_pck
IS
current_avg_cost_per_ticket NUMBER;

PROCEDURE find_seats_sold
(v_movie_id IN NUMBER DEFAULT 34, v_theater_id IN NUMBER)
IS
v_seats_sold gross_receipt.seats_sold%TYPE;
v_budget studio.yearly_budget%TYPE;
BEGIN
SELECT seats_sold
INTO v_seats_sold
FROM gross_receipt
WHERE movie_id = v_movie_id
AND theater_id = v_theater_id;
END find_seats_sold;

FUNCTION get_budget
(v_studio_id IN NUMBER)
RETURN number
IS
v_yearly_budget NUMBER;
BEGIN
SELECT yearly_budget
INTO v_yearly_budget
FROM studio
WHERE id = v_studio_id;
RETURN v_yearly_budget;
END get_budget;

END theater_pck;
Which statement about the CURRENT_AVG_COST_PER_TICKET variable is true?
Explanation:
Variables declared in the package body declaration can be referenced from all constructs within the package.
These variables are considered private and cannot be referenced from outside the package.
Create Packages
Item: 7(Ref:1z0-147e.5.4.6)

nmlkjIt can only be referenced from outside the package.
nmlkjIt can be referenced from outside and within the package.
nmlkjIt can be referenced by all constructs within the package.
nmlkjIt must be moved to the specification to compile successfully.

Answer:
It can be referenced by all constructs within the package.
Page 1 of 197
Copyright \u00a9 2004 Self Test Software, Inc. All Rights Reserved
Objective:
Create Packages
Sub-Objective:
Designate a package construct as either public or private
References:
1. Oracle9i: Develop PL/SQL Program Units - Creating Packages
Page 2 of 197
Copyright \u00a9 2004 Self Test Software, Inc. All Rights Reserved
While creating a package, you placed the function name in the specification and the body. Which type of
construct have you created?
Explanation:
All constructs must be declared in the package body. Constructs that are also declared in a package
specification are public and can be referenced from inside or outside of the package.
Objective:
Create Packages
Sub-Objective:
Designate a package construct as either public or private
References:
1. Oracle9i: Develop PL/SQL Program Units - Creating Packages
Item: 14(Ref:1z0-147e.5.4.4)

nmlkjpublic
nmlkjillegal
nmlkjprivate
nmlkjone-time only

Answer:
public
Page 3 of 197
Copyright \u00a9 2004 Self Test Software, Inc. All Rights Reserved

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->