click below
click below
Normal Size Small Size show me how
DBSA FA4
| Question | Answer |
|---|---|
| What is missing in the given package body construct? CREATE [OR REPLACE] PACKAGE package_name IS|AS private type and variable declarations subprogram bodies [BEGIN initialization statements] END [package_name]; | BODY |
| The _____ is the interface to your applications that declares the constructs (procedures, functions, variables, and so on) which are visible to the calling environment. | PACKAGE SPECIFICATION |
| The ____ option drops and re-creates the package specification. | CREATE OR REPLAC |
| The OR REPLACE option deletes an existing package body. | False |
| Encapsulation refers to a two-part structure in which the detailed package body code is invisible to the calling environment, which can only see the. If changes to the code are needed, the body can be edited and recompiled without having to edit or recom | True |
| One of the differences between triggers and stored procedure is that, TCL statements are allowed in triggers which are not allowed in the stored procedures. | False |
| Triggers like subprograms may or may not have parameters. | False |
| Which will view the detailed code and status of the trigger in data dictionary? Group of answer choices USER_TRIGGERS All the options USER_OBJECTS USER_ERRORS | All the options |
| The_________ allow specified actions to be performed automatically within the database, without having to write extra application code. | TRIGGER |
| A _______ triggers execute whenever a particular event occurs within an application. | APPLICATION |
| A _______ trigger is a trigger that is automatically fired (executed) whenever an SQL DML statement (INSERT, UPDATE, or DELETE) is executed. | DML |
| The following determines when a DML trigger will execute: BEFORE, AFTER, ________. | INSTEAD OF |
| A ________ fires once for each row affected by the triggering DML statement, either just BEFORE the row is processed or just AFTER. | ROW‑LEVEL TRIGGER |
| The ________ keywords are automatically declared Boolean variables which are set to TRUE or FALSE by the Oracle server. These keywords maybe used in the trigger body instead of UPDATE, INSERT, DELETE. | CONDITIONAL PREDICATES |
| Event determines which DML operation causes the trigger to fire. Values are INSERT, UPDATE [OF column], and ______. | DELETE |
| Exception section is not allowed in triggers. | False |
| A DML trigger is a database trigger. | True |
| TCL statement is allowed in triggers. Group of answer choices True False | False |
| You specify a row trigger using FOR EACH ROW clause. Group of answer choices True False | True |
| In creating trigger you need to consider the timing and event. | True |
| The ON SCHEMA fires the trigger only for your own sessions. | False |
| A MUTATE table is an object that is currently being modified by a DML statement. | True |
| The EXECUTE is a statement is used to invoke procedure in a trigger. Group of answer choices True False | False |
| The ON SCHEMA cannot be used with SHUTDOWN and STARTUP events. Group of answer choices True False | True |
| The CALL is a statement is used to invoke procedure in a trigger. Group of answer choices True False | True |
| The code below will: CREATE OR REPLACE TRIGGER log_create_trigg AFTER CREATE ON SCHEMA BEGIN INSERT INTO log_table VALUES (USER, SYSDATE); END; | The trigger fires whenever any type of object is created in your schema. |
| An ON DATABASE fires the trigger for ____ on all schemas in the database. | DDL |
| A ________trigger must not query or modify a mutating table. | ROW-LEVEL |
| A ________ fires the trigger for DDL on all schemas in the database. | ON DATABASE |
| The ______ fires the trigger only for your own sessions. | ON SCHEMA |
| The package specification should contain the subprogram ________ and associated parameters terminated by a semicolon. | NAME |
| The _____ contains the executable code of the subprograms which were declared in the package specification. It may also contain its own variable declarations. | PACKAGE BODY |
| The ________ declared in the package specification are initialized to null by default. | VARIABLES |
| Variables declared in the package body are considered private. | True |
| A package is considered as a database Object. | True |
| To create triggers in other user’s schemas, you need the CREATE TRIGGER privilege. | False |
| Since triggers are never explicitly invoked, they cannot receive parameters. | True |
| Since triggers are never explicitly invoked, they cannot receive ________. | actual parameters |
| You can use triggers to generate derived column values _________. | AUTOMATICALLY |
| The ____ trigger timing executes the trigger body before the triggering DML event on a table. | BEFORE |
| The conditional predicates are: _______, INSERTING, DELETING. | UPDATING |
| The row trigger is the default type of DML trigger. | False |
| DML Trigger is classified in two ways: when they execute, how many times they execute. | True |
| A DML trigger may have more than one triggering event. | True |
| The given trigger header contains no error. CREATE OR REPLACE TRIGGER emp_del_trigg AFTER DELETE ON employees BEGIN <assume valid PL/SQL statements here> END; | True |
| A MUTATING table is an object that is currently being modified by a DML statement. | True |
| You cannot create a DDL trigger that refers to a specific database object. | True |
| A statement trigger cannot SELECT from a mutating table. | False |
| A ON SCHEMA fires the trigger for DDL on all schemas in the database. | True |
| The _________ are fired by non-SQL events in the database. | Database event trigger |
| The _______ is a statement is used to invoke procedure in a trigger. | CALL |
| The ON SCHEMA fires the trigger only for _______ sessions. | OWN |