Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Exam2 Advanced PLSQL Programming

Exam2 Advanced PLSQL Programming

Ratings: (0)|Views: 443 |Likes:
Published by meachamrob
Exam2 Advanced PLSQL Programming
Exam2 Advanced PLSQL Programming

More info:

Categories:Types, School Work
Published by: meachamrob on May 01, 2013
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

11/09/2014

pdf

text

original

 
Question 1 5 out of 5 pointsThe code fragment below is an example of a(n) ____.CREATE OR REPLACE PACKAGE product_info_pkg ISPROCEDURE prod_search_pp(p_id IN bb_product.idproduct%TYPE,p_sale OUT bb_product.saleprice%TYPE,p_price OUT bb_product.price%TYPE);PROCEDURE prod_search_pp(p_id IN bb_product.productname%TYPE,p_sale OUT bb_product.saleprice%TYPE,p_price OUT bb_product.price%TYPE);END; Answer
Selected Answer: b. overloaded procedureCorrect Answer: b. overloaded procedure
Question 2 5 out of 5 pointsIn the code below, which of the following is the parameter variable?CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER)RETURN NUMBER ISBEGINUPDATE bb_test1 SET col1 = p_num;RETURN p_num;END;/ Answer
Selected Answer: c. p_numCorrect Answer: c. p_num
Question 3
0 out of 5 points
 The term ____ refers to the range of visibility for a particular element or construct contained in apackage. AnswerSelected Answer: b. package specification
Correct Answer: a. package scope
Question 4 5 out of 5 points ____ refer to the arguments that are used when calling or invoking the program unit. Answer
Selected Answer: a. Actual parametersCorrect Answer: a. Actual parameters
Question 5 5 out of 5 points Analyze the following code that invokes a package procedure. Which of the following statements istrue?EXECUTE emma.hr_package.new_emp(:p_emp_id);
 
 Answer
Selected Answer: c. This codes invokes a procedure called new_emp from the packagecalled hr_package in the emma schema.Correct Answer: c. This codes invokes a procedure called new_emp from the packagecalled hr_package in the emma schema.
Question 6
0 out of 5 points
The ____ command is used to view parameter information. AnswerSelected Answer: d. OUT
Correct Answer: c. DESC
Question 7 5 out of 5 points Which data dictionary can be used to display a list of functions you created in your schema? Answer
Selected Answer: c. USER_OBJECTSCorrect Answer: c. USER_OBJECTS
Question 8 5 out of 5 points ____ refer to the parameters that are listed in the program unit. Answer
Selected Answer: d. Formal parametersCorrect Answer: d. Formal parameters
Question 9 5 out of 5 pointsThe following code is an example of a(n) ____.DECLARElv_name_txt VARCHAR2(35);lv_id_num NUMBER(4) := 25;lv_first_txt VARCHAR2(15) := 'Scott';lv_last_txt VARCHAR2(20) := 'David';BEGINlv_name_txt := memfmt1_sf(lv_id_num,lv_first_txt, lv_last_txt);DBMS_OUTPUT.PUT_LINE(lv_name_txt);END;/ Answer
Selected Answer: d. anonymous block Correct Answer: d. anonymous block 
Question 10 5 out of 5 points At least one ____ statement must be included in a function body to instruct which value to return. Answer
Selected Answer: b. RETURNCorrect Answer: b. RETURN
Question 11 5 out of 5 pointsThe statement ____ would successfully remove the package specification and body.
 
 Answer
Selected Answer: c. DROP PACKAGE package_name;Correct Answer: c. DROP PACKAGE package_name;
Question 12 5 out of 5 pointsFunctions used in SQL statements must meet all of the following requirements, except ____. Answer
Selected Answer: b. Can use only OUT parametersCorrect Answer: b. Can use only OUT parameters
Question 13 0 out of 5 points When creating a package body for the package specification below, which of the following statementsis incorrect?CREATE OR REPLACE PACKAGE ordering_pkgISpv_total_num NUMBER(3,2);PROCEDURE order_total_pp(p_bsktid IN NUMBER,p_sub OUT NUMBER);FUNCTION ship_calc_pf (p_qty IN NUMBER)RETURN NUMBER;END; Answer
Selected Answer: d. Items declared in the body and not in the specification can be usedonly by other procedures and functions within this same package body.Correct Answer: c. The package body cannot include declarations of variables,cursors, types, and program units not found in the corresponding specification.
Question 14 5 out of 5 points Analyze the following code. The code fragment below is an example of a(n) ____.CREATE OR REPLACE PACKAGE ordering_pkgISpv_total_num NUMBER(3,2);PROCEDURE order_total_pp(p_bsktid IN NUMBER,p_sub OUT NUMBER);FUNCTION ship_calc_pf (p_qty IN NUMBER)RETURN NUMBER;END; Answer
Selected Answer: c. package specificationCorrect Answer: c. package specification
Question 15 5 out of 5 points ____ a program unit or PL/SQL block of code allows the storage and reuse of the code. Answer
Selected Answer: a. NamingCorrect Answer: a. Naming

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

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