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. Searchable CASE statement: Each WHEN has its own _______ condition.






2. Fundamental: One of the 4 types of lexical units: L_____






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






4. In PL/SQL - what the variables in DML statements are turned into.






5. The Wrap utility ________ the source code.






6. Advantage: PL/SQL runs anywhere Oracle runs - so it is very ________.






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






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






9. Fundamental: Which one of these is a simple symbol: a - = - !=






10. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.






11. You (can/cannot) put a label before an END LOOP statement.






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






13. Delimiters: Statement terminator.






14. Abbreviation of invoker's rights






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






16. A GOTO cannot branch into a...






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






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






19. How many times are a FOR loop's index bounds evaluated?






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






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






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






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






24. Command to assign to variables from a cursor.






25. Command to delete a procedure.






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






27. For a collection - the NEXT method returns ____ when there is no next index value.






28. Conditional compilation is useful for compiling a program under different ______ of Oracle.






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






30. Types: A ______ has the same valid operations as its base type.






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






32. IDs: The type of words that cannot be user-defined identifiers.






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






34. You cannot bulk collect into an ARRAY OF ________.






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






36. Characters that end a multi-line comment.






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






38. Give the statement to make a program autonomous.






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






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






41. Conditional ______ allows backward compability with older database versions.






42. I/O: The most basic PL/SQL way to give output to the user.






43. Cursors: If an exception is raised inside a cursor loop - the cursor (is / is not) also closed automatically.






44. To recompile a procedure - use the _____ ______ command.






45. Keyword for doing assignment to a variable with SELECT.






46. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?






47. Types: ________ data types have internal components.






48. Define a collection type - tA - which is an associative array of NUMBERS - indexed with varchar2(20) values.






49. Wrap ______=xxxx oname=zzzzz






50. NAN stands for _________.