Multiple Choice
Which of the following code fragments would not raise an error?
A) BEGIN
WHILE lv_cnt_num <= 5
DBMS_OUTPUT.PUT_LINE(lv_cnt_num) ;
Lv_cnt_num := lv_cnt_num + 1;
END LOOP;
END;
B) BEGIN
WHILE lv_cnt_num <= 5
DBMS_OUTPUT.PUT_LINE(lv_cnt_num) ;
Lv_cnt_num := lv_cnt_num + 1;
END;
C) BEGIN
WHILE lv_cnt_num <= 5 LOOP
DBMS_OUTPUT.PUT_LINE(lv_cnt_num) ;
Lv_cnt_num := lv_cnt_num + 1;
END LOOP;
D) BEGIN
WHILE lv_cnt_num <= 5 LOOP
DBMS_OUTPUT.PUT_LINE(lv_cnt_num) ;
Lv_cnt_num := lv_cnt_num + 1;
END LOOP;
END;
Correct Answer:

Verified
Correct Answer:
Verified
Q29: The _ loop is constructed with conditions
Q30: When an IF statement checks only one
Q31: Even though the EXIT clause can be
Q32: With respect to processing efficiency, the less
Q33: The common data types used for <u>cursor</u>
Q35: Which of the following allow us to
Q36: Which of the following initializes the variable
Q37: Which of the following lines of code
Q38: _ are used to change the values
Q39: The simple IF statement performs an action