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. TCL: Undo changes back to savepoint ab.






2. PL/SQL is a ________ typed programming language.






3. Triggers: You create a trigger with the _______ ________ statement.






4. The BEGIN section is (optional/mandatory)






5. A __________ can have an AUTHID property






6. TCL: Create a savepoint called ab






7. This is a CASE (expression / statement): CASE num WHEN 1 THEN goto LABEL1 WHEN 2 THEN var := 2 END CASE;






8. Exceptions: PL/SQL exceptions are of two types: internal and _________.






9. What word is in a function header but not in a procedure header?






10. User-defined compiler directives are defined in this system compile parameter.






11. Web: PL/SQL ______ ______ (PSPs) let you develop web pages with dynamic content.






12. DynSQL: The clause that supplies bind arguments to EXECUTE IMMEDIATE.






13. Cursors: The values plugged into the DML in a FORALL must come from existing - populated _________.






14. A result-cached function caches its results in the _____ _____ ____ (SGA)






15. Cursors: The statement that closes a cursor.






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






17. To enable result-caching for a function - use the _____________ clause.






18. With static typing - type checking is done at ______ time.






19. Conditional compilation is useful for compiling a program under different ______ of Oracle.






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






21. Kind of code created by the PL/SQL compiler.






22. Exceptions: You cannot GOTO from an exception handler back into the __________ block.






23. The lowest index of a VARRAY is ___.






24. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?






25. For an associative array - the FIRST method gets the (lowest / first-created) index.






26. Cursors: A session cursor that a PL/SQL user creates and manages.






27. The $IF must evaluate a ______ _______ expression.






28. Mode designation for an input/output parameter.






29. Wrap iname=xxxx _____=zzzzz






30. Parameter that controls how much Oracle optimizes your PL/SQL code on compilation.






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






32. Triggers: By default - a trigger is created in the ______ state.






33. Types: One of the scalar data types specific to PL/SQL: R_________.






34. Cursors: An explicit cursor (can/cannot) accept parameters.






35. I/O: This package has hypertext procedures that generate HTML tags






36. To run TCL or DDL statements - a trigger (must / must not) be autonomous .






37. I/O: dbms_output.put_line puts output into a _______.






38. I/O: To make sure the DBMS_OUTPUT buffer will be flushed - put a WHEN ______ clause in the EXCEPTION section of your outer block.






39. A numeric FOR loop cannot _________ by other than 1?






40. After the RESULT_CACHE clause - you can put a _________ clause to enable dependency-checking.






41. I/O: The buffered output of dbms_output.put_line is retrieved by _______.






42. Keyword for doing assignment to a variable with SELECT.






43. Cursors: A Cursor FOR loop does not use a ______ statement.






44. If none of a CASE expression's conditions are TRUE - it returns _____.






45. Nested tables are multisets - meaning that there is no inherent _____ of their elements.






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






47. In a sparse collection - the indexes of defined elements (do / do not) run in consecutive order.






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






49. Dbms_sql: The integer returned by OPEN_CURSOR is a _____ _____.






50. I/O: The output from DBMS_OUTPUT will display (during/after) program execution.