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. Type: A __________ subtype has only a subset of the values of its base type.






2. Define a record type REC with number num and varchar2(10) name.






3. Cursors: The SQL%FOUND attribute has how many possible values?






4. For an associative array - the FIRST method gets the (lowest / first-created) index.






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






6. The compiler directive governing conditional compilation.






7. Fundamental: identifiers (include/do not include) reserved words.






8. This is a CASE (expression / statement): myvar := CASE num WHEN 1 THEN 'good' WHEN 2 THEN 'bad' END;






9. Conversion: Just about everything will implicitly convert to _____ or _________.






10. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.






11. Two types of stored subprograms.






12. Cursors: Opening keyword of a cursor FETCH loop.






13. Cursors: Give the statement to open cursor C that takes parameter p.






14. Triggers: An INSTEAD OF trigger is (always/never) a row-level trigger.






15. Triggers: In a per-row trigger - the ____ record shows you the changed state of an affected row.






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






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






18. Cursors: The keyword that makes a ref cursor type STRONG.






19. Declare a variable r whose type is that of the records in table t.






20. Bulk: The use of FORALL statements cuts down on ______ traffic.






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






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






23. Fundamental: What is the exponentiation operator?






24. _________ exceptions can not be trapped with an error handler






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






26. Exceptions: The built-in procedure for raising an application-defined error.






27. DynSQL: Native Dynamic SQL






28. What is the simplest statement for conditionally getting out of simple loop?






29. Delimiters: Item separator.






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






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






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






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






34. Set flag bb true: ALTER SESSION SET PLSQL_CCFLAGS= '____'






35. A type of compiler directive - begins with 'e'.






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


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






38. Characters that begin a single-line comment.






39. Declare an unconstrained subtype of NUMBER called NUMB.






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






41. List the transaction control statements.






42. Types of blocks: Procedures and functions are _______ blocks.






43. A GOTO cannot branch into a...






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






45. In a FORALL loop - you (can / cannot) use the index variable for purposes other than indexing into the collection.






46. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.






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






48. Exceptions: Some internal exceptions have ________ names.






49. Delimiters: Host variable indicator.






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