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. You (can/cannot) put a label before an END LOOP statement.






2. Cursors: The value of SQL%ISOPEN is always ______.






3. PL/SQL does not automatically create bind variables in ________ SQL.






4. Cursors: If an exception is raised inside a cursor loop - the cursor (is / is not) also closed automatically.






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






6. Triggers: An INSTEAD OF trigger is (always/never) a row-level trigger.






7. $$PLSQL_LINE and $$PLSQL_UNIT are ______-ly defined inquiry directives.






8. IDs: You can use a reserved word as a _______ user-defined identifier.






9. Which collection type is bounded?






10. Triggers: The code in a trigger is actually an ________ block.






11. The BEGIN section is (optional/mandatory)






12. Cursors: Give the statement for getting out of a FETCH loop for cursor CV.






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






14. Abbreviation of definer's rights






15. Native compilation turns bytecode into ________ code.






16. Cursors: You cannot use cursor attributes in _______ statements.






17. The 2 characters that begin all inquiry directives.






18. You cannot bulk collect into an ARRAY OF RECORDS. You can into a ________________ (3 words).






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






20. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE






21. Delimiters: The component indicator/selector.






22. GOTO branches to a ________.






23. Delimiters: Host variable indicator.






24. IDs: You cannot use reserved words as ______ user-defined identifiers.






25. _________ exceptions can not be trapped with an error handler






26. Exceptions: A GOTO statement cannot branch into an _______ ________.






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






28. I/O: The DBMS_OUTPUT function that writes output without a newline character.






29. In a collection - the internal components are called _______.






30. Fundamental: Character used to escape a single quote inside a literal.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


31. Cursors: A session cursor that is automatically created and managed by PL/SQL.






32. Triggers: If two or more triggers are defined with the same timing point - then you can control the firing order using the ________ clause.






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






34. Triggers: In a per-row trigger - the ____ record shows you the changed state of an affected row.






35. Conversion: Implicit conversion can be (faster / slower) than explicit conversion.






36. Delimiters: Item separator.






37. I/O: The PL/SQL I/O packages (can/cannot) accept input directly from the keyboard.






38. NAN stands for _________.






39. An anonymous block is a(n) ____ statement.






40. Bulk: The two features that comprise Bulk SQL are:






41. DynSQL: The colon-prefixed names used in EXECUTE IMMEDIATE are called ________.






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






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






44. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.






45. Pkgs: RESET_PACKAGE only takes effect after the outermost PL/SQL proc that called it ________.






46. Web: Abbreviation of PL/SQL Server Page.






47. Cursors: What are the 3 possible values of SQL%FOUND and SQL%NOTFOUND?






48. The three types of compiler warnings.






49. Advantage: Having procedures stored and executed on the server makes PL/SQL ________.






50. How many PL/SQL collection types are there?