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. Dbms_sql: The DBMS_SQL procedure that closes a cursor.






2. The Wrap utility ________ the source code.






3. A unit with AUTHID = DEFINER is a ________ rights unit.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


4. The DEFINITION of a cursor is the _____ that returns the records.






5. In a FORALL loop - you (can / cannot) use the index variable for purposes other than indexing into the collection.






6. Set flag bb true: ALTER SESSION SET PLSQL_CCFLAGS= '____'






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






8. Dbms_sql: This DBMS_SQL function opens a new cursor.






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






10. IDs: You (can/cannot) use keywords as ordinary user-defined identifiers.






11. Statement to exit a cursor loop on cursor cGo when there are no more records.






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






13. Advantage: Performance: Stored subprograms are ______ in memory.






14. Native compilation turns bytecode into ________ code.






15. Cursors: The SQL%BULK_ROWCOUNT attribute is an _________ -






16. Exceptions: You cannot GOTO from an exception handler back into the __________ block.






17. Simple CASE statement checks for different values of a single _________






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






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






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






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






22. Cursors: The four cursor attributes - in alphabetical order.






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






24. Delimiters: The component indicator/selector.






25. Web: PL/SQL _____ _______ lets you to develop Web applications made of PL/SQL procedures.






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






27. Web: The gateway that allows a web browser to invoke a PL/SQL procedure through an HTTP listener.






28. In a sparse collection - the indexes of defined elements (do / do not) run in consecutive order.






29. Cursors: A cursor FOR loop cannot use a _______ variable.






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






31. You can have many autonomous transactions in ___________.






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






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






34. Advantage: Performance: Storing and runnng procedures on the server minimizes ______ traffic.






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






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






37. Command to assign to variables from a cursor.






38. An INSTEAD OF trigger specifies what to do instead of a ___ statement.






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






40. Delimiters: Statement terminator.






41. Define a record variable r - of type tRec - initialized with values 9 and 'Jones' in its two fields.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






43. Exceptions: An exception in the declarations section propagates to the enclosing _______.






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






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






46. Declaration of a varchar2 constant - called vname - with value 'x'.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


47. Cursors: How many DML statements can a FORALL statement contain?






48. Are good for logging table DML operations.






49. Types: The storage size of a NUMBER value is based on the number of ______ digits.






50. A unit with AUTHID = CURRENT_USER is an ________ rights unit.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183