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. You can use the BULK COLLECT INTO clause in a SELECT or a ______.






2. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.






3. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE






4. I/O: The most basic PL/SQL way to give output to the user.






5. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.






6. Types: Which type of arithmetic does PLS_INTEGER use - library or hardware?






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






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






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






10. Which two collection types are unbounded?






11. The RESULT_CACHE clause comes (before / after) the RETURN clause.






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






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






14. Kind of code created by the PL/SQL compiler.






15. I/O: This DBMS_OUTPUT proc retrieves multiple lines from the buffer.






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






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






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


19. Package for getting the postprocessed source of a program.






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






21. The Wrap utility ________ the source code.






22. Assignment of PLSQL_CCFLAGS (cannot / can) be included in ALTER PROCEDURE ... COMPILE ...






23. I/O: This package has hypertext functions that generate HTML tags






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






25. Declare a package procedure P with no arguments - and give it invoker's rights.






26. DynSQL: Native Dynamic SQL






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






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






29. For a collection - the NEXT method returns ____ when there is no next index value.






30. A large OUT or IN OUT parameter will waste a lot of space and CPU if it is passed by _____.






31. Dbms_sql: DBMS_SQL package is compiled with _______ rights.


32. Cursors: You give an explicit cursor a name and associate it with a _______.






33. A __________ can have an AUTHID property






34. Give the ANSI Date literal for December 25 - 2005.


35. The PL/SQL preprocessor passes ______ code to the compiler.






36. Fundamental: Which one of these is a simple symbol: a - = - !=






37. Fundamental: Delimiters are _____ and _____ symbols.






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






39. I/O: This package lets PL/SQL programs read and write OS files.






40. Cursors: A Cursor FOR loop does not use a ______ statement.






41. An autonomous program runs in its own __________.






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






43. A record is a group of related data items stored in fields - each with its own...






44. Triggers: On a non-editioning view - you can only define __________ triggers.






45. An ordinary character literal is composed of characters in the ________ character set.






46. The lowest index of a VARRAY is ___.






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






48. For a collection - the NEXT method gets the next higher (element / index).






49. Delimiters: The component indicator/selector.






50. How many times are a FOR loop's index bounds evaluated?