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. TCL: Create a savepoint called ab






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






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






4. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.






5. CREATE TYPE cannot be used for _______ array types.






6. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.






7. A numeric FOR loop cannot _________ by other than 1?






8. A result-cached function caches its results in the _____ _____ ____ (SGA)






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






10. Associative array types (can / cannot) be defined in the database.






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






12. Exceptions: Start of the range of error codes for RAISE_APPLICATION_ERROR.






13. A unit with AUTHID = CURRENT_USER is an ________ rights unit.

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


14. The method to add one or more elements to a nested table or VARRAY is ______.






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






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






17. Delimiters: the attribute indicator.






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






19. Cursors: How many DML statements can a FORALL statement contain?






20. A nested table has to be initialized using a ________ - named the same as the type.






21. In the special IF syntax - is it ELSIF - or ELSEIF?






22. The EXTEND method is not used with ______ _______.






23. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE






24. After the RESULT_CACHE clause - you can put a _________ clause to enable dependency-checking.






25. I/O: This DBMS_OUTPUT proc retrieves multiple lines from the buffer.






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






27. If an initialized collection has no elements - FIRST and LAST return _____.






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






29. An $ERROR directive ends with _____.






30. 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


31. Web: PL/SQL _____ _______ lets you to develop Web applications made of PL/SQL procedures.






32. An incomplete type only has a ____.






33. Exceptions: The three words that can be used to guarantee all exceptions will be handled.






34. Characters that end a multi-line comment.






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






36. Dbms_sql: The return type DBMS_SQL.open_cursor.






37. The command used to populate PLSQL_CCFLAGS.






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






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






40. The three possible values of a BOOLEAN literal.






41. You cannot bulk collect into an ARRAY OF ________.






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






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






44. Mode designation for an input/output parameter.






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






46. Advantage: Performance: PL/SQL automatically creates ______ variables for variables in WHERE and VALUES clauses.






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






48. Mode designation for an input parameter.






49. Exceptions: Some internal exceptions have ________ names.






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