exam questions

Exam 1z0-149 All Questions

View all questions & answers for the 1z0-149 exam

Exam 1z0-149 topic 1 question 45 discussion

Actual exam question from Oracle's 1z0-149
Question #: 45
Topic #: 1
[All 1z0-149 Questions]

Examine this code:
ALTER SESSION SET plsql_warnings='ENABLE:ALL';
/
You compile this function:

What happens when the function is created with PLSQL_WARNINGS set to 'ENABLE: ALL'?

  • A. It fails compilation.
  • B. There are no compilation warnings or errors.
  • C. A severe compilation warning is generated.
  • D. A performance compilation warning is generated.
  • E. An information compilation warning is generated.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
VAJAM
5 months ago
Selected Answer: E
The PLW-06002: Unreachable code warning is an informational compilation warning, not a performance-related warning. It alerts the developer that there is code in the program that will never be executed due to the control flow, but it does not impact the performance of the compiled code.
upvoted 1 times
...
jm9999
1 year, 6 months ago
Selected Answer: E
6000-6249 for informational
upvoted 3 times
...
ghostwriter7
1 year, 6 months ago
E is correct. create or replace function get_val(x number, y number) return number authid definer is begin if x > y then return x; elsif y = x then return y; else return x + y; end if; return 100; end; Compiler displays a warning: PLW-06002: Unreachable code When: alter session set plsql_warnings = 'enable:informational'; Not when: alter session set plsql_warnings = 'enable:performance';
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago