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. The PL/SQL preprocessor passes ______ code to the compiler.






2. Declare a cursor c with no parameters or return type.






3. Exceptions: An exception raised inside an _______ _______ propagates immediately to the enclosing block






4. Keyword for doing assignment to a variable with SELECT.






5. Exceptions: The keyword that begins an exception handler.






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






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






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






9. 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


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






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






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






13. Abbreviation of definer's rights






14. The 2 characters that begin all inquiry directives.






15. Conversion: Implicit conversion can be (faster / slower) than explicit conversion.






16. A GOTO cannot branch into an...






17. Delimiters: Host variable indicator.






18. What is the exception that is implicitly raised in a CASE statement with no ELSE clause?






19. DynSQL: EXECUTE IMMEDIATE does both dynamic SQL and dynamic _______.






20. Triggers and views always have _________ rights.

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


21. Declare a constrained subtype of NUMBER called N that is not null.






22. Exceptions: If there is no handler for an exception - PL/SQL returns an ________ exception error to the invoker or host environment.






23. A (simple / searched) CASE statement begins with CASE <expression>.






24. I/O: The PL/SQL I/O packages (can/cannot) accept input directly from the keyboard.






25. Web: PL/SQL _______ enables a Web browser to invoke a PL/SQL stored subprogram through an HTTP listener.






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






27. IDs: The 3 non-alphanumeric characters that can be in an ordinary user-defined identifier.






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






29. Types of blocks: A pl/sql block that is not stored in the database.






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






31. Types: One of the scalar data types specific to PL/SQL: P________






32. Delimiters: Statement terminator.






33. Triggers: By default - a trigger is created in the ______ state.






34. Cursors: WHERE _______ ______ makes an UPDATE or DELETE apply to the current row of a cursor.






35. Statement to exit a cursor loop on cursor cGo when there are no more records.






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






37. Triggers: Unlike a stored procedure - you can enable and _____ a trigger.






38. Type: An ________ subtype has all the values of its base type.






39. Cursors: Give the statement to close cursor C.






40. GOTO branches to a ________.






41. Declare a number variable - A - initialized to 10.






42. True encryption is done with package __________.






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






44. Types: A ______ has the same valid operations as its base type.






45. The command used to populate PLSQL_CCFLAGS.






46. The $IF must evaluate a ______ _______ expression.






47. Delimiters: The remote access symbol.






48. CREATE TYPE cannot be used for _______ array types.






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






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