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. To recompile a procedure - use the _____ ______ command.






2. Advantage: Performance: Stored subprograms are ______ in memory.






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






4. How to reference a variable V declared in a block labelled L: ____.






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






6. VARRAYs are (always / never) sparse.






7. Type: An ________ subtype has all the values of its base type.






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






9. The BEGIN section is (optional/mandatory)






10. A record is a group of related data items stored in fields - each with its own...






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






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


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






14. Delimiters: The assignment operator.






15. Characters that end a multi-line comment.






16. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.






17. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';






18. Exceptions: Start of the range of error codes for RAISE_APPLICATION_ERROR.






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






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






21. The lowest index of a nested table is ___.






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






23. Advantage: PL/SQL is tightly _______ with Oracle SQL.






24. By default - an IN parameter is passed by ______.






25. Mode designation for an input/output parameter.






26. Loops: What is the index range operator in a FOR loop?






27. The PL/SQL preprocessor passes ______ code to the compiler.






28. The attribute used to get the type of a column or variable without knowing what it is.






29. Wrap ______=xxxx oname=zzzzz






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






31. Triggers: Unlike a stored procedure - you can enable and _____ a trigger.






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






33. Fundamental: Which one of these is a compound symbol: = - :=






34. A unit with AUTHID = DEFINER is a ________ rights unit.


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






36. Cursors: What implicit cursor attribute gives row counts for a FORALL statement?






37. Advantage: Caching of programs and sharing among users lowers _______ requirements.






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






39. From a block nested inside a procedure P - reference variable V of the outer procedure.






40. The exception raised when a SELECT INTO statement returns more than one row.






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






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






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






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






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






46. Types: One of the scalar data types specific to PL/SQL: P________






47. Bytecode is _______ _______ code.






48. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.






49. The BETWEEN operator is (inclusive / exclusive).






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