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. Command to delete a procedure.






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






3. An editioning view is like an ____ for a table.






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






5. You have to use _______ SQL to run DDL statements n PL/SQL.






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






7. What are the 3 values of the BOOLEAN data type?






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






9. Types: One of the scalar data types specific to PL/SQL: b_____.






10. Triggers: To simulate having triggers on SELECT statements - you can try ___ (3-letter acronym).






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






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






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






14. The NOCOPY option on an OUT or IN OUT parameter - causes it to be passed by ______.






15. Cursors: A cursor variable's type must be a ____ ______ type.






16. In a collection - the internal components always have the _____ data type.






17. The compiler directive used to select which code to compile.






18. Cursors: Closing keywords of a cursor FETCH loop.






19. A subprogram created inside a block is a _________ subprogram.






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






21. Cursors: You can just declare a cursor at first - then _______ it later.






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


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






24. Default value of PLSQL_OPTIMIZE_LEVEL.






25. Declare an associative array type - t - whose elements are of type rPerson - and whose index is PLS_INTEGER.






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






27. Fundamental: What is the exponentiation operator?






28. TCL: Undo changes back to savepoint ab.






29. A type of compiler directive - begins with 's'.






30. One good use of bind variables is to guard against SQL _______.






31. Cursors: A cursor with a name is an _________ cursor.






32. Define a nested table type - tN - which is a table NUMBERs.






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






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






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






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






37. Fundamental: Which one of these is a compound symbol: = - :=






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






39. Give the clause you add to a CREATE TABLE statement - when there is a collection column myColl - that you want to be stored in a table called myCollTab.






40. A CASE statement (can / cannot) execute more than one group of statements.






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






42. What word is in a function header but not in a procedure header?






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






44. Delimiters: The association operator.






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






46. DynSQL: The standard package that does dynamic SQL.






47. IDs: List the two types of user-defined identifiers.






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






49. Term for a character literal with zero characters.






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