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. In Native Mode - PL/SQL code is compiled into ______ ______.






2. I/O: This package has hypertext functions that generate HTML tags






3. Nested tables can become sparse via ______.






4. Exceptions: Start of the range of error codes for RAISE_APPLICATION_ERROR.






5. DynSQL: The standard package that does dynamic SQL.






6. I/O: SQLPlus command for turning on buffered output.






7. A CASE expression ends with _____.






8. Cursors: What are the 3 possible values of SQL%FOUND and SQL%NOTFOUND?






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






10. A type of compiler directive - begins with 's'.






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






12. Cursors: Define a ref cursor type called T.






13. Term for a character literal with zero characters.






14. You (can/cannot) put a label before an END LOOP statement.






15. A subprogram defined within another subprogram is a _______ subprogram.






16. Cursors: The statement where you pass the parameters to a cursor.






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






18. How many times are a FOR loop's index bounds evaluated?






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






20. An anonymous block is a(n) ____ statement.






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






22. In the IF syntax - is if ENDIF or END IF?






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






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






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






26. A CASE statement (can / cannot) execute more than one group of statements.






27. Give the statement to make a program autonomous.






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






29. Triggers: In a per-row trigger - the ____ record shows you the original state of an affected row.






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






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






32. From a block nested inside a procedure P - reference variable V of the outer procedure.






33. In the special IF syntax - is it ELSIF - or ELSEIF?






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






35. TCL: Create a savepoint called ab






36. The AUTHID property applies to PL/SQL objects that contain _____.






37. Triggers: By default - a trigger is created in the ______ state.






38. The SET TRANSACTION statement affects only the ____________.






39. A GOTO cannot branch into an...






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






41. A collection is an ordered group of ________ - all of the same ____






42. DynSQL: Maximum string length to pass to EXECUTE IMMEDIATE.






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






44. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.






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






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






47. An $ERROR directive ends with _____.






48. Fundamental: One of the 4 types of lexical units: i_____






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






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