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. Unlike the CASE statement - the CASE expression does not have the...






2. _____ arrays cannot be used as the type of an Oracle table column.






3. Triggers: When using the NEW or OLD pseudo-records in the body of the trigger - they must be prefixed with a _______.






4. Cursors: A cursor variable's type must be a ____ ______ type.






5. Cursors: You cannot use cursor attributes in _______ statements.






6. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.






7. Default file extension of wrap's output file.






8. Advantage: Performance: PL/SQL automatically creates ______ variables for variables in WHERE and VALUES clauses.






9. The lowest index of a nested table is ___.






10. Subprograms are stored in __________ form.






11. DynSQL: The colon-prefixed names used in EXECUTE IMMEDIATE are called ________.






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






13. A GOTO cannot branch into a...






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






15. Triggers: On a non-editioning view - you can only define __________ triggers.






16. A kind of variable used as a placeholder.






17. Exceptions: Declare an exception called E.






18. The DECLARE keyword is only required in an _______ _______.






19. If a result-cached function's data source (based on the RELIES_ON clause) is updated - any cached results become _______.






20. Declare a number variable - A - initialized to 10.






21. IDs: Predefined identifiers are declared in this package.






22. The compiler directive governing conditional compilation.






23. Declare a cursor c with no parameters - and return type rC.






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






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






26. The names of Java objects in Oracle can be up to __ characters in length.






27. The FOR UPDATE OF clause references a (table / column).






28. Triggers: A compound trigger can fire at more than one ______ point.






29. Cursors: Only a _____ _____ cursor can appear in the CURRENT OF clause of an UPDATE or DELETE statement.






30. The exception raised when a SELECT INTO statement returns more than one row.






31. GOTO branches to a ________.






32. IDs: How an ordinary user-defined identifier must begin.






33. Exceptions: The ________ function returns the error message associated with an error code.






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






35. The meaning of 'FGA'.






36. Data dictionary view that shows the compiler settings for each compiled object.






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






38. DynSQL: EXECUTE IMMEDIATE can be used for any SQL statement or PL/SQL block - except for ________ queries.






39. The SET TRANSACTION statement affects only the ____________.






40. How many PL/SQL collection types are there?






41. IDs: List the two types of user-defined identifiers.






42. The collection method that tells the number of elements in the collection.






43. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.






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






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






46. Dbms_sql: The integer returned by OPEN_CURSOR is a _____ _____.






47. Declare a package procedure P with no arguments - and give it definer's rights.






48. Declare a package procedure P with no arguments - and give it invoker's rights.






49. In PL/SQL - what the variables in DML statements are turned into.






50. Triggers: The code in a trigger is actually an ________ block.