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:
Verified
Q34: Which of the following correctly creates a
Q35: The term _ is identified with a
Q36: _ refer to the arguments that are
Q37: Deleting a program unit can be accomplished
Q38: The following code is an example of
Q40: All of the following are purity level
Q41: What are the main differences between a
Q42: The _ command is used to view
Q43: The task of the _ function is
Q44: Discuss the techniques available in PL/SQL for
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents