Documentos de Académico
Documentos de Profesional
Documentos de Cultura
http://oracle-questions.blogspot.in/2008/01/pl-sql-interview-questions.html
20. You define a multiple-row subquery in the WHERE clause of an SQL query with a
comparison operator "=".What happens when the main query is executed?
A: The main query executes with the first value returned by the subquery.
B: The main query executes with the last value returned by the subquery.
C: The main query fails because the multiple-row subquery cannot be used with the
comparison operator.
D: You cannot define a multiple-row subquery in the WHERE clause of a SQL query.
25. __________ Exception will rise when you try to assign a variable into another
variable that is too small to hold it.
A: value_error
B: invalid_number
C: invalid_value_error
D: None of the above.
26. Which statement is true about packages?
A: A package can be called.
B: A package can be nested.
C: A package can be parameterized.
D: Package contents can be shared by multiple applications.
27. Where do you declare an EXPLICIT CURSOR in the PL/SQL language?
A: In the PL/SQL working storage section
B: In the PL/SQL declaration section
C: In the PL/SQL begin section
D: In the PL/SQL exception section
28. Examine the following PL/SQL code.
CREATE OR REPLACE TRIGGER Insert_Trigger AFTER INSERT ON
EMPLOYEES FOR EACH ROW BEGIN
:NEW.FIRST_NAME := UPPER
(:NEW.FIRST_NAME);
END;
/
A: :NEW psuedocolumn cannot be used in Trigger.
B: UPPER function cannot be used in Trigger.
C: The Trigger will execute properly.
D: The Trigger will raise an error.
29. All aggregate function ignores NULLs except for __________?
A: Sum(sal)
B: Count(*)
C: Avg(sal)
D: None of the above.
30. The data in a global temporary table are always ___________?
A: private
B: public
C: global
D: None of the above.