Google News
logo
PL/SQL - Quiz(MCQ)
What is the difference between Local & Global Variables?
A)
Variables in an outer block are defined as local variables since they cannot be accessed from the outside whereas the innermost block declares global variables.
B)
Variables in an inner block are defined as local variables since they cannot be accessed from the outside whereas the outermost block declares global variables.
C)
Variables in an outer block are defined as global variables since they can be accessed from the outside and the innermost block also declares global variables.
D)
Variables in an inner block are defined as global variables since they cannot be accessed from the outside whereas the outermost block declares local variables.

Correct Answer :   Variables in an inner block are defined as local variables since they cannot be accessed from the outside whereas the outermost block declares global variables.

Advertisement