Exam 1z0-149 All QuestionsBrowse all questions from this exam
Question 48

Which block of code displays the error message “Incorrect price value”?

    Correct Answer: B

    The code block that displays the error message 'Incorrect price value' is the one that properly raises and handles the exception for this specific error. Block 'B' includes the necessary exception handling to output the specified error message, which is why it is the correct choice.

Discussion
Arth1989Option: B

Tested - B. Error means successful message from the exception

jfc1Option: B

B is correct But C gives the same result

Goto10

No, C does not give the same result. Not only it (re)named ORA-02001: user SYS is not permitted to create indexes with freelist groups, but also is out of scope for outer exception handler.

izn0g00dOption: B

tested B

McromeoOption: B

B because exception raised in declarative section must be handle in a superior bloc

90e49c7Option: A

C is wrong because negative error code should be in the range -20000 .. -20999