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. Fundamental: What is the exponentiation operator?






2. Exceptions: The _________ package defines the PL/SQL environment.






3. Types of blocks: Procedures and functions are _______ blocks.






4. The PL/SQL ________ evaluates compiler directives.






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






6. PL/SQL lets you define two kinds of composite data types: _______ and _______






7. Fundamental: What is the range operator?






8. Exceptions: User-defined exceptions must have _______.






9. Cursors: A cursor with a name is an _________ cursor.






10. The lowest index of a VARRAY is ___.






11. The four keywords that define a PL/SQL block.






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






13. By default - an IN parameter is passed by ______.






14. Wrap ______=xxxx oname=zzzzz






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






16. Conversion: It is best to use (implicit / explicit) conversion.






17. DynSQL: Native Dynamic SQL






18. Triggers: An INSTEAD OF trigger is (always/never) a row-level trigger.






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






20. The allowed data types of user-defined conditional compilation directives are boolean and _______.






21. If none of a CASE expression's conditions are TRUE - it returns _____.






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






23. Types: One of the 4 PL/SQL things that have a data type (begins with 'c').






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






25. You have to use _______ SQL to run DDL statements n PL/SQL.






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






27. The valid values of the AUTHID property.






28. Dbms_sql: The return type DBMS_SQL.open_cursor.






29. A CASE statement (can / cannot) execute more than one group of statements.






30. Language that PL/SQL is derived from.






31. Types: ________ data types have no internal components.






32. Exceptions: An exception in the declarations section propagates to the enclosing _______.






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






34. An ordinary character literal is composed of characters in the ________ character set.






35. Setting CURRENT_SCHEMA only changes what is prepended to __________ references.






36. An incomplete type is a type created by a ______ type definition.






37. Exceptions: Declare an exception called E.






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






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






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






41. The AUTHID property applies to PL/SQL objects that contain _____.






42. I/O: One of the 3 types of data stored in the DBMS_OUTPUT buffer.






43. Command to delete a procedure.






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






45. In a collection - the internal components always have the _____ data type.






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






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






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






49. Exceptions: An unhandled exception ________ to the enclosing block.






50. One good use of bind variables is to guard against SQL _______.