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: One of the 4 types of lexical units: L_____






2. Cursors: You cannot use cursor attributes in _______ statements.






3. Command to assign to variables from a cursor.






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






5. Kind of comment not to put in a PL/SQL block to be processed dynamically by an Oracle Precompiler program.






6. DynSQL: In EXECUTE IMMEDIATE - the statement string can use either placeholders - or string ________.






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






8. Cursors: The four cursor attributes - in alphabetical order.






9. Triggers: On a non-editioning view - you can only define __________ triggers.






10. I/O: One of the 3 types of data that can be passed to the DBMS_OUTPUT buffer.






11. The PL/SQL ________ evaluates compiler directives.






12. Give the ANSI Date literal for December 25 - 2005.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


13. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.






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






15. A collection is an ordered group of ________ - all of the same ____






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






17. _________ exceptions can not be trapped with an error handler






18. I/O: This package does email.






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






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






21. Data dictionary view that shows the compiler settings for each compiled object.






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






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






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






25. %ROWTYPE gets the type of a table or _______.






26. To exit an active autonomous transaction without causing an exception - you must issue _____ or ______.






27. Define a record variable r - of type tRec - initialized with values 9 and 'Jones' in its two fields.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






30. The BEGIN section is (optional/mandatory)






31. In interpreted mode - the PL/SQL VM interprets the _________.






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






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






34. Delimiters: The assignment operator.






35. Bulk: The use of FORALL statements cuts down on ______ traffic.






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






37. I/O: This DBMS_OUTPUT proc retrieves one line from the buffer.






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






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






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






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






42. Types: The PL/SQL type that is identical to PLS_INTEGER.






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






44. For a collection - the NEXT method gets the next higher (element / index).






45. $$PLSQL_LINE and $$PLSQL_UNIT are ______-ly defined inquiry directives.






46. Delimiters: Item separator.






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






48. Are good for logging table DML operations.






49. Triggers: INSTEAD OF triggers only run on ______ views.






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