1. Question: Which two among the following programming constructs can be grouped within a package?

    A
    Cursor

    B
    Constant

    C
    Trigger

    D
    Sequence

    E
    View

    Note: Not available
    1. Report
  2. Question: Which two statements, among the following, describe the state of a package variable after executing the package in which it is declared?

    A
    It persists across transactions within a session

    B
    It persists from session to session for the same user

    C
    It does not persist across transaction within a session

    D
    It persists from user to user when the package is invoked

    E
    It does not persist from session to session for the same user

    Note: Not available
    1. Report
  3. Question: Which of the following is not a legal declaration?

    A
    declare v number(4);

    B
    declare x,y varchar2(10);

    C
    declare birthdate date not null;

    D
    declare Sex boolean:=1;

    Note: Not available
    1. Report
  4. Question: The oracle server implicitly opens a cursor to process:

    A
    A Sql select statement

    B
    A PL/SQL Select statement

    C
    DML Statements

    D
    DDL Statements

    Note: Not available
    1. Report
  5. Question: Which two statements out of the following regarding packages are true?

    A
    Both the specification and body are required components of a package

    B
    The package specification is optional, but the package body is required

    C
    The package specification is required, but the package body is optional

    D
    The specification and body of the package are stored separately in the database

    Note: Not available
    1. Report
  6. Question: Examine the following trigger: CREATE OR REPLACE TRIGGER Emp_count AFTER DELETE ON Employee FOR EACH ROW DECLARE n INTEGER; BEGIN SELECT COUNT(*) INTO n FROM employee; DMBS_OUTPUT.PUT_LINE( 'There are now' || n || 'employees'); END; This trigger results in an error after this SQL statement is entered: DELETE FROM Employee WHERE Empno = 7499; How should the error be corrected?

    A
    Change the trigger type to a BEFORE DELETE

    B
    Take out the COUNT function because it is not allowed in a trigger

    C
    Remove the DBMS_OUTPUT statement because it is not allowed in a trigger

    D
    Change the trigger to a statement-level trigger by removing FOR EACH ROW

    Note: Not available
    1. Report
  7. Question: Which Section deals with handling of errors that arise during execution of the data manipulation statements, which makeup the PL/SQL Block?

    A
    Declare

    B
    Exception

    C
    Begin

    D
    End

    Note: Not available
    1. Report
  8. Question: Which of the following statements is true?

    A
    Stored functions can be called from the SELECT and WHERE clauses only

    B
    Stored functions do not permit calculations that involve database links in a distributed environment

    C
    Stored functions cannot manipulate new types of data, such as longitude and latitude

    D
    Stored functions can increase the efficiency of queries by performing functions in the query rather than in the application

    Note: Not available
    1. Report
  9. Question: Examine the following code: CREATE OR REPLACE FUNCTION gen_email (first_name VARCHAR2, last_name VARCHAR2, id NUMBER) RETURN VARCHAR2 IS email_name VARCHAR2(19); BEGIN email_name := SUBSTR(first_name, 1, 1) || SUBSTR(last_name, 1, 7) ||.@Oracle.com .; UPDATE employees SET email = email_name WHERE employee_id = id; RETURN email_name; END; Which of the following statements removes the function?

    A
    DROP gen_email;

    B
    REMOVE gen_email;

    C
    DELETE gen_email;

    D
    DROP FUNCTION gen_email;

    Note: Not available
    1. Report
  10. Question: A table has to be dropped from within a stored procedure. How can this be implemented?

    A
    A table cannot be dropped from a stored procedure

    B
    Use the DROP command in the procedure to drop the table

    C
    Use the DBMS_DDL packaged routines in the procedure to drop the table

    D
    Use the DBMS_DROP packaged routines in the procedure to drop the table.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd