click below
click below
Normal Size Small Size show me how
Database Systems FA4
CCS0029
| Question | Answer |
|---|---|
| To invoke package subprograms, fully ____the (public) subprogram with its PACKAGE NAME. | QUALIFY |
| The package specification should contain the subprogram ________ and associated parameters terminated by a semicolon. | NAME |
| 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 |
| Encapsulation refers to a two-part structure in which the detailed package body code is invisible to the calling environment. If changes to the code are needed, the body can be edited and recompiled without having to edit or recompile the specification. | True |
| Triggers like subprograms may or may not have parameters. Group of answer choices True False | False |
| You can use triggers to generate derived column values automatically. Group of answer choices True False | True |
| Since triggers are never explicitly invoked, they cannot receive ________. Group of answer choices FORMAL PARAMETER All the options ACTUAL PARAMETER PARAMETER | All the options |
| The_________ allow specified actions to be performed automatically within the database, without having to write extra application code. SUBPROGRAM EXCEPTION HANDLER PACKAGE TRIGGER | TRIGGER |
| DBA shutting down the database is a ______ event. Group of answer choices APPLICATION SYSTEM DATA DATABASE | DATABASE |
| In creating trigger you need to consider the timing and _______. | EVENT |
| The ____ trigger timing executes the trigger body before the triggering DML event on a table. | BEFORE |
| Event determines which DML operation causes the trigger to fire. Values are DELETE, UPDATE [OF column], and ______. | INSERT |
| Event determines which DML operation causes the trigger to fire. Values are INSERT, UPDATE [OF column], and ______. | DELETE |
| The _______ trigger fires only once for each execution of the triggering statement (even if no rows are affected). | STATEMENT |
| A DML trigger is a database trigger. Group of answer choices True False | True |
| The given trigger header below contains no error. CREATE OR REPLACE TRIGGER emp_del_trigg AFTER DELETE ON employees BEGIN <assume valid PL/SQL statements here> END; | True |
| In creating trigger you need to consider the timing and event. Group of answer choices True False | True |
| The row trigger is the default type of DML trigger. Group of answer choices True False | False |
| DML Trigger is classified in two ways: when they execute, how many times they execute. | True |
| The use INSTEAD OF with Database Event triggers is possible. Group of answer choices True False | False |
| A MUTATING table is an object that is currently being modified by a DML statement. 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 |
| A MUTATE table is an object that is currently being modified by a DML statement. Group of answer choices True False | False |
| A MUTE table is an object that is currently being modified by a DML statement. Group of answer choices True False | False |
| 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. |
| The __________ cannot be used with SHUTDOWN and STARTUP events. Group of answer choices ON SCHEMA ON DATABASE | ON SCHEMA |
| Which trigger is applicable in the following scenario: The DBA starts up, or shuts down, the database. Group of answer choices DML Trigger Database Event Trigger Database Trigger DDL Trigger | Database Event Trigger |
| Which DDL statements cause a DDL trigger to fire? Group of answer choices CREATE, ALTER, DROP ALTER, DROP CREATE, ALTER CREATE, DROP | CREATE, ALTER, DROP |
| The ______ fires the trigger only for your own sessions. Group of answer choices ON SCHEMA ON DATABASE | ON SCHEMA |
| Every subprogram declared in the package specification must also be included in the _____. | PACKAGE BODY |
| 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 ____ option drops and re-creates the package specification. | OR REPLACE |
| The OR REPLACE option deletes an existing package body. Group of answer choices True False | False |
| One of the reason for using packages is encapsulation wherein related programs and variables are grouped together. Group of answer choices True False | False |
| To create triggers in other user’s schemas, you need the CREATE TRIGGER privilege. Group of answer choices True False | False |
| The USER_TRIGGERS is used to view the detailed code and status of the trigger in data dictionary. Group of answer choices True False | True |
| Trigger executes ________ whenever the associated action occurs. Group of answer choices Implicitly Explicity | Implicitly |
| A _____ trigger execute automatically whenever a data event or a system event occurs. Group of answer choices SYSTEM APPLICATION DATABASE DATA | DATABASE |
| A ________ are triggers that are not part of the database. Group of answer choices APPLICATION DATA EVENT SYSTEM | APPLICATION |
| The conditional predicates are: _______, INSERTING, DELETING. | UPDATING |
| The ________trigger is the default type of DML trigger. | STATEMENT |
| 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 |
| The following determines when a DML trigger will execute: BEFORE, AFTER, ________. | False |
| A statement-level trigger fires once for each row affected by the triggering DML statement, either just BEFORE the row is processed or just AFTER. Group of answer choices True False | False |
| 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; Group of answer choices True False | True |
| Event determines which DML operation causes the trigger to fire. Values are INSERT, UPDATE [OF column], and DELETE. Group of answer choices True False | True |
| The PREDICATE 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. Group of answer choices True False | False |
| A ON DATABASE fires the trigger for DDL on all schemas in the database. Group of answer choices True False | False * |
| You cannot create a DDL trigger that refers to a specific database object. Group of answer choices True False | True |
| DML Triggers can either be ON DATABASE or ON SCHEMA. Group of answer choices True False | False |
| DDL Triggers can either be ON DATABASE or ON SCHEMA. Group of answer choices True False | True |
| The ON DATABASE fires the trigger only for your own sessions. Group of answer choices True False | False |
| The _________ are fired by non-SQL events in the database. Group of answer choices Database event trigger Data event trigger Application Trigger Event trigger | Database event trigger |
| An ON DATABASE fires the trigger for ____ on all schemas in the database. Group of answer choices DDL EVENTS DML Not in the options | DDL |
| The ON SCHEMA cannot be used with ____________ events. Group of answer choices DML and DDL Before and after Login and logout Shutdown and startup | Shutdown and startup |
| A ________ fires the trigger for DDL on all schemas in the database. Group of answer choices ON DATABASE ON SCHEMA | ON DATABASE |
| Package construct (variable, procedure, function, and so on) that can be seen and executed from _____ the package are considered public. | OUTSIDE |
| What is missing in the given construct in order to remove an entire package? DROP ________ PACKAGE_NAME; | PACKAGE |
| 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 |
| Variables declared in the package body are considered private. Group of answer choices True False | True |
| Package body contains only subprograms that are declared in the package specification. Group of answer choices True False | False |
| 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. Group of answer choices True False | False |
| Database triggers execute automatically whenever a data event such as DML or DDL occurs. Group of answer choices True False | True |
| Which statement is used to enable a database trigger? Group of answer choices ALTER TABLE TRIGGER trigger_name enable UPDATE TRIGGER trigger_name enable ALTER TABLE trigger_name enable ALTER TRIGGER trigger_name enable | ALTER TRIGGER trigger_name enable |
| The conditional predicates are: _______, DELETING, UPDATING. | INSERTING |
| Event determines which DML operation causes the trigger to fire. Values are INSERT, UPDATE [OF column], and SELECT. Group of answer choices True False | False |
| A DML trigger may have more than one triggering event. Group of answer choices True False | True |
| A DML trigger is a trigger that is automatically fired (executed) whenever an SQL DML statement (INSERT, UPDATE, or DELETE) is executed. Group of answer choices True False | True |
| A row-level trigger must not query or modify a mutating table. Group of answer choices True False | True |
| The ON SCHEMA cannot be used with SHUTDOWN and STARTUP events. Group of answer choices True False | True |
| The database triggers are fired by non-SQL events in the database. Group of answer choices True False | False |
| The ______ triggers can either be ON DATABASE or ON SCHEMA. Group of answer choices DDL DML | DDL |
| A ________ table is an object that is currently being modified by a DML statement. Group of answer choices VIEW CURSOR SCHEMA TABLE MUTATING TABLE | MUTATING TABLE |
| The ________ declared in the package specification are initialized to null by default. | VARIABLES |
| The OR REPLACE options _______ and re-creates the package specification. | DROPS |
| Inheritance refers to a two-part structure in which the detailed package body code is invisible to the calling environment. If changes to the code are needed, the body can be edited and recompiled without having to edit or recompile the specification. | False |
| The package specification is the interface to your applications that declares the constructs (procedures, functions, variables, and so on) which are visible to the calling environment. Group of answer choices True False | True |
| A SYSTEM trigger execute automatically whenever a data event or a system event occurs. Group of answer choices True False | False |
| A _______ triggers execute whenever a particular event occurs within an application. Group of answer choices APPLICATION SYSTEM DATABASE DATA | APPLICATION |
| You specify a row trigger using __________clause. | FOR EACH ROW |
| The conditional predicates are: _______, INSERTING, UPDATING. | DELETING |
| The ____ trigger timing executes the trigger body after the triggering DML event on a table. | AFTER |
| You specify a row trigger using FOR EACH ROW clause. Group of answer choices True False | True |
| A statement trigger cannot SELECT from a mutating table. Group of answer choices True False | False |
| The _____ are containers that enable you to group together related PL/SQL subprograms, variables, cursors, and exceptions. | PACKAGES |
| Using the package name after the END keyword is optional. Group of answer choices True False | True |
| Triggers can either be row-level or statement-level. Group of answer choices True False | True |
| 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. | TRIGGER* |
| The following determines when a DML trigger will execute: BEFORE, AFTER, INSTEAD. Group of answer choices True False | False |
| TCL statement is allowed in triggers. Group of answer choices True False | False |
| A row trigger may SELECT from a mutating table. Group of answer choices True False | False |
| You cannot create a ______ trigger that refers to a specific database object. Group of answer choices DML | DDL |
| You can use triggers to generate derived column values _________. Group of answer choices IMPLICITLY AUTOMATICALLY EXPLICITLY MANUALLY | AUTOMATICALLY* |
| Which will not cause a trigger to fire? Group of answer choices DML operations on a table CREATE and ALTER statement DML operations on a view Not in the options | Not in the options |
| A ________ fires once for each row affected by the triggering DML statement, either just BEFORE the row is processed or just AFTER. | ROW TRIGGER |
| Exception section is not allowed in triggers. Group of answer choices True False | False |
| The ON SCHEMA fires the trigger only for your own sessions. Group of answer choices True False | True |
| The _______ is a statement is used to invoke procedure in a trigger. Group of answer choices CALL EXECUTE PERFORM DO | CALL |