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. Triggers: When using the NEW or OLD pseudo-records in the body of the trigger - they must be prefixed with a _______.






2. DBMS_DDL.CREATE_WRAPPED: wraps and _______ the source code passed to it.






3. Into nested table ex - put elements of tbl1 that are not in tbl2.






4. What are the two sequence pseudo-columns?






5. Collections are one of the two kinds of PL/SQL _______ data types.






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






7. What are the starting and ending keywords of a simple loop?






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






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






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






11. Where an external subprogram is stored.






12. What are the 3 values of the BOOLEAN data type?






13. When an autonomous routine begins execution - the main transaction is ________.






14. Advantage: Having procedures stored and executed on the server makes PL/SQL ________.






15. Cursors: Statement to end a loop when MyCur is used up: _____ ______ MyCur%NOTFOUND.






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






17. Fundamental: Which one of these is a compound symbol: = - :=






18. I/O: dbms_output.put_line puts output into a _______.






19. Cursors: An implicit cursor is also called a/n ________ ________ -






20. To insert or update on a table that has a collection column - you have to have _______ privilege on the collection type.






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






22. Delimiters: Host variable indicator.






23. Fundamental: What are the 3 compound symbols for 'not equal to'?






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






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






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






27. Exceptions: You can pass an ______ ________ to SQLERRM.






28. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.






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






30. Loops: What is the index range operator in a FOR loop?






31. The Wrap utility ________ the source code.






32. Unlike the CASE statement - the CASE expression does not have the...






33. An ordinary character literal is composed of characters in the ________ character set.






34. A kind of variable used as a placeholder.






35. Exceptions: An exception in the declarations section does not go to the __________ section.






36. Declare an input/output NUMBER parameter - v3.






37. Declare an input NUMBER parameter - v2 - that defaults to 20.






38. Searchable CASE statement: Each WHEN has its own _______ condition.






39. The values defined in PLSQL_CCFLAGS can be referenced as _____ directives.






40. Pkgs: This procedure de-instantiates/resets all packages in this session.






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






42. Define a nested table type - tN - which is a table NUMBERs.






43. Value of a character literal with zero characters.






44. Records are one of the two kinds of PL/SQL _______ data types.






45. Static typing is also called _____ typing.






46. A national character literal is composed of characters in the ________ character set.






47. Value of PLSQL_OPTIMIZE_LEVEL that prevents optimization.






48. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?






49. A CASE expression ends with _____.






50. With a result-cached function - it uses a cached value when the function is called again with the...