+ All Categories
Home > Documents > CIS 423 - QUIZZES 6 - 10.pdf

CIS 423 - QUIZZES 6 - 10.pdf

Date post: 02-Jun-2018
Category:
Upload: jenaya-joseph
View: 1,379 times
Download: 29 times
Share this document with a friend

of 39

Transcript
  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    1/39

    Question 1

    2.871 out of 2.871 points

    The ____ command is used to view parameter information.

    Selected Answer:d.

    DESC

    Question 2

    2.871 out of 2.871 points

    Which of the following code fragments would not raise an error?

    Selected Answer:

    b.

    DECLARE

    v_amt1 number(5,2);

    v_amt2 number(3,0);

    BEGIN

    v_amt1 := 32.50;

    v_amt2 := ROUND(v_amt1,1);

    DBMS_OUTPUT.PUT_LINE(v_ amt2);

    END;

    Question 3

    2.871 out of 2.871 points

    The term passed by value means that a pointer to the value in the actual parameter is created instead of copying

    the value from the actual parameter to the formal parameter.Selected Answer:

    False

    Question 4

    2.871 out of 2.871 points

    The main difference between functions and procedures is that a function is part of an expression.

    Selected Answer:

    True

    Question 5

    2.871 out of 2.871 points

    The term ____ is identified with a set of acronyms that indicate the restrictions on using the function.

    Selected Answer:

    b.

    purity level

    Question 6

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    2/39

    0 out of 2.871 points

    A(n) procedure is part of an expression and cannot serve an entire statement.

    Selected Answer:

    True

    Question 7

    2.871 out of 2.871 points

    The term formal parameters refers to the arguments that are used when calling or invoking the program unit.

    Selected Answer:

    False

    Question 8

    2.871 out of 2.871 points

    The term passed by reference means that the value is copied from the actual parameter to the formal

    parameter.

    Selected Answer:

    False

    Question 9

    0 out of 2.871 points

    Which of the following correctly creates a function that performs an update on the BB_TEST1 table?

    Selected Answer:

    c.

    CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER)RETURN NUMBER

    IS

    BEGIN

    UPDATE bb_test1;

    SET col1 = p_num;

    RETURN p_num;

    END;

    Question 10

    2.871 out of 2.871 points

    Formal parameters including the RETURN data type cannot include size information.

    Selected Answer:

    True

    Question 11

    2.871 out of 2.871 points

    It is possible to reference a data dictionary to determine what code is contained in a program unit.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    3/39

    Selected Answer:

    True

    Question 12

    0 out of 2.871 points

    How many input values does the following code require?

    CREATE OR REPLACE FUNCTION memfmt1_sf

    (p_id IN NUMBER,

    p_first IN VARCHAR2,

    p_last IN VARCHAR2)

    RETURN VARCHAR2

    IS

    lv_mem_txt VARCHAR2(35);

    BEGIN

    lv_mem_txt := 'Member ' ||p_id|| ' - ' ||p_first|| ' ' ||p_last;

    RETURN lv_mem_txt;

    END;

    Selected Answer:

    d.

    4

    Question 13

    2.871 out of 2.871 points

    Which of the following statements is true?

    Selected Answer:

    a.

    After OUT parameters are included in functions, the function can no longer be used in SQL statements.Question 14

    2.871 out of 2.871 points

    The term actual parameters refers to the parameters that are listed in the program unit.

    Selected Answer:

    False

    Question 15

    2.871 out of 2.871 points

    ____ refer to the parameters that are listed in the program unit.

    Selected Answer:

    a.

    Formal parameters

    Question 16

    0 out of 2.871 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    4/39

    All of the following represent restrictions on functions, except ____.

    Selected Answer:

    a.

    Functions cannot modify any tables in Oracle8 and prior versions.

    Question 17

    2.871 out of 2.871 points

    You can include multiple RETURN statements in the body of a function.

    Selected Answer:

    True

    Question 18

    2.871 out of 2.871 points

    All of the following are purity level acronyms, except ____.

    Selected Answer:

    d.

    RINDS

    Question 19

    0 out of 2.871 points

    A(n) procedure cannot be invoked in a standalone fashion.

    Selected Answer:

    True

    Question 20

    2.871 out of 2.871 points

    The following code is an example of a(n) ____.

    DECLARE

    lv_name_txt VARCHAR2(35);

    lv_id_num NUMBER(4) := 25;

    lv_first_txt VARCHAR2(15) := 'Scott';

    lv_last_txt VARCHAR2(20) := 'David';

    BEGIN

    lv_name_txt := memfmt1_sf(lv_id_num,lv_first_txt, lv_last_txt);

    DBMS_OUTPUT.PUT_LINE(lv_name_txt);

    END;

    Selected Answer:

    c.

    anonymous block

    Question 21

    0 out of 2.871 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    5/39

    The following is a correct example of the use of the DROP command.

    DROP function_name;

    Selected Answer:

    True

    Question 22

    2.871 out of 2.871 points

    The RETURN statement in a function is used to control the flow of execution.

    Selected Answer:

    False

    Question 23

    2.871 out of 2.871 points

    The ____ purity level does not modify database tables.

    Selected Answer:

    a.

    WNDS

    Question 24

    2.871 out of 2.871 points

    Functions used in SQL statements must meet all of the following requirements, except ____.

    Selected Answer:

    d.

    Can use only OUT parametersQuestion 25

    2.871 out of 2.871 points

    Procedures can be used in SQL statements.

    Selected Answer:

    False

    Question 26

    2.871 out of 2.871 points

    A(n) ____ is a request a programmer includes within his or her code that asks Oracle to modify the default

    processing in some manner.

    Selected Answer:

    d.

    compiler hint

    Question 27

    0 out of 2.871 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    6/39

    Which of the following code fragments would not raise an error?

    Selected Answer:

    a.

    CREATE OR REPLACE FUNCTION ship_calc(p_qty IN NUMBER)

    RETURN NUMBERBEGIN

    IF p_qty > 10 THEN

    lv_ship_num := 11.00;

    ELSE

    lv_ship_num := 5.00;

    END IF;

    RETURN lv_ship_num;

    END;

    Question 28

    2.871 out of 2.871 points

    ____ refer to the arguments that are used when calling or invoking the program unit.

    Selected Answer:

    c.

    Actual parameters

    Question 29

    2.871 out of 2.871 points

    Which of the following statements is incorrect?

    Selected Answer:

    d.Procedures can be used in SQL statements.

    Question 30

    2.871 out of 2.871 points

    A function is quite similar to a procedure in that it is a program unit that achieves a task, can receive input values,

    and returns values to the calling environment.

    Selected Answer:

    True

    Question 31

    0 out of 2.871 points

    A(n) procedure is one type of program unit that is used to accomplish one or more tasks, return none or many

    values, and is used only in PL/SQL statements.

    Selected Answer:

    False

    Question 32

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    7/39

    2.871 out of 2.871 points

    At least one ____ statement must be included in a function body to instruct which value to return.

    Selected Answer:

    d.

    RETURNQuestion 33

    0 out of 2.871 points

    In the code below, which of the following is the parameter variable?

    CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER)

    RETURN NUMBER

    IS

    BEGIN

    UPDATE bb_test1

    SET col1 = p_num;

    RETURN p_num;

    END;

    Selected Answer:

    b.

    bb_test1

    Question 34

    2.871 out of 2.871 points

    The RETURN statement can return constant values, such as a text string.

    Selected Answer:True

    Question 35

    2.871 out of 2.871 points

    A good method to handle the size issue when declaring variables that hold values from a database table is to use

    the ____ attribute to use the size of the database column.

    Selected Answer:

    b.

    %TYPE

    uestion 1

    3.0303 out of 3.0303 points

    Items declared in the package body and not in the specification can be used only by other procedures and

    functions within this same package body.

    Selected Answer:

    True

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    8/39

    Question 2

    3.0303 out of 3.0303 points

    Package elements that can be referenced from outside the package are considered ____.

    Selected Answer:c.

    public

    Question 3

    0 out of 3.0303 points

    A(n) ____ is a declaration of a program unit in a package body by placing the header code at the top of the package

    body code.

    Selected Answer:

    b.

    package specification

    Question 4

    3.0303 out of 3.0303 points

    If a cursor is declared in a package specification that referenced the PV_TOTAL_NUM package variable, the

    variable ____.

    Selected Answer:

    b.

    must be declared before the cursor

    Question 5

    3.0303 out of 3.0303 points

    The ____ is referred to as the package header.

    Selected Answer:

    c.

    package specification

    Question 6

    0 out of 3.0303 points

    When compiling objects that call packaged program units, which of the following statements is true?

    Selected Answer:

    b.

    Because only the package body information is used, the PL/SQL compiler cannot determine if the restrictions on

    functions within SQL statements are being respected.

    Question 7

    3.0303 out of 3.0303 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    9/39

    CREATE OR REPLACE PACKAGE product_info_pkg IS

    PROCEDURE 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;

    The code fragment above is an example of a(n) ____.

    Selected Answer:

    a.

    overloaded procedure

    Question 8

    3.0303 out of 3.0303 points

    CREATE OR REPLACE PACKAGE ordering_pkg

    IS

    pv_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;

    Based on the package specification above, which of the following code fragments correctly creates a package

    body?

    Selected Answer:

    a.

    CREATE OR REPLACE PACKAGE BODY ordering_pkg IS

    FUNCTION ship_calc_pf

    (p_qty IN NUMBER)

    RETURN NUMBER

    IS

    lv_ship_num NUMBER(5,2);

    BEGIN

    ... code detail ...

    END ship_calc_pf;

    PROCEDURE order_total_pp

    (p_bsktid IN NUMBER,

    p_sub OUT NUMBER)

    IS

    BEGIN

    ... code detail ...

    END order_total_pp;

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    10/39

    END;

    Question 9

    3.0303 out of 3.0303 points

    All of the following represent packaged function purity levels, except ____.

    Selected Answer:

    b.

    RIPS

    Question 10

    3.0303 out of 3.0303 points

    CREATE OR REPLACE PACKAGE metric_pkg IS

    cup_to_liter CONSTANT NUMBER := .24;

    pint_to_liter CONSTANT NUMBER := .47;

    qrt_to_liter CONSTANT NUMBER := .95;

    END;

    Which of the following statements about the code fragment above is correct?

    Selected Answer:

    d.

    There is no need to create a body for this package.

    Question 11

    3.0303 out of 3.0303 points

    When a user assumes the rights of the program unit owner just during the processing of that program unit, this isreferred to as ____.

    Selected Answer:

    b.

    definer-rights

    Question 12

    0 out of 3.0303 points

    Adding the program unit name to the END statement that closes the procedure or function statements in the

    package body is mandatory.

    Selected Answer:

    True

    Question 13

    3.0303 out of 3.0303 points

    All of the following represent restrictions on functions, except ____.

    Selected Answer:

    b.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    11/39

    If used in a SELECT,VALUES, or SET clause, the function cannot write values to packaged variables.

    Question 14

    3.0303 out of 3.0303 points

    ____ can be created only as stored program units.Selected Answer:

    a.

    Packages

    Question 15

    3.0303 out of 3.0303 points

    The ____ packaged function purity level does not modify packaged variables.

    Selected Answer:

    b.

    WNPS

    Question 16

    3.0303 out of 3.0303 points

    Package elements are considered ____ if they can be called only from other program units within the same

    package.

    Selected Answer:

    c.

    private

    Question 17

    3.0303 out of 3.0303 points

    Using the same name on multiple program units within the same package is referred to as ____.

    Selected Answer:

    a.

    overloading

    Question 18

    3.0303 out of 3.0303 points

    The term ____ refers to the range of visibility for a particular element or construct contained in a package.

    Selected Answer:

    a.

    package scope

    Question 19

    3.0303 out of 3.0303 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    12/39

    The ____ directive needs to be included in the package specification to clearly state the purity levels applicable to

    the function.

    Selected Answer:

    a.

    PRAGMA RESTRICT_REFERENCES

    Question 20

    0 out of 3.0303 points

    CREATE OR REPLACE PACKAGE ordering_pkg

    IS

    pv_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;

    When creating a package body for the package specification above, which of the following statements is incorrect?

    Selected Answer:

    d.

    The package body must be created using the same name as the existing specification.

    Question 21

    3.0303 out of 3.0303 points

    The statement ____ would successfully remove the package specification and body.Selected Answer:

    c.

    DROP PACKAGE package_name;

    Question 22

    3.0303 out of 3.0303 points

    The ____ defines the type of data structures the function reads or modifies.

    Selected Answer:

    d.

    purity level

    Question 23

    3.0303 out of 3.0303 points

    All code in the procedure and function header sections of a package body must match exactly to the declarations

    in the corresponding specification.

    Selected Answer:

    True

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    13/39

    Question 24

    3.0303 out of 3.0303 points

    The statement ____ would successfully declare a REF CURSOR data type.

    Selected Answer:a.

    TYPE testcur IS ref cursor;

    Question 25

    3.0303 out of 3.0303 points

    Full procedures or function codes are contained in the ____.

    Selected Answer:

    d.

    package body

    Question 26

    3.0303 out of 3.0303 points

    Packages can be created in local libraries, as can procedures and functions.

    Selected Answer:

    False

    Question 27

    3.0303 out of 3.0303 points

    Which of the following correctly sets the default purity level for a packaged function?Selected Answer:

    d.

    PRAGMA RESTRICT_REFERENCES(DEFAULT, WNDS, WNPS);

    Question 28

    3.0303 out of 3.0303 points

    Forcing the user to use his or her own privileges for a program unit, and not that of the owner is called ____.

    Selected Answer:

    d.

    invoker-rights

    Question 29

    3.0303 out of 3.0303 points

    A package specification can contain declarations for procedures, functions, variables, exceptions, cursors, and

    types.

    Selected Answer:

    True

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    14/39

    Question 30

    3.0303 out of 3.0303 points

    Functions that have not been declared in a package specification are considered public.

    Selected Answer:False

    Question 31

    0 out of 3.0303 points

    The ____ packaged function purity level does not modify database tables.

    Selected Answer:

    c.

    RNDS

    Question 32

    3.0303 out of 3.0303 points

    CREATE OR REPLACE PACKAGE ordering_pkg

    IS

    pv_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;

    The code fragment above is an example of a(n) ____.

    Selected Answer:

    a.

    package specification

    Question 33

    3.0303 out of 3.0303 points

    A(n) ____ is a statement used to define a data construct, such as a variable, name, and data type.

    Selected Answer:

    c.

    declaration

    2.12766 out of 2.12766 points

    The signature model cannot resolve the time issues of using the timestamp model.

    Selected Answer: False

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    15/39

    Question 2

    2.12766 out of 2.12766 points

    What can be used to conditionally raise a compile error and associate a custome error number with the

    error?

    Selected Answer: b.

    Error directive

    Question 3

    2.12766 out of 2.12766 points

    ____ can be used to manually recompile invalid program units.

    Selected Answer: b.

    ALTER COMPILE

    Question 4

    0 out of 2.12766 points

    Which of the following statements is correct?

    Selected Answer: b.

    If an object on one database is changed, any remote program units that use or depend on that object is

    immediately changed to an INVALID status.

    Question 5

    2.12766 out of 2.12766 points

    Remote database connections are used to link to another database and to call objects that exist on that

    database.

    Selected Answer: True

    Question 6

    2.12766 out of 2.12766 points

    The ____ procedure is used to populate the dependency data for the object of interest.

    Selected Answer: c.

    DEPTREE_FILL

    Question 7

    2.12766 out of 2.12766 points

    A column named TIMESTAMP is maintained in the data dictionary and is included in the

    USER_DEPENDENCIES view.

    Selected Answer: False

    Question 8

    2.12766 out of 2.12766 points

    A program unit is said to contain ____ when it includes references to database objects that in turn

    references other database objects.

    Selected Answer: c.

    indirect dependencies

    Question 9

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    16/39

    2.12766 out of 2.12766 points

    When you have successfully saved or compiled a procedure, the status is marked as VALID.

    Selected Answer: True

    Question 102.12766 out of 2.12766 points

    You can use the USER_OBJECT data dictionary view to review the source code of a procedure, function, or

    package.

    Selected Answer: False

    Question 11

    2.12766 out of 2.12766 points

    ____ shows only direct roles granted to the current schema.

    Selected Answer: d.

    USER_ROLE_PRIVS

    Question 12

    2.12766 out of 2.12766 points

    ____ instructs the system to assign the variable data type based on the underlying table column data type

    at runtime.

    Selected Answer: c.

    %ROWTYPE

    Question 13

    2.12766 out of 2.12766 points

    Which compile statement option forces a program unit to retain the compilation settings from theprevious compile action?

    Selected Answer: d.

    REUSE SETTINGS

    Question 14

    2.12766 out of 2.12766 points

    The data dictionary contains information regarding ____.

    Selected Answer: d.

    user privileges

    Question 15

    2.12766 out of 2.12766 points

    The dependency tree utility allows the user to review direct and indirect dependencies of an object in

    either numeric order or indented format.

    Selected Answer: True

    Question 16

    2.12766 out of 2.12766 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    17/39

    When a procedure is compiled, it stores the ____ of any referenced objects.

    Selected Answer: a.

    signature

    Question 17

    2.12766 out of 2.12766 points

    Which of the following statements is true?

    Selected Answer: c.

    Modifications to a package body does not change the status of dependent objects.

    Question 18

    2.12766 out of 2.12766 points

    If a dependent object has an older ____ than the referenced object when called, the dependent object is

    flagged as INVALID and needs to be recompiled.

    Selected Answer: c.

    timestamp

    Question 19

    2.12766 out of 2.12766 points

    The USER_DEPENDENCIES data dictionary view provides information on direct object dependencies.

    Selected Answer: True

    Question 20

    2.12766 out of 2.12766 points

    Only program unit header modifications require a recompilation of dependent objects.

    Selected Answer: True

    Question 21

    2.12766 out of 2.12766 points

    The ____ system privilege allows users to create, modify, and drop program units within their own

    schema.

    Selected Answer: d.

    CREATE PROCEDURE

    Question 22

    2.12766 out of 2.12766 points

    If modifications are made to the code in a package body, the status of dependent objects is changed to

    INVALID.

    Selected Answer: False

    Question 23

    0 out of 2.12766 points

    Which item below is the name for an IF THEN structure used to accomplish conditional compilation?

    Selected Answer: b.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    18/39

    Selective statement

    Question 24

    2.12766 out of 2.12766 points

    The user source utility is a mechanism available in the Oracle system to provide a map to visualize both

    direct and indirect dependencies within the database.Selected Answer: False

    Question 25

    2.12766 out of 2.12766 points

    Which of the following is used by Oracle to determine invalidation of remote dependent objects at

    runtime?

    Selected Answer: d.

    signature model

    Question 26

    2.12766 out of 2.12766 points

    The utldtree.sql file is provided by Oracle and is run to set up the necessary tables, views, and procedures

    to use the dependency tree.

    Selected Answer: True

    Question 27

    2.12766 out of 2.12766 points

    Which of the following compiler parameter will determine the code optimization techniques used?

    Selected Answer: d.

    PLSQL_OPTIMIZE_LEVEL

    Question 28

    2.12766 out of 2.12766 points

    ____ can be used to check the status of database objects.

    Selected Answer: d.

    USER_OBJECTS

    Question 29

    2.12766 out of 2.12766 points

    The timestamp model is not the default method and, if desired, needs to be set in the system using one of

    several commands available.

    Selected Answer: False

    Question 30

    2.12766 out of 2.12766 points

    Only modifications to the ____ can raise the INVALID status of dependent objects.

    Selected Answer: b.

    package specification

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    19/39

    Question 31

    2.12766 out of 2.12766 points

    The SELECT * statement should be used when querying data from the database rather than a named

    column list.

    Selected Answer: True

    Question 32

    2.12766 out of 2.12766 points

    Compiler variables are used to enable compiler warning messages and conditional compilation.

    Selected Answer: False

    Question 33

    0 out of 2.12766 points

    Which of the following data dictionarty view can verify compiler parameter settings for an object?

    Selected Answer: c.

    PLSQL_OBJECT_SETTINGS

    Question 34

    2.12766 out of 2.12766 points

    Which of the following commands correctly modifies Scotts rights on the bb_basket table?

    Selected Answer: a.

    GRANT SELECT, INSERT, UPDATE ON bb_basket TO scott;

    Question 35

    2.12766 out of 2.12766 points

    If granted appropriate rights, it is possible to call database objects from other schemas.

    Selected Answer: True

    Question 36

    2.12766 out of 2.12766 points

    The %TYPE declaration instructs the system to assign the variable data type based on the underlying table

    column data type at runtime.

    Selected Answer: True

    Question 37

    2.12766 out of 2.12766 points

    When a program unit refers to other database objects, the program unit is considered dependent on that

    object.

    Selected Answer: True

    Question 38

    2.12766 out of 2.12766 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    20/39

    ____ allows users to create program units in any schema and does not allow the modification or dropping

    of program units.

    Selected Answer: a.

    CREATE ANY PROCEDURE

    Question 39

    2.12766 out of 2.12766 points

    Compiler directives are instructions used at run time.

    Selected Answer: False

    Question 40

    2.12766 out of 2.12766 points

    When a procedure is compiled, it stores the datestamp of any referenced objects.

    Selected Answer: False

    Question 41

    2.12766 out of 2.12766 points

    The ____ view can be used to review the source code of a procedure, function, or package.

    Selected Answer: b.

    USER_SOURCE

    Question 42

    2.12766 out of 2.12766 points

    The ____ is considered the default method of remote dependent objects.

    Selected Answer: b.

    timestamp model

    Question 43

    2.12766 out of 2.12766 points

    ____ allows a user to modify program units in any schema.

    Selected Answer: d.

    ALTER ANY PROCEDURE

    Question 44

    2.12766 out of 2.12766 points

    The PLSQL_CCFLAGS parameter allows using onject-level flags in conditional compilation.

    Selected Answer: True

    Question 45

    2.12766 out of 2.12766 points

    The ____ view shows only the direct privileges of the current schema.

    Selected Answer: c.

    USER_SYS_PRIVS

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    21/39

    Question 46

    2.12766 out of 2.12766 points

    When a program unit includes references to database objects that in turn reference other database

    objects, it is said to contain direct dependencies.

    Selected Answer: False

    Question 47

    2.12766 out of 2.12766 points

    Three classes of compiler warnings exist: info, performance and critical.

    Selected Answer: False

    Question 1

    2.94118 out of 2.94118 points

    The default timing of a trigger is row level and no code is included to achieve this timing.

    Selected Answer:

    False

    Question 2

    2.94118 out of 2.94118 points

    The default timing of a trigger is ____.

    Selected Answer:

    d.

    statement levelQuestion 3

    2.94118 out of 2.94118 points

    LONG or LONG RAW variables can be declared in triggers and the NEW and OLD qualifiers cannot refer to these

    types of columns.

    Selected Answer:

    False

    Question 4

    2.94118 out of 2.94118 points

    One prominent limitation in the use of triggers is that they cannot issue transaction control statements of

    COMMIT, ROLLBACK, and SAVEPOINT.

    Selected Answer:

    True

    Question 5

    2.94118 out of 2.94118 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    22/39

    CREATE [OR REPLACE] TRIGGER trigger_name [BEFORE, AFTER]

    [List of DDL or Database System Events] [ON DATABASE |

    SCHEMA] Trigger body;

    The syntax above represents that of a(n) ____ trigger.Selected Answer:

    b.

    system

    Question 6

    2.94118 out of 2.94118 points

    Which of the following statements is correct?

    Selected Answer:

    d.

    A BEFORE statement level trigger will fire before a BEFORE row level trigger.

    Question 7

    0 out of 2.94118 points

    Which of the following events will cause the trigger to fire?

    AFTER UPDATE OF orderplaced ON bb_basket

    Selected Answer:

    a.

    AFTER

    Question 8

    0 out of 2.94118 points

    Which of the following indicates that the trigger is fired only once, regardless of the number of rows affected by

    the DML statement?

    Selected Answer:

    c.

    Event level

    Question 9

    0 out of 2.94118 points

    LOB and OBJECT columns can be referenced in a trigger and can also be modified.

    Selected Answer:

    True

    Question 10

    2.94118 out of 2.94118 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    23/39

    ____ triggers refer to database triggers that are fired by Data Definition Language (DDL) statements or database

    system events rather than DML actions.

    Selected Answer:

    d.

    System

    Question 11

    0 out of 2.94118 points

    The statement ____ correctly deletes a trigger.

    Selected Answer:

    b.

    DELETE TRIGGER trigger_name;

    Question 12

    0 out of 2.94118 points

    Row level options are only applicable for ____ events.

    Selected Answer:

    a.

    CREATE

    Question 13

    2.94118 out of 2.94118 points

    The ALTER TRIGGER statement is used to recompile, enable, or disable a trigger.

    Selected Answer:

    True

    Question 14

    2.94118 out of 2.94118 points

    CURSOR basketitem_curIS

    SELECT idproduct, quantity, option1

    FROM bb_basketitem

    WHERE idbasket = :NEW.idbasket;

    In the code fragment above, which of the following represents the correlation identifier?

    Selected Answer:

    c.

    :NEW.idbasket

    Question 15

    2.94118 out of 2.94118 points

    A constraining table is one that is being modified by a DML action when a trigger is fired.

    Selected Answer:

    False

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    24/39

    Question 16

    2.94118 out of 2.94118 points

    Which of the following statements is true?

    Selected Answer:a.

    The body of a trigger cannot read or modify the primary, unique, or foreign key columns of a constraining table.

    Question 17

    2.94118 out of 2.94118 points

    CREATE OR REPLACE TRIGGER logon_trg

    AFTER logon ON SCHEMA

    BEGIN

    INSERT INTO bb_audit_logon

    VALUES (USER, SYSDATE);

    END;

    In the code fragment above, which of the ____ statement represents the system event.

    Selected Answer:

    a.

    logon

    Question 18

    0 out of 2.94118 points

    The statement ____ recompiles the trigger named sales_trg.

    Selected Answer:b.

    DROP TRIGGER sales_trg COMPILE;

    Question 19

    2.94118 out of 2.94118 points

    If multiple triggers exist on a table, there is no guarantee about the order in which the triggers will be fired.

    Selected Answer:

    True

    Question 20

    2.94118 out of 2.94118 points

    The timing of triggers must be indicated as either BEGIN or END.

    Selected Answer:

    False

    Question 21

    0 out of 2.94118 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    25/39

    Which trigger option will force the trigger to fire before the test_trg trigger.

    Selected Answer:

    a.

    no option is available to control the firing order

    Question 22

    0 out of 2.94118 points

    The ____ trigger clause allows a trigger to include multiple triggering events in a single trigger.

    Selected Answer:

    d.

    MULTIPLE

    Question 23

    2.94118 out of 2.94118 points

    A database trigger is tied to a database table or view and is implicitly fired by the database system when that

    table or view is affected with the associated DML action.

    Selected Answer:

    True

    Question 24

    2.94118 out of 2.94118 points

    Which of the following statements is true about mutating tables?

    Selected Answer:

    a.A table in an INSERT statement that fires a row level trigger affecting the same table is not considered a

    mutating table unless the INSERT includes a subquery.

    Question 25

    2.94118 out of 2.94118 points

    DDL events include all of the following, except ____.

    Selected Answer:

    d.

    DECLARE

    Question 26

    2.94118 out of 2.94118 points

    All of the following would cause a trigger to fire, except ____.

    Selected Answer:

    b.

    BEFORE

    Question 27

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    26/39

    2.94118 out of 2.94118 points

    A(n) ____ trigger fires whenever the event occurs, regardless of the schema in which it occurs.

    Selected Answer:

    b.database level

    Question 28

    2.94118 out of 2.94118 points

    The statement ____ can be used to disable or enable a specific trigger.

    Selected Answer:

    c.

    ALTER TRIGGER trigger_name DISABLE|ENABLE;

    Question 29

    2.94118 out of 2.94118 points

    The trigger body is a PL/SQL block that contains the actions that take place when the trigger fires.

    Selected Answer:

    True

    Question 30

    2.94118 out of 2.94118 points

    Numerous triggers can be constructed on one table and, therefore, a DML action on that table can fire off more

    than one trigger.Selected Answer:

    True

    Question 31

    2.94118 out of 2.94118 points

    Database system events include all of the following, except ____.

    Selected Answer:

    b.

    GRANT

    Question 32

    0 out of 2.94118 points

    System triggers are typically used to allow the modification of data through a view on a view that is

    nonmodifiable.

    Selected Answer:

    True

    Question 33

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    27/39

    0 out of 2.94118 points

    A(n) ____ table is one that is involved in a join and the keys of the original table are included in the keys of the

    resultant join.

    Selected Answer:d.

    mutating

    Question 34

    2.94118 out of 2.94118 points

    A(n) ____ is a table that is being modified by a DML action when a trigger is fired.

    Selected Answer:

    d.

    mutating table

    Question 1

    0 out of 1.40845 points

    The goal of SQL is to empower users with little or no query skills to be able to perform a variety of data queries.

    Selected Answer:

    True

    Question 2

    1.40845 out of 1.40845 points

    The UTL_LINE package allows access to files that reside on an operating system and are accessible from the

    database server.

    Selected Answer:

    False

    Question 3

    1.40845 out of 1.40845 points

    ____ is responsible for checking syntax.

    Selected Answer:

    a.

    PARSE

    Question 4

    1.40845 out of 1.40845 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    28/39

    The basic mechanics of the alert process include registering an alert name, setting up when an alert should

    signal, and enabling the appropriate users to receive the alert.

    Selected Answer:

    True

    Question 5

    1.40845 out of 1.40845 points

    Dynamic SQL allows us to employ a more object-oriented approach to modeling our database and applications.

    Selected Answer:

    False

    Question 6

    1.40845 out of 1.40845 points

    The ____ package allows parameters to be directly used as identifiers, such as column names and table names.

    Selected Answer:

    b.

    DBMS_SQL

    Question 7

    1.40845 out of 1.40845 points

    The ____ method can be used to implement native dynamic SQL.

    Selected Answer:

    a.

    OPEN FOR

    Question 8

    1.40845 out of 1.40845 points

    DBMS_DDL.ALTER_COMPILE (

    type VARCHAR2,

    schema VARCHAR2,

    name VARCHAR2);

    In the header for the ALTER_COMPILE procedure above, the ____ statement refers to the objects owner.

    Selected Answer:

    d.

    schema

    Question 9

    1.40845 out of 1.40845 points

    The process flow of the DBMS_SQL procedures involves the establishment of a(n) ____ to contain and

    manipulate the SQL statement.

    Selected Answer:

    b.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    29/39

    cursor

    Question 10

    1.40845 out of 1.40845 points

    The util.ora file contains environment settings, such as the UTL_FILE_DIR parameter, that determine if and howcertain Oracle features are accessible from within PL/SQL code.

    Selected Answer:

    False

    Question 11

    1.40845 out of 1.40845 points

    In the DBMS_LOB package, the term ____ represents programs that read LOBs or information about the LOBs.

    Selected Answer:

    b.

    Observer

    Question 12

    1.40845 out of 1.40845 points

    All of the following, except ____, represent steps required to perform DDL with the DBMS_SQL package.

    Selected Answer:

    b.

    BIND_VARIABLE

    Question 13

    1.40845 out of 1.40845 points

    A large object (LOB) can hold ____.

    Selected Answer:

    d.

    4 GB

    Question 14

    1.40845 out of 1.40845 points

    The programs within the ____ package can be grouped into two sets: mutators and observers.

    Selected Answer:

    b.

    DBMS_LOB

    Question 15

    1.40845 out of 1.40845 points

    The ____ parameter of the ANALYZE_OBJECT procedure dictates that the value provided must be either TABLE,

    INDEX, or CLUSTER.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    30/39

    Selected Answer:

    a.

    TYPE

    Question 16

    1.40845 out of 1.40845 points

    The REQUEST_PIECES function is typically used to avoid possibly truncating information contained on the Web

    page.

    Selected Answer:

    True

    Question 17

    1.40845 out of 1.40845 points

    The ____ built-in package retrieves information about database objects.

    Selected Answer:

    b.

    DBMS_METADATA

    Question 18

    0 out of 1.40845 points

    The code fragment ____ would raise an error.

    Selected Answer:

    d.

    DBMS_ALERT.WAITONE( 'new_bid', v_msg, v_status, 600);

    Question 19

    1.40845 out of 1.40845 points

    ____ are used to distinguish parameter values that are used as criteria in the DBMS_SQL package, versus

    parameters that provide identifiers such as column names.

    Selected Answer:

    a.

    Placeholders

    Question 20

    1.40845 out of 1.40845 points

    The ability to send e-mails from within PL/SQL code has been simplified with the introduction of the

    DBMS_ALERT package.

    Selected Answer:

    False

    Question 21

    1.40845 out of 1.40845 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    31/39

    ____ frees the resources allocated to the cursor.

    Selected Answer:

    d.

    CLOSE_CURSOR

    Question 22

    1.40845 out of 1.40845 points

    When executing a stored program, any DBMS_OUTPUT lines are placed in an output buffer, which dumps its

    contents to the screen when the program has completed execution.

    Selected Answer:

    True

    Question 23

    1.40845 out of 1.40845 points

    The DBMS_OUTPUT procedure ____ places an end-of-line marker in the buffer.

    Selected Answer:

    c.

    NEW_LINE

    Question 24

    1.40845 out of 1.40845 points

    The ____ procedure of the DBMS_DDL package allows developers to programmatically compile database

    objects.

    Selected Answer:

    d.ALTER_COMPILE

    Question 25

    1.40845 out of 1.40845 points

    The UTL_HTTP package provides the capability to make Hypertext Transfer Protocol (HTTP) calls from within

    PL/SQL programs.

    Selected Answer:

    True

    Question 26

    1.40845 out of 1.40845 points

    The init.ora file contains all the settings for the database and is read when the database is started up.

    Selected Answer:

    True

    Question 27

    1.40845 out of 1.40845 points

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    32/39

    Which of the following is the correct syntax for an EXECUTE IMMEDIATE statement?

    Selected Answer:

    d.

    EXECUTE IMMEDIATE 'SQL statement'

    [ INTO ( var1, var2, ... | record ][ USING [ IN | OUT | IN OUT ] bindvar1, bindvar2, ... ]

    [ RETURNING | RETURN INTO outvar1, outvar2, ... ];

    Question 28

    1.40845 out of 1.40845 points

    ____ will cause an error if used directly within PL/SQL.

    Selected Answer:

    a.

    DDL statements

    Question 29

    1.40845 out of 1.40845 points

    A(n) mutator is similar to a partition or area of the physical disk.

    Selected Answer:

    False

    Question 30

    1.40845 out of 1.40845 points

    The ____ built-in package contains a miscellaneous group of programs ranging from capabilities to assist inprocedure management to reporting error information.

    Selected Answer:

    b.

    DBMS_UTILITY

    Question 31

    1.40845 out of 1.40845 points

    All of the following programs are available in the UTL_FILE package, except ____.

    Selected Answer:

    b.

    RSET

    Question 32

    1.40845 out of 1.40845 points

    ____ establishes a work area for a statement to be handled.

    Selected Answer:

    c.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    33/39

    OPEN_CURSOR

    Question 33

    1.40845 out of 1.40845 points

    Which of the following is a procedure in the DBMS_DDL package that will assist to hide source code?Selected Answer:

    c.

    CREATE_WRAPPED.

    Question 34

    1.40845 out of 1.40845 points

    Native dynamic SQL is simpler to code and processes statements more efficiently than the DBMS_SQL package.

    Selected Answer:

    True

    Question 35

    1.40845 out of 1.40845 points

    Attempting to use a parameter to provide an identifier, such as a column name or table name, in an SQL

    statement within PL/SQL raises an error.

    Selected Answer:

    True

    Question 36

    1.40845 out of 1.40845 points

    The DBMS_ALERT package allows two or more sessions, in the same instance, to communicate.

    Selected Answer:

    False

    Question 37

    1.40845 out of 1.40845 points

    The ____ package allows access to two DDL statements that cannot be used directly within a PL/SQL block:

    ALTER_COMPILE and ANALYZE_OBJECT.

    Selected Answer:

    b.

    DBMS_DDL

    Question 38

    1.40845 out of 1.40845 points

    Alerts are transaction based and are sent only if the transaction is committed.

    Selected Answer:

    True

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    34/39

    Question 39

    1.40845 out of 1.40845 points

    In the DBMS_LOB package, which of the following represents the programs that add, change, or remove the

    large objects (LOBs)?Selected Answer:

    a.

    mutator

    Question 40

    1.40845 out of 1.40845 points

    All of the following procedures are included in the DBMS_ALERT package, except ____.

    Selected Answer:

    d.

    WAIT

    Question 41

    1.40845 out of 1.40845 points

    The UTL_FILE package contains a PUT_LINE data type that is used to declare a file variable.

    Selected Answer:

    False

    Question 42

    1.40845 out of 1.40845 points

    ____ allows us to make the SQL statements in our PL/SQL code much more flexible in regards to providing

    values, such as column names, at runtime.

    Selected Answer:

    c.

    Dynamic SQL

    Question 43

    1.40845 out of 1.40845 points

    An EXECUTE step is not needed with DDL statements because the PARSE step automatically executes the

    statement upon successful parsing.

    Selected Answer:

    True

    Question 44

    1.40845 out of 1.40845 points

    When the SQL statement is built in the PL/SQL block, placeholders with colon prefixes are used to mark where

    values are supplied at runtime.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    35/39

    Selected Answer:

    True

    Question 45

    1.40845 out of 1.40845 points

    ____ and PL/SQL allow the construction and parsing of statements at runtime rather than compile time.

    Selected Answer:

    c.

    Dynamic SQL

    Question 46

    1.40845 out of 1.40845 points

    The array-like processing available in DBMS_SQL makes working with many rows much more cumbersome.

    Selected Answer:

    False

    Question 47

    1.40845 out of 1.40845 points

    You must enable DBMS output in order to see the display from DBMS_OUTPUT commands.

    Selected Answer:

    True

    Question 48

    1.40845 out of 1.40845 points

    The BLOB, CLOB, and NCLOB objects can all be stored internally and are typically stored in a separate tablespace

    from database tables to enable optimization of the attributes of each tablespace for the type of data being stored.

    Selected Answer:

    True

    Question 49

    1.40845 out of 1.40845 points

    In the UTL_HTTP package, the ____ function is used to retrieve the HTML source from a specified URL.

    Selected Answer:

    c.

    REQUEST_PIECES

    Question 50

    1.40845 out of 1.40845 points

    All of the following except ____ require parameters.

    Selected Answer:

    b.

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    36/39

    OPEN_CURSOR

    Question 51

    1.40845 out of 1.40845 points

    Support for DBMS_SQL statements is built into the PL/SQL interpreter.Selected Answer:

    False

    Question 52

    1.40845 out of 1.40845 points

    In the DBMS_DDL package, ____ is a valid ANALYZE_OBJECT exception.

    Selected Answer:

    a.

    ORA-20000

    Question 53

    1.40845 out of 1.40845 points

    BEGIN

    DBMS_OUTPUT.PUT('This');

    DBMS_OUTPUT.PUT(' is a');

    DBMS_OUTPUT.PUT(' test');

    DBMS_OUTPUT.PUT_LINE('This is test2');

    DBMS_OUTPUT.PUT('Working?');

    END;

    The code fragment above is an example of a(n) ____.Selected Answer:

    d.

    anonymous block

    Question 54

    1.40845 out of 1.40845 points

    DBMS_SQL is simpler to code and processes more efficiently than native dynamic SQL.

    Selected Answer:

    False

    Question 55

    1.40845 out of 1.40845 points

    The ____ built-in package retrieves Internet site host names or IP addresses.

    Selected Answer:

    d.

    UTL_INADDR

    Question 56

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    37/39

    1.40845 out of 1.40845 points

    The ____ package provides access to DDL statements that cannot be included directly within PL/SQL code.

    Selected Answer:

    b.DBMS_SQL

    Question 57

    1.40845 out of 1.40845 points

    The ____ package can be used to analyze the HTML source of Web sites in order to accomplish tasks such as

    tracking competitor pricing on products, gathering pricing for raw materials, and collecting relevant business news

    for a particular industry.

    Selected Answer:

    d.

    UTL_HTTP

    Question 58

    1.40845 out of 1.40845 points

    If a table contains any LOB columns, client tools such as SQL Developer cannot display the images, however, the

    GETLENGTH function can be used to confirm a file was loaded into the LOB column.

    Selected Answer:

    True

    Question 59

    1.40845 out of 1.40845 points

    The ____ program associates placeholders in the Cursor with PL/SQL variables.

    Selected Answer:

    d.

    BIND_VARIABLE

    Question 60

    1.40845 out of 1.40845 points

    The DBMS_DDL package provides the only Oracle method available to hide source code.

    Selected Answer:

    False

    Question 61

    1.40845 out of 1.40845 points

    In the DBMS_DDL package, the ____ procedure creates statistics for database objects to be utilized to enhance

    performance.

    Selected Answer:

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    38/39

  • 8/10/2019 CIS 423 - QUIZZES 6 - 10.pdf

    39/39

    True

    Question 68

    1.40845 out of 1.40845 points

    Dynamic SQL allows the criteria of a query such as the column checked in the WHERE clause to be identified atcompile time.

    Selected Answer:

    False

    Question 69

    1.40845 out of 1.40845 points

    To successfully compile a program, you must either own the object or you must be granted the ____ privilege to

    compile an object in another schema.

    Selected Answer:

    c.

    ALTER ANY PROCEDURE

    Question 70

    1.40845 out of 1.40845 points

    The OPEN FOR method cannot reuse parsed statements.

    Selected Answer:

    False

    Question 71

    1.40845 out of 1.40845 points

    In which of the following situations is the use of native dynamic SQL considered inappropriate?

    Selected Answer:

    d.

    The number and types of columns to be used is not known.


Recommended