Multiple choice technology

In a PL/SQL block, a variable is declared as NUMBER without an initial value. What will its value be when it is first used in the executable section of the PL/SQL block?

  1. NULL

  2. 0

  3. Results in a compilation error

  4. An Exception will be raised

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In PL/SQL, variables declared without an initial value are automatically initialized to NULL. This is standard PL/SQL behavior and differs from some other languages where uninitialized variables might have indeterminate values or cause errors.