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. IDs: List the two types of user-defined identifiers.






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


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






4. DynSQL: The standard package that does dynamic SQL.






5. With Edition-based Redefinition enabled - the unique specification of an object requires OWNER - OBJECT_NAME and ___________.






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






7. What do you FETCH from?






8. With a result-cached function - it uses a cached value when the function is called again with the...






9. _______ arrays can be sparse or dense - depending on how you fill them.






10. Delimiters: Item separator.






11. Official acronym for PL/SQL's runtime engine.






12. Cursors: The four cursor attributes - in alphabetical order.






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






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






15. DynSQL: Maximum string length to pass to EXECUTE IMMEDIATE.






16. Types: PL/SQL has all the _____ data types.






17. Give the first line of the FOR loop with index i going from 1 to 10 in reverse.






18. A CASE statement ends with ____ ____.






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






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






21. Exceptions: If there is no handler for an exception - PL/SQL returns an ________ exception error to the invoker or host environment.






22. I/O: This package has hypertext functions that generate HTML tags






23. I/O: The most basic PL/SQL way to give output to the user.






24. What are the two sequence pseudo-columns?






25. To insert or update on a table that has a collection column - you have to have _______ privilege on the collection type.






26. PLS_INTEGER has its arithmetic implemented in ________ - so it is very fast.






27. I/O: This package lets PL/SQL programs read and write OS files.






28. Cursors: A cursor variable's type must be a ____ ______ type.






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






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






31. Exceptions: The ________ handler must always be the last handler.






32. The two kinds of CASE statements are simple and ________.






33. Associative arrays (do / do not) have to be initialized with a constructor.






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






35. Triggers: There are __ types of triggers.






36. Exceptions: User-defined exceptions must have _______.






37. With conditional compilation you can avoid compiling debug code in the _______ environment.






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






39. I/O: One of the 3 types of data that can be passed to the DBMS_OUTPUT buffer.






40. The FORALL statement to loop over a collection MyList using index i.






41. The default value of the AUTHID property.






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






43. Cursors: The first two keywords of a basic fetch statement.






44. Triggers: The clause to make a trigger run once for every affected row.






45. The three possible values of a BOOLEAN literal.






46. Triggers: INSTEAD OF triggers only run on ______ views.






47. If you are in a procedure inside a package - the compilation unit is the _______.






48. I/O: The DBMS_OUTPUT buffer will not be flushed until it is full or until the current PL/SQL block _________.






49. Triggers: In a trigger - you cannot issue a COMMIT or a ______.






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