Solved

Which of the Following Code Fragments Would Not Raise an Error

Question 50

Multiple Choice

Which of the following code fragments would not raise an error?


A) DECLARE
V_amt1 number(5,2) ;
V_amt2 number(3,0) ;
BEGIN
V_amt1 := 32.50;
V_amt2 := ROUND(v_amt1)
DBMS_OUTPUT.PUT_LINE(v_ amt2) ;
END;
B) DECLARE
V_amt1 number(5,2) ;
V_amt2 number(3,0) ;
BEGIN
V_amt1 := 32.50;
V_amt2 := ROUND(v_amt1,1) ;
DBMS_OUTPUT.PUT_LINE(v_ amt2) ;
END;
C) DECLARE
V_amt1 number(5,2) ;
V_amt2 number(3,0) ;
BEGIN
V_amt1 := 32.50;
V_amt2 := ROUND v_amt1, 2;
DBMS_OUTPUT.PUT_LINE(v_ amt2) ;
END;
D) DECLARE
V_amt1 number(5,2) ;
V_amt2 number(3,0) ;
BEGIN
V_amt1 := 32.50;
V_amt2 := ROUND[v_amt1,0];
DBMS_OUTPUT.PUT_LINE(v_ amt2) ;
END;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions