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. If none of a CASE expression's conditions are TRUE - it returns _____.






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






3. Clause added to a cursor to use it with WHERE CURRENT OF.






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






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






6. Define a record variable r - of type tRec - initialized with values 9 and 'Jones' in its two fields.

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


7. DynSQL: The three modes of arguments in the USING clause of EXECUTE IMMEDIATE.






8. Mode designation for an input parameter.






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






10. Fundamental: One of the 4 types of lexical units: c_____.






11. Delimiters: Single-line comment marker.






12. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.






13. Exceptions: Start of the range of error codes for RAISE_APPLICATION_ERROR.






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






15. Web: mod_plsql is an _______ module.






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






17. I/O: The output from DBMS_OUTPUT will display (during/after) program execution.






18. The command used to populate PLSQL_CCFLAGS.






19. Dbms_sql: The return type DBMS_SQL.open_cursor.






20. IDs: Maximum number of bytes in a user-defined identifier.






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






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






23. In 11g you can directly reference _____________ in PL/SQL.






24. SIMPLE_INTEGER is like PLS_INTEGER - but it does not allow ____ values - and it does not raise overflow exceptions.






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






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






27. DynSQL: Maximum string length to pass to EXECUTE IMMEDIATE.






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






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






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






31. A result-cached function caches its results in the _____ _____ ____ (SGA)






32. Characters that begin a multi-line comment.






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






34. Give the first line of the FOR loop with index i going from 1 to 10 in reverse.






35. _____ arrays cannot be used as the type of an Oracle table column.






36. A FOR-loop counter is defined only within the _____.






37. The FORALL statement to loop over a collection MyList using index i.






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






39. To recompile a procedure - use the _____ ______ command.






40. Collections are one of the two kinds of PL/SQL _______ data types.






41. Triggers: The code in a trigger is actually an ________ block.






42. Delimiters: Item separator.






43. Unlike the CASE statement - the CASE expression does not have the...






44. I/O: If the current (outermost) PL/SQL block ends with an unhandled exception - the output buffer will not be ___________.






45. Cursors: The statement where you pass the parameters to a cursor.






46. Triggers: If two or more triggers are defined with the same timing point - then you can control the firing order using the ________ clause.






47. The LIMIT method is only meaningful for _______.






48. When a parameter is passed by reference - changes made to it inside the procedure cannot be undone. True/False.






49. Cursors: Define a ref cursor type called T.






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