Home / CSE MCQs / DBMS MCQs :: Triggers - DBMS

CSE MCQs :: DBMS MCQs

  1. A __________ is a special kind of a store procedure that executes in response to certain action on the table like insertion, deletion or updation of data.
  2. A.
    Procedures
    B.
    Triggers
    C.
    Functions
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Trigger are supported in
  4. A.
    Delete
    B.
    Update
    C.
    Views
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The CREATE TRIGGER statement is used to create the trigger. THE _____ clause specifies the table name on which the trigger is to be attached. The ______ specifies that this is an AFTER INSERT trigger.
  6. A.
    for insert, on
    B.
    On, for insert
    C.
    For, insert
    D.
    Both a and c

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What are the after triggers ?
  8. A.
    Triggers generated after a particular operation
    B.
    These triggers run after an insert, update or delete on a table
    C.
    These triggers run after an insert, views, update or delete on a table
    D.
    Both b and c

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The variables in the triggers are declared using
  10. A.
    -
    B.
    @
    C.
    /
    D.
    /@

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The default extension for an Oracle SQL*Plus file is:
  12. A.
    .txt
    B.
    .pls
    C.
    .ora
    D.
    .sql

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is NOT an Oracle-supported trigger?
  14. A.
    BEFORE
    B.
    DURING
    C.
    AFTER
    D.
    INSTEAD OF

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. What are the different in triggers ?
  16. A.
    Define, Create
    B.
    Drop, Comment
    C.
    Insert, Update, Delete
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Triggers ________ enabled or disabled
  18. A.
    Can be
    B.
    Cannot be
    C.
    Ought to be
    D.
    Always

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which prefixes are available to Oracle triggers?
  20. A.
    : new only
    B.
    : old only
    C.
    Both :new and : old
    D.
    Neither :new nor : old

    View Answer

    Workspace

    Discuss Discuss in Forum