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. Advantage: PL/SQL supports ______-oriented programming.






2. Declare an unconstrained subtype of NUMBER called NUMB.






3. Fundamental: What are the 3 compound symbols for 'not equal to'?






4. IDs: The two types of words that can - but should not - be used as user-defined identifiers.






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






6. You (can/cannot) put a label before an END LOOP statement.






7. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.






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






9. IDs: The type of words that cannot be user-defined identifiers.






10. The declaration section is (optional/mandatory).






11. Dbms_sql: The integer returned by OPEN_CURSOR is a _____ _____.






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






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






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






15. In a cursor loop - the clause added to an INSERT or UPDATE to point at the current record.






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






17. Conversion: If the specific value is suitable - ____ or _______ values can convert to almost any datatype






18. I/O: The PL/SQL I/O packages (can/cannot) accept input directly from the keyboard.






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






20. The _______ package lets you wrap dynamically generated PL/SQL.






21. In short-circuit evaluation - IF-conditions are only evaluated up to where the outcome ___________.






22. Cursors: A cursor FOR loop cannot use a _______ variable.






23. Bytecode is _______ _______ code.






24. Triggers: In a DML trigger - the phrase that makes the trigger run for every affected record.






25. Cursors: Give the statement to close cursor C.






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






27. I/O: The most basic PL/SQL way to give output to the user.






28. The $ERROR directive is used to make compilation ____.






29. Fundamental: A label can be used to name an ______ block.






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






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






32. Triggers: An INSTEAD OF trigger (can/cannot) be conditional.






33. _____ arrays cannot be used as the type of an Oracle table column.






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






35. Abbreviation of definer's rights






36. A kind of variable used as a placeholder.






37. A PL/SQL block that is not stored.






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






39. I/O: The buffered output of dbms_output.put_line is retrieved by _______.






40. The three types of compiler warnings.






41. Name the two types of FOR loop.






42. Bulk: The two features that comprise Bulk SQL are:






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






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






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






46. The BEGIN section is (optional/mandatory)






47. Cursors: Opening keyword of a cursor FETCH loop.






48. Cursors: If an exception is raised inside a cursor loop - the cursor (is / is not) also closed automatically.






49. What do you FETCH from?






50. Types of blocks: A pl/sql block that is not stored in the database.