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. A type of compiler directive - begins with 'e'.






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






3. Simple CASE statement checks for different values of a single _________






4. With dynamic typing - type checking is done at ______time.






5. A subprogram created inside a block is a _________ subprogram.






6. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.






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






8. A collection is an ordered group of ________ - all of the same ____






9. Triggers: The clause to make a trigger run before inserting or updating table EMPS.






10. I/O: SQLPlus command for turning on buffered output.






11. The default value of the AUTHID property.






12. Cursors: Give the statement for getting out of a FETCH loop for cursor CV.






13. Cursors: The keyword that makes a ref cursor type STRONG.






14. What clause makes a compilation default to the PLSQL_CCFLAGS settings from the last compilation?






15. The PL/SQL virtual machine turns bytecode into system ______.






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






17. Associative array types (can / cannot) be defined in the database.






18. In Native Mode - PL/SQL code is compiled into ______ ______.






19. When a parameter is passed by reference - changes made to it inside the procedure cannot be undone. True/False.






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






21. The LIMIT method is only meaningful for _______.






22. Exceptions: Declare an exception called E.






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






24. I/O: The DBMS_OUTPUT buffer will not be flushed until it is full or until the current PL/SQL block _________.






25. Cursors: An explicit cursor (can/cannot) accept parameters.






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






27. Dbms_sql: The DBMS_SQL procedure that will execute a DDL or DML statement.






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






29. The lowest index of a VARRAY is ___.






30. What are the two sequence pseudo-columns?






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






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






33. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.






34. Types: The only PL/SQL type for which you can specify a range constraint.






35. I/O: This package handles HTTP.






36. An incomplete type only has a ____.






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






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






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






40. True encryption is done with package __________.






41. The statement that is used to execute most (native) dynamic SQL.






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






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






44. A (simple / searched) CASE statement begins with CASE WHEN <boolean expression>.






45. Delimiters: The left label delimiter.






46. Advantage: Performance: Stored subprograms are ______ in memory.






47. Triggers: To simulate having triggers on SELECT statements - you can try ___ (3-letter acronym).






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






49. Characters that begin a single-line comment.






50. The 4 keywords in the $IF compiler directive.