Preview

Plsql Chap7 Sols

Better Essays
Open Document
Open Document
2330 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Plsql Chap7 Sols
PL/SQL Chapter 7 Solutions

Review Questions
1. B
2. D
3. A,D
4. C,D
5. B,D
6. A
7. C
8. D
9. A
10. D

11. The user_objects view can be used to determine all the packages that exist in the database. In the query, use a WHERE clause to select the rows that contain the term 'PACKAGE' in the object type column. Selecting the text column of the user_source view will list all the source code lines in the package. Use a WHERE clause on the name column to select a single package.

12. If there are values referenced continually in the application, storing them in packaged variables will allow the values to only be retrieved once thus saving data retrieval processing. The values in global constructs are persistent for the entire user session.

13. Overloading allows two or more program units in a package to have the same name yet accept a different set of arguments. At times you may have certain functionality that you need to occur but you must handle a variety of different types of data to be supplied to the program unit. In this case, you can write several program units to contain the same code yet accept different arguments. The Oracle server will automatically identify the appropriate copy of the program unit to use based on the arguments provided in the invocation.

14. If you need to share some values or objects across all sessions, a package specification allows this by housing global variables, cursors and types. If the package only consists of global constructs to share and no program units then a package body is not needed.

15. A program unit that exists in a package body but is not declared in the package specification is referred to as a private construct. It is private in that only program units that are included in the same package can call or invoke this program unit.

Advanced Review Questions
1. C
2. D
3. B
4. C
5. B, C

Hands-On Assignments

Assignment 7-1
CREATE OR REPLACE PACKAGE order_info_pkg IS FUNCTION ship_name_pf (p_basket IN

You May Also Find These Documents Helpful

  • Satisfactory Essays

    This week learning assignment is based on Unit 8 Chapter 6 reading of the textbook about the elements of a computing system that focus on the selections relevant for supporting programs with symbols.…

    • 288 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    A script file is meant to be like a program. The file can be run every time the code needs to be executed without having to retype the code again each time. For this reason, it is important that there are no errors in the…

    • 1559 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    6. What is the difference between passing an argument by value and passing it by reference?…

    • 765 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1) GlobalSetup(k): Taking a security parameter K as an data or the input, this capacity creates a worldwide parameter GP.…

    • 259 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Amsco Answer Key

    • 523 Words
    • 3 Pages

    Amsco AP U.S. History Test Preparation Book Student Self Test Answer Keys 1. 2. 3. 4.…

    • 523 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Task 3

    • 4254 Words
    • 17 Pages

    Complete a thorough analysis of the mobile device policies. Periodically examine mobile device usage and identify security risks/threat.…

    • 4254 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 4 Homework

    • 401 Words
    • 2 Pages

    How do modules help you to reuse code in a program? Performs the task once then reuses it each time you need to perform the task.…

    • 401 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    3) Look at the following pseudocode module header: Module myModule( Integer a, Integer b, Integer c) Now look at the following call to myModule: Call myModule( 3, 2, 1) When this call executes, what value will be stored in a? What value will be stored in b? What value will be stored in c?…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    In a high-level language, the programmer’s only responsibilities for managing data items are to declare (or in the case of Python, create) all constants and variables the program will use.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Data Base

    • 2312 Words
    • 10 Pages

    * Each value manipulated by an Oracle database possesses a data type. The data type of a value links a selection of attributes to the value. These attributes of the value differentiate one data type from the others. Oracle treats certain data types in a distinct way. For instance, one can add values of NUMBER data type, but not values of RAW data type. When one builds a table or a cluster, one must assign data types for all its columns. In Oracle, the arguments of a procedure or stored function also need to be allocated data types. The data types specify the domain of values which…

    • 2312 Words
    • 10 Pages
    Good Essays
  • Better Essays

    Mr. Boss

    • 2566 Words
    • 11 Pages

    The principle of overload uses the FITT Varibles to accomplish overload. The Acronym FITT stands for:…

    • 2566 Words
    • 11 Pages
    Better Essays
  • Better Essays

    ii. The first component of the class definition is called the access_mode. It will either be public, abstract, final, or not used at all.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Plsql Chap8 Sols

    • 1705 Words
    • 12 Pages

    18. To be aware of affected objects and the recompilation needs. A developer should test any dependent program units and recompile objects made INVALID manually to avoid this processing at runtime. In addition, remote dependencies will cause a runtime error if objects not recompiled.…

    • 1705 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    Sheet01

    • 1045 Words
    • 5 Pages

    4. What is the result of the following code and where is it kept? LDAA #$15 ADDA #$13 5. Which of the following instructions is (are) illegal? a- LDAA #500 b- LDAA #50 c- LDAA #00 d- LDAA #$255 e- LDAA #$25 f- LDAA #$F5 g- ADDA mybyte , #$25 6. Which of the following instructions is (are) illegal? a- ADDA #$300 b- ADDA #$50 c- ADDA #$500 d- ADDA #$255 e- ADDA #12 f- ADDA#$F5 g- ADDA #$25 7. 8. 9. 10. Show a simple code to load values 30H and 97H into locations 805H and 806H, respectively. Show a simple code to load value 55H into locations 300H and 308H. Show a simple code to load value 5FH into Port B. Which of the following is an invalid use of the immediate addressing mode? a- LDDA #$24 b- LDAA $30 c- LDAA #$60…

    • 1045 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Intro the Programming

    • 386 Words
    • 5 Pages

    Writing the code to perform a task once and then reusing it each time you need to perform the task is a benefit of using…

    • 386 Words
    • 5 Pages
    Satisfactory Essays

Related Topics