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. Declare a number variable - A - initialized to 10.






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






3. To run a PIPE ROW statement in your autonomous routine - you must close any _____________.






4. Delimiters: Item separator.






5. Advantage: PL/SQL runs anywhere Oracle runs - so it is very ________.






6. What do you FETCH from?






7. A FOR loop can be indexed by numbers or by a ______.






8. Declare a constrained subtype of NUMBER called N that is not null.






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






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






11. I/O: This package lets PL/SQL programs read and write OS files.






12. Delimiters: the attribute indicator.






13. What is the simplest statement for conditionally getting out of simple loop?






14. The method to add one or more elements to a nested table or VARRAY is ______.






15. What are the two sequence pseudo-columns?






16. DynSQL: The clause that receives single-row query output from EXECUTE IMMEDIATE.






17. Define a record type REC with number num and varchar2(10) name.






18. Dbms_sql: The return type DBMS_SQL.open_cursor.






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






20. Characters that begin a multi-line comment.






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






22. Fundamental: Labels furnish targets for GOTO and _____ statements.






23. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.






24. Cursors: What is the 'name' of the implicit cursor?






25. Native compilation turns bytecode into ________ code.






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






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






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






29. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.






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






31. TCL: Create a savepoint called ab






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






33. Are good for logging table DML operations.






34. PL/SQL is a ________ typed programming language.






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






36. For an associative array - the FIRST method gets the (lowest / first-created) index.






37. Nested tables can become sparse via ______.






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






39. IDs: Maximum number of bytes in a user-defined identifier.






40. A kind of variable used as a placeholder.






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






42. The two main parts of a package are the ____ and the _____.






43. Cursors: You can just declare a cursor at first - then _______ it later.






44. Types: One of the scalar data types specific to PL/SQL: b_____.






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






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






47. Triggers: You create a trigger with the _______ ________ statement.






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






49. Assigning values to PL/SQL variables that appear in SQL statements is called _______.






50. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.