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. I/O: This package lets two or more sessions in the same instance communicate.






2. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.






3. By default - OUT and IN OUT parameters are passed by _____.






4. Exceptions: Write the call (2 args) to associate message 'Bad' with error code -20 -100.


5. Static typing is also called _____ typing.






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






7. Type: A __________ subtype has only a subset of the values of its base type.






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






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






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






11. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.






12. Exceptions: Type ______ to re-raise the current exception.






13. _______ arrays can be sparse or dense - depending on how you fill them.






14. Cursors: Give the statement to open cursor C that takes parameter p.






15. From a block nested inside a procedure P - reference variable V of the outer procedure.






16. Types: ______ data types are those storing values with no internal components.






17. Cursors: Which cursor attribute is not meaningful for an implicit cursor?






18. What is the exception that is implicitly raised in a CASE statement with no ELSE clause?






19. List the transaction control statements.






20. I/O: This package handles HTTP.






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






22. The meaning of 'FGA'.






23. Types: One of the scalar data types specific to PL/SQL: R_________.






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






25. Triggers: In a per-row trigger - the ____ record shows you the original state of an affected row.






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






27. Advantage: PL/SQL gives SCALABILITY because stored procedures are executed on the _______.






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






29. Types: PL/SQL has all the _____ data types.






30. How to reference a variable V declared in a block labelled L: ____.






31. Triggers: You (can/cannot) explicitly invoke a trigger.






32. Cursors: Give the statement to fetch data from cursor variable CV into MyVar.






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






34. Delimiters: the attribute indicator.






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






36. A large OUT or IN OUT parameter will waste a lot of space and CPU if it is passed by _____.






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






38. Bulk: The implicit cursor attribute that gives the number of rows affected by each DML statement in a FORALL statement.






39. The exception raised when a SELECT INTO statement returns more than one row.






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






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






42. DynSQL: The clause that supplies bind arguments to EXECUTE IMMEDIATE.






43. Give the statement to make a program autonomous.






44. You can use the BULK COLLECT INTO clause in a SELECT or a ______.






45. Types: Which type of arithmetic does NUMBER use - library or hardware?






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






47. Advantage: Having procedures stored and executed on the server makes PL/SQL ________.






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






49. The BETWEEN operator is (inclusive / exclusive).






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