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. An editioning view is like an ____ for a table.






2. The compiler directive governing conditional compilation.






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






4. The default value of the AUTHID property.






5. Fundamental: Labels furnish targets for GOTO and _____ statements.






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






7. Exceptions: Declare an exception called E.






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






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






10. Types: The predefined subtype of PLS_INTEGER that has the NOT NULL constraint.






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






12. Wrapping can be done with the ____ executable.






13. An incomplete type is a type created by a ______ type definition.






14. Conversion: Just about everything will implicitly convert to _____ or _________.






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






16. Cursors: The value of SQL%ISOPEN is always ______.






17. To use a TYPE declared in the database - a PL/SQL block has to have _______ privilege on the type.






18. PL/SQL is a ________ typed programming language.






19. The $IF must evaluate a ______ _______ expression.






20. Declare an input/output NUMBER parameter - v3.






21. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.






22. Associative array types (can / cannot) be defined in the database.






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






24. TCL: Undo changes back to savepoint ab.






25. Cursors: A Cursor FOR loop does not use a ______ statement.






26. Value of a character literal with zero characters.






27. Triggers: In a DML trigger - the phrase that makes the trigger run for every affected record.






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






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






30. Cursors: Which cursor attribute is not meaningful for an implicit cursor?






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






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






33. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.






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






35. Define a record type REC with number num and varchar2(10) name.






36. What are two categories of SQL functions that cannot be used in procedural statements?






37. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.






38. The $ERROR directive is used to make compilation ____.






39. When an autonomous routine begins execution - the main transaction is ________.






40. Declare an input NUMBER parameter - v2 - that defaults to 20.






41. Types: ______ data types are those storing values with no internal components.






42. Triggers: By default - a trigger is created in the ______ state.






43. The allowed data types of user-defined conditional compilation directives are boolean and _______.






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






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






46. Declare a constrained subtype of NUMBER called N that is not null.






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






48. The source for wrapping begins with the word ______.






49. Triggers: On a non-editioning view - you can only define __________ triggers.






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