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. Types: Which type of arithmetic does PLS_INTEGER use - library or hardware?






2. Fundamental: One of the 4 types of lexical units: i_____






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






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






5. Delimiters: The remote access symbol.






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






7. Cursors: Give the statement to fetch data from cursor C into variable V.






8. Bytecode is _______ _______ code.






9. Fundamental: What is the range operator?






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






11. Exceptions: The keyword that begins an exception handler.






12. Delimiters: The left label delimiter.






13. A CASE expression ends with _____.






14. Associative arrays (do / do not) have to be initialized with a constructor.






15. Exceptions: Each internal exception has an Oracle ______ _______.






16. A ___________ behaves like a table column - but it is not stored in the table.






17. DynSQL: Native Dynamic SQL






18. The lowest index of a nested table is ___.






19. If a result-cached function's data source (based on the RELIES_ON clause) is updated - any cached results become _______.






20. Web: PL/SQL ______ ______ (PSPs) let you develop web pages with dynamic content.






21. Command to assign to variables from a cursor.






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






23. An autonomous program runs in its own __________.






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






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






26. Web: mod_plsql is an implementation of the PL/SQL _________.






27. I/O: The output from DBMS_OUTPUT will display (during/after) program execution.






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






29. Command used to execute dynamic SQL.






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






31. You can put a label before any executable PL/SQL _________.






32. Characters that begin a multi-line comment.






33. Types: A data type family consists of a ______ type and its subtypes.






34. This is a CASE (expression / statement): CASE num WHEN 1 THEN goto LABEL1 WHEN 2 THEN var := 2 END CASE;






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






36. Triggers: The clause to make a trigger run after inserting into table EMPS.






37. Unlike the CASE statement - the CASE expression does not have the...






38. Native compilation turns bytecode into ________ code.






39. Declare a cursor c with no parameters - and return type rC.






40. Cursors: If you use an EXIT statement to exit a cursor FOR loop prematurely - the cursor (is / is not) closed automatically.






41. An $ERROR directive ends with _____.






42. Abbreviation of definer's rights






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






44. Cursors: A pointer to a cursor is called a ______ _______.






45. TCL: Undo changes back to savepoint ab.






46. Fundamental: Delimiters are _____ and _____ symbols.






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






48. With static typing - type checking is done at ______ time.






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






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