Multiple Choice
Which of the following code fragments would not raise an error?
A) BEGIN
FOR i IN 1..10 LOOP
DBMS_OUTPUT.PUT_LINE(i) ;
END LOOP;
END;
B) BEGIN
FOR i IN 1..10 LOOP
DBMS_OUTPUT.PUT_LINE(c)
END LOOP
END;
C) BEGIN
FOR i IN 1..10
DBMS_OUTPUT.PUT_LINE(i) ;
END LOOP;
END;
D) BEGIN
FOR i IN 1..10 LOOP
DBMS_OUTPUT.PUT_LINE
END LOOP
END;
Correct Answer:

Verified
Correct Answer:
Verified
Q6: When an IF statement checks only one
Q7: The following loop iterates four times.<br>BEGIN<br>WHILE lv_cnt_num
Q8: The following code fragment is a correct
Q9: FOR i IN 1..tbl_roast.COUNT LOOP lv_tot_num :=
Q10: A(n) <u>scalar</u> variable can hold only a
Q12: The keyword DEFAULT can be used in
Q13: What is the purpose of the BEGIN
Q14: DECLARE order NUMBER(2) := 4;<br>Total_amt NUMBER(2);<br>BEGIN<br>Total_amt :=
Q15: The term anonymous blocks refers to blocks
Q16: The <u>DECLARE </u>section of the PL/SQL block