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. Triggers: The clause to make a trigger run once for every affected row.






2. User-defined compiler directives are defined in this system compile parameter.






3. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.






4. The valid values of the AUTHID property.






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






6. The two main parts of a package are the ____ and the _____.






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






8. The _____ and ____ _____ collection types can be used in database table columns.






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






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






11. NAN stands for _________.






12. Unlike the CASE statement - the CASE expression does not have the...






13. A basic PL/SQL datatype that SQL does not have.






14. Cursors: What are the 3 possible values of SQL%FOUND and SQL%NOTFOUND?






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






16. PLSQL_CCFLAGS hold a comma-separated list of ______ pairs (hyphenated).






17. I/O: If the current (outermost) PL/SQL block ends with an unhandled exception - the output buffer will not be ___________.






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






19. Delimiters: Host variable indicator.






20. Delimiters: Item separator.






21. Cursors: The three keywords in a full cursor declaration/definition (before the SELECT).






22. Cursors: The FOR UPDATE phrase goes at the (beginning/end) of the cursor definition.






23. Advantage: Caching of programs and sharing among users lowers _______ requirements.






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






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






26. Fundamental: A label can only go directly before an _______ statement.






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






28. Types: A data type family consists of a ______ type and its subtypes.






29. In Native Mode - PL/SQL code is compiled into ______ ______.






30. I/O: The DBMS_OUTPUT buffer will not be flushed until it is full or until the current PL/SQL block _________.






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






32. Labels for blocks and statements are enclosed in '__' brackets.






33. Cursors: The statement that closes a cursor.






34. Dbms_sql: The DBMS_SQL procedure that closes a cursor.






35. Declaration of a varchar2 constant - called vname - with value 'x'.

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


36. Pkgs: RESET_PACKAGE only takes effect after the outermost PL/SQL proc that called it ________.






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






38. Triggers: The clause to make a trigger run after inserting into table EMPS.






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






40. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.






41. Cursors: The value of SQL%ISOPEN is always ______.






42. Command to make a no-op (omit semicolon).






43. What do you FETCH from?






44. Command to create a procedure.






45. This is a CASE (expression / statement): myvar := CASE num WHEN 1 THEN 'good' WHEN 2 THEN 'bad' END;






46. You can have many autonomous transactions in ___________.






47. IDs: Predefined identifiers are declared in this package.






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






49. Dbms_sql: This DBMS_SQL function opens a new cursor.






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