Which line(s) in the above code are NOT valid?

Examine the following partial declare section from a block of PL/SQL code
(Exhibit)

Which line(s) in the above code are NOT valid? (Choose all that apply.)

Examine the following partial declare section from a block of PL/SQL code

Which line(s) in the above code are NOT valid? (Choose all that apply.)

A.
line 2

B.
line 3

C.
line 4

D.
line 5



Leave a Reply 11

Your email address will not be published. Required fields are marked *


SP

SP

B and D are correct

P0

P0

B and D are correct.

B) Variable declared as NOT NULL must have initial value. It should be something like: v_total_wages v_wage%type := 500;
D) work_complete is CONSTANT

Luz REBOLLO

Luz REBOLLO

completely Agree with you mr P0

Manuel

Manuel

La respuesta correcta es la B y la D.
No se puede usar %TYPE con variables que fuero creadas como constantes o declaradas con el constaint NOT NULL.

Heena

Heena

correct answers are B and D.
We do not use %type with a constant.

Heena

Heena

B and D is the correct answer.
error would be v_wage must be a type and work_complete must be a type.

Ahmed

Ahmed

B and D are correct

%TYPE inherits constraints without values from attributes of PL/SQL

Leo Yu

Leo Yu

B and D are correct, the testing point is that %TYPE inherit the constraint of referening data type, thus B must have one initialized value to fit NOT NULL, and D must have one constant value.