1z0-149 Exam QuestionsBrowse all questions from this exam

1z0-149 Exam - Question 48


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

Show Answer
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

5 comments
Sign in to comment
jfc1Option: B
Jul 6, 2023

B is correct But C gives the same result

Goto10
Jul 20, 2023

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.

Arth1989Option: B
Mar 21, 2024

Tested - B. Error means successful message from the exception

90e49c7Option: A
Jan 4, 2024

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

McromeoOption: B
May 10, 2024

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

izn0g00dOption: B
Jul 16, 2024

tested B