Question: What will be displayed when the following code is executed? DECLARE varA NUMBER : = 1 2 ; BEGIN DECLARE varB NUMBER : = 8

What will be displayed when the following code is executed?
DECLARE
varA NUMBER :=12;
BEGIN
DECLARE
varB NUMBER :=8;
BEGIN
varA := varA + varB;
END;
DBMS_OUTPUT.PUT_LINE(varB);
END;
8
VarB
Nothing, the block will fail with an error
20
12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!