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. Declare an input/output NUMBER parameter - v3.






2. A null string and a BOOLEAN null are _______ (same/not the same).






3. Kind of datatypes that support object-oriented programming in PL/SQL.






4. The meaning of 'FGA'.






5. If a procedure fails - an OUT parameter passed to it by value (will / will not) be passed back with changes.






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






7. In a sparse collection - the indexes of defined elements (do / do not) run in consecutive order.






8. Delimiters: Statement terminator.






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






10. What are the two sequence pseudo-columns?






11. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.






12. The EXCEPTION section is (optional/mandatory).






13. Loops: What is the index range operator in a FOR loop?






14. Fundamental: Maximum string length of a PL/SQL variable.






15. I/O: This package lets two or more sessions in the same instance communicate.






16. Make a FOR loop that executes NULL 10 times counting in reverse - using index i.






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






18. In interpreted mode - PL/SQL code is run in a _______ _______.






19. Cursors: Only a _____ _____ cursor can appear in the CURRENT OF clause of an UPDATE or DELETE statement.






20. I/O: Max number of bytes DBMS_OUTPUT can handle in a session.






21. The NOCOPY option on an OUT or IN OUT parameter - causes it to be passed by ______.






22. Cursors: The two keywords in a mere cursor declaration (one is optional).






23. Type: An ________ subtype has all the values of its base type.






24. Assignment of PLSQL_CCFLAGS (cannot / can) be included in ALTER PROCEDURE ... COMPILE ...






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






26. The FORALL statement to loop over a collection MyList using index i.






27. Default file extension of wrap's input file.






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






29. You can define PL/SQL collections using TYPEs defined in the _______.






30. In 11g you can directly reference _____________ in PL/SQL.






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






32. Wrap iname=xxxx _____=zzzzz






33. You can have many autonomous transactions in ___________.






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






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






36. Where an external subprogram is stored.






37. Types: ________ data types have internal components.






38. Exceptions: A GOTO statement cannot branch into an _______ ________.






39. Advantage: PL/SQL is PORTABLE to any OS where ________ runs.






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






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






42. Cursors: Define a ref cursor type called T.






43. Data dictionary view giving the AUTHID values on a user's objects.






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






45. Cursors: A cursor that lives in session memory until the session ends.






46. Cursors: The Oracle predefined REF CURSOR type.






47. A GOTO statement can branch from an exception handler into...






48. I/O: The DBMS_OUTPUT function that writes output WITH a newline character.






49. Kind of code created by the PL/SQL compiler.






50. List the transaction control statements.