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. Define a collection type - tA - which is an associative array of NUMBERS - indexed with varchar2(20) values.






2. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.






3. Exceptions: An unhandled exception ________ to the enclosing block.






4. A __________ can have an AUTHID property






5. Cursors: SYS_REFCURSOR is a predefined type based on _____ ______.






6. INSTEAD OF triggers are alternatives to ___ triggers






7. Exceptions: Declare an exception called E.






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






9. Delimiters: Item separator.






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






11. The attribute used to get the type of a column or variable without knowing what it is.






12. A GOTO statement can branch from an exception handler into...






13. Delimiters: The component indicator/selector.






14. You cannot bulk collect into an ARRAY OF RECORDS. You can into a ________________ (3 words).






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






16. DynSQL: Native Dynamic SQL






17. Advantage: PL/SQL is tightly _______ with Oracle SQL.






18. Cursors: A session cursor that a PL/SQL user creates and manages.






19. DynSQL: The clause that receives single-row query output from EXECUTE IMMEDIATE.






20. How many types of compiler directives are there?






21. Exceptions: Write the call (2 args) to associate message 'Bad' with error code -20 -100.

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


22. Cursors: Give the statement to open cursor C.






23. Cursors: The two keywords in a mere cursor declaration (one is optional).






24. Fundamental: Character used to escape a single quote inside a literal.

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


25. Exceptions: A GOTO statement cannot branch into an _______ ________.






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






27. With static typing - type checking is done at ______ time.






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






29. If a procedure fails - an OUT parameter passed to it by value (will / will not) be passed back with changes.






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






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






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






33. A CASE statement ends with ____ ____.






34. Exceptions: The _________ package defines the PL/SQL environment.






35. If none of a CASE expression's conditions are TRUE - it returns _____.






36. Triggers: The clause to make a trigger run once for every affected row.






37. Triggers: There are __ types of triggers.






38. Term for a character literal with zero characters.






39. Mode designation for an input parameter.






40. Triggers and views always have _________ rights.

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


41. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.






42. Conversion: If the specific value is suitable - ____ or _______ values can convert to almost any datatype






43. Delimiters: Statement terminator.






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






45. The two kinds of CASE statements are simple and ________.






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






47. Where an external subprogram is stored.






48. Define a collection type - tV - which is a varray of 100 NUMBERs.






49. _______ arrays can be sparse or dense - depending on how you fill them.






50. Cursors: A cursor that lives in session memory until the session ends.