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: You (can/cannot) explicitly invoke a trigger.






2. A nested table has to be initialized using a ________ - named the same as the type.






3. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.






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






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






6. A type of compiler directive - begins with 's'.






7. The SET TRANSACTION statement affects only the ____________.






8. Cursors: The Oracle predefined REF CURSOR type.






9. The FIRST method gets the first (element / index) of a collection.






10. Delimiters: Item separator.






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






12. Fundamental: What is the exponentiation operator?






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






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






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






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






17. The lowest index of a VARRAY is ___.






18. Type: A __________ subtype has only a subset of the values of its base type.






19. A (simple / searched) CASE statement begins with CASE WHEN <boolean expression>.






20. Pkgs: This procedure de-instantiates/resets all packages in this session.






21. Types: The PL/SQL type that is identical to PLS_INTEGER.






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






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






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






25. The valid values of the AUTHID property.






26. Nested tables can become sparse via ______.






27. Data dictionary view that shows the compiler settings for each compiled object.






28. Types: Which type of arithmetic does PLS_INTEGER use - library or hardware?






29. Delimiters: The component indicator/selector.






30. Give the clause you add to a CREATE TABLE statement - when there is a collection column myColl - that you want to be stored in a table called myCollTab.






31. IDs: Maximum number of bytes in a user-defined identifier.






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






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






34. Types: The only Oracle datetime type that doesn't begin with TIMESTAMP is ________.






35. In a record - the internal components are called ______.






36. Collections are one of the two kinds of PL/SQL _______ data types.






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






38. Cursors: You give an explicit cursor a name and associate it with a _______.






39. A GOTO cannot branch into a...






40. Define a nested table type - tN - which is a table NUMBERs.






41. Delimiters: The left label delimiter.






42. IDs: You can use a reserved word as a _______ user-defined identifier.






43. You can use the BULK COLLECT INTO clause in a SELECT or a ______.






44. If a result-cached function's data source (based on the RELIES_ON clause) is updated - any cached results become _______.






45. To run a PIPE ROW statement in your autonomous routine - you must close any _____________.






46. What are the 3 values of the BOOLEAN data type?






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






48. Types: A data type family consists of a ______ type and its subtypes.






49. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.






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