PLSQL Test 25-1
PLSQL Test 25-1
a) Only 1 is TRUE
b) Only 2 is TRUE
c) Both 1 & 2are TRUE
d) Both are FALSE
7. A Stored Procedure is a
a) Sequence of SQL or PL/SQL statements to perform specific function
b) Stored in compiled form in the database
c) Can be called from all client environmets
d) All of the above
15. Declare
a number := 5; b number := null; c number := 10;
Begin
if a > b AND a < c then
a := c * a;
end if;
End;
a) 50
b) NULL
c) 5
d) None of the above
16. Does the Database trigger will fire when the table is TRUNCATED ?
a) Yes
b) No
20. What is the difference between a stored procedure and a stored function in
PL/SQL?
22. Which PL/SQL loop is used to iterate over a range of values using a numeric
index?
a) FOR loop
b) WHILE loop
c) DO WHILE loop
d) LOOP loop
25. How can you log errors to a custom error log table in PL/SQL?