PLSQLQ
PLSQLQ
A)
B)
C)
D)
E)
F)
cursor CAPITALS is
select CITY, STATE
into my_city, my_state
from CITIES
where CAPITAL = 'Y';
There are no errors in these statements
ANS: c
2. In a PL/SQL block, a variable is declared as NUMBER without an initial value.
What will its value be when it is used in the executable section of the PL/SQL
block?
A) NULL
B) 0
C) Results in a compilation error
D) An exception will be raised
ANS : a
3. PL/SQL raises an exception, in which TWO of the following cases:
A)
B)
C)
D)
When
When
When
When
ANS: ab
4. What is the result if two NULL values are compared to each other?
A) TRUE
B) FALSE
C) Undefined
D) NULL
ANS:b
5. Functions for error trapping are contained in which section of a PL/SQL block
?
A) Header
B) Declarative
C) Executable
D) Exception
ANS : D
6. Which section of a PL/SQL block would most likely contain a RAISE statement?
A) Header
B) Declarative
C) Executable
D) Exception
ANS : D
7. Select the VALID trigger type(s)?
A) AFTER statement trigger
B) INSERT row trigger
C) DELETE row trigger
D) UPDATE row trigger
E) All of the above
F) None of the above
ANS: A
8. In this PL/SQL statement, which of the following lines will produce an error?