What Will Be The Output Of The Following Plsql Codep Pre #494
What will be the output of the following PL/SQL code?</p> <pre><code class="language-sql">DECLARE a integer := 30; b integer := 40; c integer; d real; BEGIN c := a + b; dbms_output.put_line('Value of c: ' || c); d := 70.0/3.0; dbms_output.put_line('Value of d: ' || d); 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 Data Types and Variables - PL/SQL Variables - Quiz No.1.
What will be the output of the following PL/SQL code?
DECLARE a integer := 30; b integer := 40; c integer; d real; BEGIN c := a + b; dbms_output.put_line('Value of c: ' || c); d := 70.0/3.0; dbms_output.put_line('Value of d: ' || d); END; /
Value of c: 70 Value of d: 23.333333333333333333Value of c: 70 Value of d: 23.333333333333333333 PL/SQL procedure successfully completed.Value of c: 70 Value of d: 23 PL/SQL procedure successfully completed.Value of c: 70.000000000000000000 Value of d: 23.333333333333333333 PL/SQL procedure successfully completed.