hiexam
oracle · 1z0-144 · Q602 · multiple_choice · topic_1

View the Exhibit to examine the PL/SQL code: //IMG// DECLARE - x NUMBER := 5; y NUMBER := NULL; BEGIN - IF x != y TH…

View the Exhibit to examine the PL/SQL code: //IMG// DECLARE - x NUMBER := 5; y NUMBER := NULL; BEGIN - IF x != y THEN yields NULL, not TRUE DBMS_OUTPUT.PUT_LINE(x != y); not run ELSIF x = y THEN also yields NULL DBMS_OUTPUT.PUT_LINE(x = y); ELSE - DBMS_OUTPUT.PUT_LINE - (Cant tell if x and y are equal or not.); END IF; END; / SREVROUPUT is on for the session. Which statement is true about the output of the PL/SQL block?
  • A.The output is x = y.
  • B.It produces an error.
  • C.The output is x != y.
  • D.The output is Can't tell if x and y are equal or not.
Explanation
The correct answer is D

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.