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. Declare an unconstrained subtype of NUMBER called NUMB.






2. Cursors: You give an explicit cursor a name and associate it with a _______.






3. Exceptions: PL/SQL exceptions are of two types: internal and _________.






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






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






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






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






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






9. Exceptions: Each internal exception has an Oracle ______ _______.






10. Exceptions: User-defined exceptions must have _______.






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






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






13. Clause added to a cursor to use it with WHERE CURRENT OF.






14. The compiler directive governing conditional compilation.






15. The attribute used to get the type of a row without knowing what it is.






16. A nested table has to be initialized using a ________ - named the same as the type.






17. Web: PL/SQL ______ ______ (PSPs) let you develop web pages with dynamic content.






18. Cursors: The statement that closes a cursor.






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






20. Which two collection types are unbounded?






21. Triggers and views always have _________ rights.

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


22. I/O: The output from DBMS_OUTPUT will display (during/after) program execution.






23. Triggers: The clause to make a trigger run after inserting into table EMPS.






24. Triggers: An INSTEAD OF trigger (can/cannot) be conditional.






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






26. Exceptions: Pragma that links an exception to an Oracle error code.






27. Exceptions: The ________ function returns the current error code.






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






29. Setting CURRENT_SCHEMA only changes what is prepended to __________ references.






30. Cursors: An explicit cursor (can/cannot) accept parameters.






31. Delimiters: The remote access symbol.






32. Advantage: PL/SQL programs are stored centrally - making them more ______.






33. To create a collection type - use the TYPE command in PL/SQL and the ______ _____ command in SQL.






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






35. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.






36. VARRAYs are (always / never) sparse.






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






38. Wrap ______=xxxx oname=zzzzz






39. Where an external subprogram is stored.






40. Triggers: You (can/cannot) explicitly invoke a trigger.






41. The DEFINITION of a cursor is the part after the keyword __.






42. For a collection - the NEXT method gets the next higher (element / index).






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






44. Conversion: Implicit conversion is not always predictable; it is _______-sensitive. And its rules might change.






45. Characters that begin a multi-line comment.






46. Give the statement to make a program autonomous.






47. I/O: This package lets two or more sessions in the same instance communicate.






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






49. Fundamental: One of the 4 types of lexical units: d_____






50. The EXCEPTION section is (optional/mandatory).