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. DBMS_DDL.CREATE_WRAPPED: wraps and _______ the source code passed to it.






2. What is the simplest statement for conditionally getting out of simple loop?






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






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






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






6. How to reference a variable V declared in a block labelled L: ____.






7. PL/SQL is a ________ typed programming language.






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






9. Cursors: Give the first 3 words to open a cursor variable called cv.






10. Fundamental: What is the exponentiation operator?






11. DynSQL: In EXECUTE IMMEDIATE - the statement string can use either placeholders - or string ________.






12. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.






13. The command used to populate PLSQL_CCFLAGS.






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






15. The 4 keywords in the $IF compiler directive.






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






17. Bulk: The two features that comprise Bulk SQL are:






18. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?






19. Cursors: Give the statement to open cursor C that takes parameter p.






20. To use a TYPE declared in the database - a PL/SQL block has to have _______ privilege on the type.






21. I/O: This package handles HTTP.






22. Exceptions: Associate exception E with error code -1.






23. Cursors: The SQL%BULK_ROWCOUNT attribute is an _________ -






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






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






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






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






28. Abbreviation of invoker's rights






29. Triggers: A compound trigger can fire at more than one ______ point.






30. Command to assign to variables from a cursor.






31. Advantage: Having procedures stored and executed on the server makes PL/SQL ________.






32. The default value of the AUTHID property.






33. Exceptions: A GOTO statement CAN branch from an exception handler into an ________ block.






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






35. Setting CURRENT_SCHEMA only changes what is prepended to __________ references.






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






37. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.






38. Cursors: A session cursor that is automatically created and managed by PL/SQL.






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






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






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






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






43. Triggers: There are __ types of triggers.






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






45. The SET TRANSACTION statement affects only the ____________.






46. What are two categories of SQL functions that cannot be used in procedural statements?






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






48. Cursors: A pointer to a cursor is called a ______ _______.






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






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