What Will Be The Output Of The Following Plsql Codep Pre #521
What will be the output of the following PL/SQL code?</p> <pre><code class="language-sql">DECLARE x number := 1; BEGIN LOOP dbms_output.put_line(x); x := x + 1; IF x > 3 THEN exit; END IF; END LOOP; dbms_output.put_line('After Exit x is: ' || x); END; /</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs115 Structured Query Language.
It can also be found in
gs gs115 PL/SQL Loops, Strings and Arrays - PL/SQL Loops - Quiz No.1.
What will be the output of the following PL/SQL code?
DECLARE x number := 1; BEGIN LOOP dbms_output.put_line(x); x := x + 1; IF x > 3 THEN exit; END IF; END LOOP; dbms_output.put_line('After Exit x is: ' || x); END; /
1 2 3 After Exit x is: 3 PL/SQL procedure successfully completed.1 2 3 4 After Exit x is: 4 PL/SQL procedure successfully completed.1 2 3 After Exit x is: 41 2 3 After Exit x is: 4 PL/SQL procedure successfully completed.