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. An $ERROR directive ends with _____.






2. Cursors: A cursor FOR loop can use an explicit or an _______ cursor.






3. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.






4. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.






5. I/O: This package sends text output to SQLPlus






6. %ROWTYPE gets the type of a table or _______.






7. Type: A __________ subtype has only a subset of the values of its base type.






8. Advantage: Performance: Storing and runnng procedures on the server minimizes ______ traffic.






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






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






11. Exceptions: A GOTO statement CAN branch from an exception handler into an ________ block.






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






13. Cursors: The first two keywords in a Cursor FOR loop.






14. List the transaction control statements.






15. Dbms_sql: The DBMS_SQL procedure that closes a cursor.






16. Cursors: WHERE _______ ______ makes an UPDATE or DELETE apply to the current row of a cursor.






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






18. An INSTEAD OF trigger specifies what to do instead of a ___ statement.






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






20. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.






21. For a collection - the NEXT method returns ____ when there is no next index value.






22. Web: Abbreviation of PL/SQL Server Page.






23. By default - OUT and IN OUT parameters are passed by _____.






24. The best candidates for result-caching are functions that are invoked frequently but depend on __________________ or never.






25. Native compilation turns bytecode into ________ code.






26. VARRAYs are (always / never) sparse.






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






28. Types: PL/SQL has all the _____ data types.






29. Fundamental: A label can only go directly before an _______ statement.






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






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






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






33. Delimiters: Statement terminator.






34. The first SQL statement in an autonomous routine begins a _______.






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






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






37. A CASE statement ends with ____ ____.






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






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






40. The three possible values of a BOOLEAN literal.






41. A unit with AUTHID = CURRENT_USER is an ________ rights unit.


42. Kind of datatypes that support object-oriented programming in PL/SQL.






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






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






45. The variable showing the user id of the session owner.






46. Declare an unconstrained subtype of NUMBER called NUMB.






47. Command to assign to variables from a cursor.






48. DynSQL: The three modes of arguments in the USING clause of EXECUTE IMMEDIATE.






49. Cursors: The index variable in a cursor FOR loop (does/does not) need to be declared.






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