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. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';






2. The compiler directive used to select which code to compile.






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






4. How to reference a variable V declared in a block labelled L: ____.






5. Triggers: You create a trigger with the _______ ________ statement.






6. For an associative array - the FIRST method gets the (lowest / first-created) index.






7. In interpreted mode - PL/SQL code is run in a _______ _______.






8. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.






9. Subprograms are stored in __________ form.






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






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






12. In a cursor loop - the clause added to an INSERT or UPDATE to point at the current record.






13. This is a CASE (expression / statement): CASE num WHEN 1 THEN goto LABEL1 WHEN 2 THEN var := 2 END CASE;






14. Triggers: Unlike a stored procedure - you can enable and _____ a trigger.






15. Language that PL/SQL is derived from.






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






17. Types: One of the scalar data types specific to PL/SQL: B_______






18. A result-cached function caches its results in the _____ _____ ____ (SGA)






19. Exceptions: The ________ function returns the error message associated with an error code.






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






21. Bulk: The use of FORALL statements cuts down on ______ traffic.






22. I/O: The buffered output of dbms_output.put_line is retrieved by _______.






23. Loops: What is the index range operator in a FOR loop?






24. Exceptions: Type ______ to re-raise the current exception.






25. Kind of datatypes that support object-oriented programming in PL/SQL.






26. DBMS_DDL.CREATE_WRAPPED: wraps and _______ the source code passed to it.






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






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






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






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






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






32. DynSQL: In EXECUTE IMMEDIATE - the statement string can use either placeholders - or string ________.






33. A PL/SQL block that is not stored.






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






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






36. Advantage: Performance: PL/SQL automatically creates ______ variables for variables in WHERE and VALUES clauses.






37. Advantage: PL/SQL gives SCALABILITY because stored procedures are executed on the _______.






38. A FOR-loop counter is defined only within the _____.






39. Delimiters: Item separator.






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






41. Characters that begin a single-line comment.






42. Web: mod_plsql is an implementation of the PL/SQL _________.






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






44. The EXTEND method is not used with ______ _______.






45. Fundamental: A label can only go directly before an _______ statement.






46. Searchable CASE statement: Each WHEN has its own _______ condition.






47. The FOR UPDATE OF clause references a (table / column).






48. User-defined compiler directives are defined in this system compile parameter.






49. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.






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