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. Cursors: The SQL%BULK_ROWCOUNT attribute is an _________ -






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






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






4. The collection method that tells the number of elements in the collection.






5. Declare a variable r whose type is that of the records in table t.






6. DBMS_DDL.CREATE_WRAPPED: wraps and _______ the source code passed to it.






7. Exceptions: User-defined exceptions must have _______.






8. The allowed data types of user-defined conditional compilation directives are boolean and _______.






9. Exceptions: Each internal exception has an Oracle ______ _______.






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






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






12. A FOR loop can be indexed by numbers or by a ______.






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






14. In a cursor loop - the clause added to an INSERT or UPDATE to point at the current record.






15. Triggers: In a per-row trigger - the ____ record shows you the changed state of an affected row.






16. The _____ utility turns PL/SQL source code into unreadable text.






17. For an associative array - the FIRST method gets the (lowest / first-created) index.






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






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






20. The lowest index of a VARRAY is ___.






21. Name the two types of FOR loop.






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






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






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






25. A large OUT or IN OUT parameter will waste a lot of space and CPU if it is passed by _____.






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






27. Types: PL/SQL has all the _____ data types.






28. Fundamental: identifiers (include/do not include) reserved words.






29. Web: Abbreviation of PL/SQL Server Page.






30. Default value of PLSQL_OPTIMIZE_LEVEL.






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






32. The command used to populate PLSQL_CCFLAGS.






33. Give the statement to make a program autonomous.






34. GOTO branches to a ________.






35. Cursors: Give the statement to open cursor C.






36. Delimiters: The remote access symbol.






37. The AUTHID property applies to PL/SQL objects that contain _____.






38. How many times are a FOR loop's index bounds evaluated?






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






40. Exceptions: The maximum length of an Oracle error message is ____ characters






41. Cursors: SYS_REFCURSOR is a predefined type based on _____ ______.






42. Delimiters: The association operator.






43. Advantage: PL/SQL is PORTABLE to any OS where ________ runs.






44. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.






45. A CASE statement ends with ____ ____.






46. Pkgs: This procedure de-instantiates/resets all packages in this session.






47. Exceptions: The ________ handler must always be the last handler.






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






49. An $ERROR directive ends with _____.






50. Types: ________ data types have internal components.