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 use a TYPE declared in the database - a PL/SQL block has to have _______ privilege on the type.






2. An editioning view is like an ____ for a table.






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






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






5. Cursors: What is the 'name' of the implicit cursor?






6. The _____ utility turns PL/SQL source code into unreadable text.






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






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






9. Cursors: WHERE _______ ______ makes an UPDATE or DELETE apply to the current row of a cursor.






10. DynSQL: EXECUTE IMMEDIATE can be used for any SQL statement or PL/SQL block - except for ________ queries.






11. Triggers: An INSTEAD OF trigger is (always/never) a row-level trigger.






12. After the RESULT_CACHE clause - you can put a _________ clause to enable dependency-checking.






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






14. The SET TRANSACTION statement affects only the ____________.






15. I/O: The string table type in DBMS_OUTPUT for holding lines of text.






16. An ordinary character literal is composed of characters in the ________ character set.






17. The best candidates for result-caching are functions that are invoked frequently but depend on __________________ or never.






18. Types: The only PL/SQL type for which you can specify a range constraint.






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






20. Abbreviation of invoker's rights






21. Cursors: Only a _____ _____ cursor can appear in the CURRENT OF clause of an UPDATE or DELETE statement.






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






23. Default value of PLSQL_OPTIMIZE_LEVEL.






24. Types: One of the scalar data types specific to PL/SQL: b_____.






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






26. CREATE TYPE cannot be used for _______ array types.






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






28. Cursors: The first two keywords in a Cursor FOR loop.






29. Cursors: A pointer to a cursor is called a ______ _______.






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






31. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.






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






33. Cursors: SYS_REFCURSOR is a predefined type based on _____ ______.






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






35. Fundamental: One of the 4 types of lexical units: i_____






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






37. Fundamental: Delimiters are _____ and _____ symbols.






38. The three types of compiler warnings.






39. A collection is an ordered group of ________ - all of the same ____






40. I/O: This package sends text output to SQLPlus






41. I/O: Max number of bytes DBMS_OUTPUT can handle in a session.






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






43. Bulk: The implicit cursor attribute that gives the number of rows affected by each DML statement in a FORALL statement.






44. _________ exceptions can not be trapped with an error handler






45. Clause added to a cursor to use it with WHERE CURRENT OF.






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






47. Cursors: You can just declare a cursor at first - then _______ it later.






48. GOTO branches to a ________.






49. Cursors: Give the statement to fetch data from cursor C into variable V.






50. The _______ package lets you wrap dynamically generated PL/SQL.