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. Are good for logging table DML operations.






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






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






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






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






6. Web: PL/SQL _______ enables a Web browser to invoke a PL/SQL stored subprogram through an HTTP listener.






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






8. List the transaction control statements.






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






10. A type of compiler directive - begins with 's'.






11. A SELECT statement with the FOR UPDATE clause puts a ______ on the selected rows.






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






13. The RESULT_CACHE clause comes (before / after) the RETURN clause.






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






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






16. Give the value list in the PLSQL_WARNINGS parameter to turn on SEVERE compiler warnings and make compiler warning 06002 be an error.

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


17. I/O: The DBMS_OUTPUT procedure that sets the size of the output buffer.






18. To insert or update on a table that has a collection column - you have to have _______ privilege on the collection type.






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






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






21. Cursors: The SQL%FOUND attribute has how many possible values?






22. Triggers: If two or more triggers are defined with the same timing point - then you can control the firing order using the ________ clause.






23. Java - C or other program called directly in PL/SQL.






24. DynSQL: EXECUTE IMMEDIATE can be used for any SQL statement or PL/SQL block - except for ________ queries.






25. Conversion: It is best to use (implicit / explicit) conversion.






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






27. Dbms_sql: DBMS_SQL package is compiled with _______ rights.

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


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






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






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






31. In the IF syntax - is if ENDIF or END IF?






32. Cursors: An implicit cursor is also called a/n ________ ________ -






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






34. Nested tables are multisets - meaning that there is no inherent _____ of their elements.






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






36. Dbms_sql: The DBMS_SQL procedure that will execute a DDL or DML statement.






37. Triggers and views always have _________ rights.

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


38. The default value of the AUTHID property.






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






40. Declare an output NUMBER parameter - v1 - that defaults to 10.






41. Delimiters: The left label delimiter.






42. Types: One of the scalar data types specific to PL/SQL: b_____.






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






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






45. The FOR UPDATE OF clause references a (table / column).






46. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.






47. Cursors: The first two keywords in a Cursor FOR loop.






48. How many types of compiler directives are there?






49. Define a collection type - tV - which is a varray of 100 NUMBERs.






50. With conditional compilation you can avoid compiling debug code in the _______ environment.