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. Cursors: Which cursor attribute is not meaningful for an implicit cursor?






2. The three possible values of a BOOLEAN literal.






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






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






5. Types: The storage size of a NUMBER value is based on the number of ______ digits.






6. Bulk: The keywords of a bulk collect FETCH statement.






7. What is the exception that is implicitly raised in a CASE statement with no ELSE clause?






8. List the transaction control statements.






9. A kind of variable used as a placeholder.






10. To enable result-caching for a function - use the _____________ clause.






11. IDs: You (can/cannot) use keywords as ordinary user-defined identifiers.






12. I/O: To make sure the DBMS_OUTPUT buffer will be flushed - put a WHEN ______ clause in the EXCEPTION section of your outer block.






13. I/O: Max number of bytes DBMS_OUTPUT can handle in a session.






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






15. Value of PLSQL_OPTIMIZE_LEVEL that prevents optimization.






16. Delimiters: Item separator.






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






18. Pkgs: RESET_PACKAGE only takes effect after the outermost PL/SQL proc that called it ________.






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






20. Delimiters: The left label delimiter.






21. The compiler directive used to select which code to compile.






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






23. Declare an output NUMBER parameter - v1 - that defaults to 10.






24. Parameter that controls how much Oracle optimizes your PL/SQL code on compilation.






25. Give the first line of the FOR loop with index i going from 1 to 10 in reverse.






26. Web: mod_plsql is an _______ module.






27. Cursors: The SQL%BULK_ROWCOUNT attribute is an _________ -






28. Types: The predefined subtype of PLS_INTEGER that has the NOT NULL constraint.






29. Fundamental: Maximum string length of a PL/SQL variable.






30. To run TCL or DDL statements - a trigger (must / must not) be autonomous .






31. In a record - the internal components are called ______.






32. You cannot bulk collect into an ARRAY OF ________.






33. Declare a variable r whose type is that of the records in table t.






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






35. If an initialized collection has no elements - FIRST and LAST return _____.






36. Types: One of the scalar data types specific to PL/SQL: B_______






37. Triggers: In a DML trigger - the phrase that makes the trigger run for every affected record.






38. Cursors: What implicit cursor attribute gives row counts for a FORALL statement?






39. Bulk: The use of FORALL statements cuts down on ______ traffic.






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






41. Fundamental: Delimiters are _____ and _____ symbols.






42. Types: Which type of arithmetic does PLS_INTEGER use - library or hardware?






43. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE






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






45. Conditional ______ allows backward compability with older database versions.






46. Which two collection types are unbounded?






47. Types: A ______ has the same valid operations as its base type.






48. Dbms_sql: This DBMS_SQL function opens a new cursor.






49. Advantage: PL/SQL is PORTABLE to any OS where ________ runs.






50. An editioning view can only select a subset of the columns from the base table and provide ________ for them