What Will Be The Correct Output For The Following Plsql Codep #524
What will be the correct output for the following PL/SQL code?</p> <pre><code class="language-sql">DECLARE a number(1) := 1; BEGIN WHILE a <5 LOOP dbms_output.put_line('value of a: ' || a); a := a + 1; END LOOP; 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 correct output for the following PL/SQL code?
DECLARE a number(1) := 1; BEGIN WHILE a <5 LOOP dbms_output.put_line('value of a: ' || a); a := a + 1; END LOOP; END; /
value of a: 1 value of a:2 value of a:3 value of a: 4 PL/SQL procedure successfully completed.value of a: 1 value of a: 2 value of a: 3 value of a: 4value of a: 1 value of a: 2 value of a: 3 value of a: 4 value of a: 5 PL/SQL procedure successfully completed.value of a: 1 value of a: 2 value of a: 3 value of a: 4 value of a: 5