Documente Academic
Documente Profesional
Documente Cultură
Review your answers, feedback, and question scores below. An asterisk (*) indicates
a correct answer.
Section 4 Quiz
(Answer all questions in this section)
EXIT j_loop
EXIT outerloop
Correct Correct
What should you code at Line A to exit from the outer loop?
Mark for Review
(1) Points
EXIT red;
EXIT;
Correct Correct
The outer loop is exited but the inner loop continues execution.
The inner loop is exited but the outer loop continues execution. (*)
Correct Correct
NULL
10 (*)
12
Correct Correct
Correct Correct
Page 1 of 3 Next Summary
Section 4 Quiz
(Answer all questions in this section)
6. What are the three kinds of loops in PL/SQL? Mark for Review
(1) Points
Correct Correct
adult (*)
teenager
child
adultteenagerchild
Correct Correct
8. What is wrong with the following trivial IF statement:
IF (v_job='President')
THEN v_salary := 10000;
ELSE is missing
Correct Correct
10. You want to assign a value to v_result which depends on the value
of v_grade: if v_grade = 'A' set v_result to 'Very Good' and so on.
DECLARE
v_grade CHAR(1);
v_result VARCHAR2(10);
BEGIN
v_result :=
CASE v_grade
Correct Correct
Section 4 Quiz
(Answer all questions in this section)
11. How must you end a CASE expression? Mark for Review
(1) Points
ENDCASE;
ENDIF;
END; (*)
END CASE;
Correct Correct
Undefined (*)
Equal
Unequal
Correct Correct
Correct Correct
Two lines
No lines
The block will fail because you cannot use DBMS_OUTPUT.PUT_LINE inside a
loop.
Correct Correct