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. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.






2. If a procedure fails - an OUT parameter passed to it by value (will / will not) be passed back with changes.






3. Types of blocks: Procedures and functions are _______ blocks.






4. Setting CURRENT_SCHEMA only changes what is prepended to __________ references.






5. Types: One of the 4 PL/SQL things that have a data type (begins with 'p').






6. One good use of bind variables is to guard against SQL _______.






7. Records are one of the two kinds of PL/SQL _______ data types.






8. Cursors: Closing keywords of a cursor FETCH loop.






9. Advantage: PL/SQL runs anywhere Oracle runs - so it is very ________.






10. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.






11. A GOTO statement cannot branch from an exception handler back into the...






12. The first SQL statement in an autonomous routine begins a _______.






13. Fundamental: A label can be used to name an ______ block.






14. You cannot bulk collect into an ARRAY OF ________.






15. An autonomous program runs in its own __________.






16. Exceptions: An exception raised inside an _______ _______ propagates immediately to the enclosing block






17. What are the 3 values of the BOOLEAN data type?






18. The DEFINITION of a cursor is the _____ that returns the records.






19. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.






20. In Native Mode - PL/SQL code is compiled into ______ ______.






21. The DECLARE keyword is only required in an _______ _______.






22. Default file extension of wrap's input file.






23. Define a record variable r - of type tRec - initialized with values 9 and 'Jones' in its two fields.


24. Name the two types of FOR loop.






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






26. Triggers: An INSTEAD OF trigger (can/cannot) be conditional.






27. Cursors: If you use an EXIT statement to exit a cursor FOR loop prematurely - the cursor (is / is not) closed automatically.






28. Fundamental: One of the 4 types of lexical units: c_____.






29. The NOCOPY option on an OUT or IN OUT parameter - causes it to be passed by ______.






30. For a collection - the NEXT method returns ____ when there is no next index value.






31. What is the simplest statement for getting out of simple loop?






32. Exceptions: The built-in procedure for raising an application-defined error.






33. Exceptions: An unhandled exception ________ to the enclosing block.






34. An incomplete type only has a ____.






35. Conditional ______ allows backward compability with older database versions.






36. Statement to exit a cursor loop on cursor cGo when there are no more records.






37. Into nested table ex - put elements of tbl1 that are not in tbl2.






38. I/O: The DBMS_OUTPUT function that writes output WITH a newline character.






39. Declare a cursor c with no parameters - and return type rC.






40. Delimiters: The component indicator/selector.






41. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.






42. Exceptions: The _________ package defines the PL/SQL environment.






43. Cursors: Give the first 3 words to open a cursor variable called cv.






44. The three types of compiler warnings.






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






46. Exceptions: The three words that can be used to guarantee all exceptions will be handled.






47. List the transaction control statements.






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






49. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.






50. Set flag bb true: ALTER SESSION SET PLSQL_CCFLAGS= '____'