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. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.






2. I/O: The PL/SQL I/O packages (can/cannot) accept input directly from the keyboard.






3. Exceptions: The built-in procedure for raising an application-defined error.






4. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.






5. The FIRST method gets the first (element / index) of a collection.






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






7. I/O: One of the 3 types of data that can be passed to the DBMS_OUTPUT buffer.






8. You have to use _______ SQL to run DDL statements n PL/SQL.






9. SIMPLE_INTEGER is like PLS_INTEGER - but it does not allow ____ values - and it does not raise overflow exceptions.






10. Types: One of the scalar data types specific to PL/SQL: P________






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






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






13. Wrapping can be done with the ____ executable.






14. You can define PL/SQL collections using TYPEs defined in the _______.






15. A user-defined TYPE can have...






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






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






18. Assignment of PLSQL_CCFLAGS (cannot / can) be included in ALTER PROCEDURE ... COMPILE ...






19. $$PLSQL_LINE and $$PLSQL_UNIT are ______-ly defined inquiry directives.






20. What do you FETCH from?






21. Static typing is also called _____ typing.






22. Cursors: What implicit cursor attribute gives row counts for a FORALL statement?






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






24. 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


25. To run a PIPE ROW statement in your autonomous routine - you must close any _____________.






26. The BETWEEN operator is (inclusive / exclusive).






27. The three sorts of date/time types are DATE - INTERVAL and _________.






28. Exceptions: The ________ handler must always be the last handler.






29. Term for a character literal with zero characters.






30. An editioning view can only select a subset of the columns from the base table and provide ________ for them






31. Value of a character literal with zero characters.






32. Give the clause you add to a CREATE TABLE statement - when there is a collection column myColl - that you want to be stored in a table called myCollTab.






33. A CASE expression ends with _____.






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






35. Cursors: The keyword that makes a ref cursor type STRONG.






36. Triggers: In a trigger - you cannot issue a COMMIT or a ______.






37. Wrapped code (is / is not) not backward compatible.






38. A null string and a BOOLEAN null are _______ (same/not the same).






39. In Native Mode - PL/SQL code is compiled into ______ ______.






40. TCL: Undo changes back to savepoint ab.






41. Declare an unconstrained subtype of NUMBER called NUMB.






42. A GOTO statement cannot branch from an exception handler back into the...






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






44. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.






45. Are good for logging table DML operations.






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






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






48. The first SQL statement in an autonomous routine begins a _______.






49. Cursors: The FOR UPDATE phrase goes at the (beginning/end) of the cursor definition.






50. List the transaction control statements.