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. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.






2. The statement that is used to execute most (native) dynamic SQL.






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






4. DBMS_DDL.WRAP returns a string containing wrapped _____ _____.






5. The three possible values of a BOOLEAN literal.






6. A ___________ behaves like a table column - but it is not stored in the table.






7. Default file extension of wrap's output file.






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






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






10. DynSQL: EXECUTE IMMEDIATE can be used for any SQL statement or PL/SQL block - except for ________ queries.






11. Fundamental: Maximum string length of a PL/SQL variable.






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






13. Abbreviation of definer's rights






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






15. DynSQL: The clause that receives single-row query output from EXECUTE IMMEDIATE.






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






17. A national character literal is composed of characters in the ________ character set.






18. The compiler directive governing conditional compilation.






19. Nested tables are multisets - meaning that there is no inherent _____ of their elements.






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






21. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.






22. Declare a cursor c with no parameters - and return type rC.






23. PLSQL_CCFLAGS hold a comma-separated list of ______ pairs (hyphenated).






24. Fundamental: What is the exponentiation operator?






25. The PL/SQL virtual machine turns bytecode into system ______.






26. You can put a label before any executable PL/SQL _________.






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






28. Declare an input NUMBER parameter - v2 - that defaults to 20.






29. IDs: You cannot use reserved words as ______ user-defined identifiers.






30. Command used to execute dynamic SQL.






31. Triggers: The clause to make a trigger run once for every affected row.






32. A GOTO cannot branch into a...






33. Cursors: If you use an EXIT statement to exit a cursor FOR loop prematurely - the cursor (is / is not) closed automatically.






34. The variable showing the user id that is automatically prepended to object names.






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






36. Exceptions: Type ______ to re-raise the current exception.






37. An anonymous block always has _________ rights.

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


38. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';






39. You can define PL/SQL collections using TYPEs defined in the _______.






40. Make a FOR loop that executes NULL 10 times counting in reverse - using index i.






41. The method to add one or more elements to a nested table or VARRAY is ______.






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






43. Language that PL/SQL is derived from.






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






45. Exceptions: An unhandled exception ________ to the enclosing block.






46. DynSQL: Native Dynamic SQL






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


48. You can have many autonomous transactions in ___________.






49. What clause makes a compilation default to the PLSQL_CCFLAGS settings from the last compilation?






50. Fundamental: Character used to escape a single quote inside a literal.

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