Tuesday, 21 August 2012

30 TOP PL SQL Multiple Choice Questions and Answers for Freshers and Experienced

PL SQL Multiple Choice Questions and Answers for Freshers and Experienced
1. Which of the following statements is true about implicit cursors?
2. Which of the following is not a feature of a cursor FOR loop?
3. A developer would like to use referential datatype declaration on a variable. The variable name is EMPLOYEE_LASTNAME, and the corresponding table and column is EMPLOYEE, and LNAME, respectively. How would the developer define this variable using referential datatypes?
4. Which three of the following are implicit cursor attributes?
5. If left out, which of the following would cause an infinite loop to occur in a simple loop?
6. Which line in the following statement will produce an error?
7. The command used to open a CURSOR FOR loop is
8. What happens when rows are found using a FETCH statement
9. What is the maximum number of handlers processed before the PL/SQL block is exited when an exception occurs?
10. For which trigger timing can you reference the NEW and OLD qualifiers?
11. PL/SQL subprograms, unlike anonymous blocks, are compiled each time they are executed. 
12. Subprograms and anonymous blocks can be called by other applications. 
13. A nested subprogram can be called from the main procedure or from the calling environment. 
14. When modifying procedure code, the procedure must be re-executed to validate and store it in the database. 
15. Which of the following can be used as an argument for a procedure parameter? 
16. If you don't specify a mode for a parameter, what is the default mode? 
17. Which kind of parameters cannot have a DEFAULT value? 
18. What are the three parameter modes for procedures? 
19. Which one of the following statements about formal and actual parameters is true? 
20. What is the correct syntax to create procedure MYPROC that accepts two number parameters X and Y? 
21. Functions in PL/SQL are a collection of ________and PL/SQL statements that perform a task and should return a value to     the calling environment.
22. As a procedural language by definition, PL/SQL provides several iteration constructs, including basic LOOP statements, WHILE loops, ________, and Cursor FOR loops.
23. The StepSqlite product is a PL/SQL compiler for the popular small database ________.
24. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1),[1]     ________ (since version 9.7)[2].
25. The Fyracle project aims to enable the execution of PL/SQL code in the________ Firebird database.
26. PL/SQL (Procedural Language/Structured Query Language) is________'s procedural extension language for SQL and the     Oracle relational database.
27. PL/SQL functions analogously to the embedded procedural languages associated with other ________.
28. This resembles usages in object-oriented programming languages like________, C++ and Java.
29. The structure of a PL/SQL package closely resembles the basic Pascal program structure or a ________ unit.
30. What is the maximum number of ELSE clauses that can be included in an IF clause that is not nested? 

No comments: