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. I/O: The DBMS_OUTPUT procedure that sets the size of the output buffer.






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






3. The PL/SQL virtual machine turns bytecode into system ______.






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






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






6. A subprogram created inside a block is a _________ subprogram.






7. Name the two types of FOR loop.






8. To use a TYPE declared in the database - a PL/SQL block has to have _______ privilege on the type.






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






10. Exceptions: The package that defines pre-defined exceptions.






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






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






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






14. The Wrap utility (does / does not) encrypt source code.






15. Cursors: The index variable in a cursor FOR loop (does/does not) need to be declared.






16. Triggers: You (can/cannot) explicitly invoke a trigger.






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






18. A subprogram defined within another subprogram is a _______ subprogram.






19. In a cursor loop - the clause added to an INSERT or UPDATE to point at the current record.






20. IDs: The two types of words that can - but should not - be used as user-defined identifiers.






21. Command used to execute dynamic SQL.






22. The FOR UPDATE OF clause references a (table / column).






23. Cursors: Give the statement to fetch data from cursor variable CV into MyVar.






24. Fundamental: What is the range operator?






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






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






27. _____ arrays cannot be used as the type of an Oracle table column.






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






29. Cursors: The three keywords in a full cursor declaration/definition (before the SELECT).






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






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






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






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






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






35. Cursors: The statement that closes a cursor.






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






37. I/O: This DBMS_OUTPUT proc retrieves multiple lines from the buffer.






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






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






40. The SET TRANSACTION statement affects only the ____________.






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






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






43. Fundamental: Delimiters are _____ and _____ symbols.






44. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.






45. A type of compiler directive - begins with 'e'.






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






47. Advantage: PL/SQL programs are stored centrally - making them more ______.






48. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.






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






50. The values defined in PLSQL_CCFLAGS can be referenced as _____ directives.