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. I/O: This package sends text output to SQLPlus






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






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






4. Fundamental: What is the range operator?






5. Triggers: In a trigger - you cannot issue a COMMIT or a ______.






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






7. Characters that begin a single-line comment.






8. An incomplete type is a type created by a ______ type definition.






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






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






11. I/O: This package has hypertext procedures that generate HTML tags






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






13. In short-circuit evaluation - IF-conditions are only evaluated up to where the outcome ___________.






14. A CASE expression ends with _____.






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






16. An incomplete type only has a ____.






17. Types: One of the 4 PL/SQL things that have a data type (begins with 'r').






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






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






20. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.






21. Declare an unconstrained subtype of NUMBER called NUMB.






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






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






24. Exceptions: You cannot GOTO from an exception handler back into the __________ block.






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






26. Fundamental: One of the 4 types of lexical units: d_____






27. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';






28. The 2 characters that begin all inquiry directives.






29. TCL: Undo changes back to savepoint ab.






30. Types: Which type of arithmetic does NUMBER use - library or hardware?






31. The inquiry directive that gives the current line number in the procedure.






32. Types: The predefined subtype of PLS_INTEGER that has the NOT NULL constraint.






33. To create a collection type - use the TYPE command in PL/SQL and the ______ _____ command in SQL.






34. The DEFINITION of a cursor is the _____ that returns the records.






35. IDs: The type of words that cannot be user-defined identifiers.






36. The two kinds of CASE statements are simple and ________.






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






38. Types: ______ data types are those storing values with no internal components.






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






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






41. Declare a package procedure P with no arguments - and give it definer's rights.






42. I/O: SQLPlus command for turning on buffered output.






43. DynSQL: The clause that receives single-row query output from EXECUTE IMMEDIATE.






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






45. Cursors: A cursor FOR loop can use an explicit or an _______ cursor.






46. The source for wrapping begins with the word ______.






47. The command used to populate PLSQL_CCFLAGS.






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






49. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.






50. The valid values of the AUTHID property.