Test your basic knowledge |

Oracle PL - SQL

Subjects : oracle, it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. The LIMIT method is only meaningful for _______.






2. Cursors: The FOR UPDATE phrase goes at the (beginning/end) of the cursor definition.






3. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.






4. Declare a constrained subtype of NUMBER called N that is not null.






5. A PL/SQL block that is not stored.






6. Make a FOR loop that executes NULL 10 times counting in reverse - using index i.






7. Exceptions: Type ______ to re-raise the current exception.






8. Triggers: On a non-editioning view - you can only define __________ triggers.






9. TCL: Create a savepoint called ab






10. Give the value list in the PLSQL_WARNINGS parameter to turn on SEVERE compiler warnings and make compiler warning 06002 be an error.


11. Fundamental: identifiers (include/do not include) reserved words.






12. Cursors: Give the statement to close cursor C.






13. The _______ package lets you wrap dynamically generated PL/SQL.






14. A large OUT or IN OUT parameter will waste a lot of space and CPU if it is passed by _____.






15. Cursors: A pointer to a cursor is called a ______ _______.






16. The three possible values of a BOOLEAN literal.






17. In a FORALL loop - you (can / cannot) use the index variable for purposes other than indexing into the collection.






18. The three types of compiler warnings.






19. Fundamental: One of the 4 types of lexical units: L_____






20. Declare a package procedure P with no arguments - and give it invoker's rights.






21. The RESULT_CACHE clause comes (before / after) the RETURN clause.






22. Exceptions: An exception in the declarations section does not go to the __________ section.






23. To create a collection type - use the TYPE command in PL/SQL and the ______ _____ command in SQL.






24. DynSQL: Native Dynamic SQL






25. You (can / cannot) wrap trigger source code.






26. The collection method that tells the number of elements in the collection.






27. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.






28. DynSQL: The clause that receives single-row query output from EXECUTE IMMEDIATE.






29. Triggers: The clause to make a trigger run after inserting into table EMPS.






30. Exceptions: Pragma that links an exception to an Oracle error code.






31. Bulk: The keywords of a bulk collect FETCH statement.






32. You can put a label before any executable PL/SQL _________.






33. Associative array types (can / cannot) be defined in the database.






34. For a collection - the NEXT method gets the next higher (element / index).






35. Declare an input NUMBER parameter - v2 - that defaults to 20.






36. A basic PL/SQL datatype that SQL does not have.






37. Give the statement to make a program autonomous.






38. Cursors: You can just declare a cursor at first - then _______ it later.






39. Which two collection types are unbounded?






40. Triggers: To simulate having triggers on SELECT statements - you can try ___ (3-letter acronym).






41. Web: The gateway that allows a web browser to invoke a PL/SQL procedure through an HTTP listener.






42. An autonomous program runs in its own __________.






43. Fundamental: What are the 3 compound symbols for 'not equal to'?






44. Triggers: The clause to make a trigger run before inserting or updating table EMPS.






45. IDs: The type of words that cannot be user-defined identifiers.






46. Type: An ________ subtype has all the values of its base type.






47. Delimiters: Single-line comment marker.






48. I/O: One of the 3 types of data stored in the DBMS_OUTPUT buffer.






49. Cursors: Define a ref cursor type called T.






50. Exceptions: The keyword that begins an exception handler.