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. Triggers: If two or more triggers are defined with the same timing point - then you can control the firing order using the ________ clause.






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






3. The declaration section is (optional/mandatory).






4. Characters that begin a multi-line comment.






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






6. DBMS_DDL.WRAP returns a string containing wrapped _____ _____.






7. A basic PL/SQL datatype that SQL does not have.






8. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.






9. A SELECT statement with the FOR UPDATE clause puts a ______ on the selected rows.






10. Exceptions: The three words that can be used to guarantee all exceptions will be handled.






11. DynSQL: The three modes of arguments in the USING clause of EXECUTE IMMEDIATE.






12. Exceptions: Associate exception E with error code -1.






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






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






15. You can put a label before any executable PL/SQL _________.






16. Default file extension of wrap's output file.






17. Cursors: The second keyword of a FETCH statement.






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






19. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.






20. The two main parts of a package are the ____ and the _____.






21. Kind of comment not to put in a PL/SQL block to be processed dynamically by an Oracle Precompiler program.






22. Assigning values to PL/SQL variables that appear in SQL statements is called _______.






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






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






25. Exceptions: An exception in the declarations section propagates to the enclosing _______.






26. The _____ and ____ _____ collection types can be used in database table columns.






27. Triggers: The clause to make a trigger run after inserting into table EMPS.






28. Cursors: The statement that closes a cursor.






29. Dbms_sql: A cursor opened with OPEN_CURSOR (can/cannot) be reused for multiple queries without first closing it.






30. Types: ________ data types have internal components.






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






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






33. Types: ________ data types have no internal components.






34. Cursors: The SQL%BULK_ROWCOUNT attribute is an _________ -






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






36. A type of compiler directive - begins with 'i'.






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






38. Value of PLSQL_OPTIMIZE_LEVEL that prevents optimization.






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






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






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






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






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






44. Delimiters: The left label delimiter.






45. INSTEAD OF triggers are alternatives to ___ triggers






46. Conversion: It is best to use (implicit / explicit) conversion.






47. Command to delete a procedure.






48. In short-circuit evaluation - IF-conditions are only evaluated up to where the outcome ___________.






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






50. GOTO branches to a ________.