exam questions

Exam 1z0-148 All Questions

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

Exam 1z0-148 topic 1 question 38 discussion

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

Examine this PL/SQL function:

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

  • A. There are no compilation warnings or errors.
  • B. It fails compilation.
  • C. An information compilation warning is generated.
  • D. A performance compilation warning is generated.
  • E. A severe 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
orakell
Highly Voted 5 years, 6 months ago
C, not E.
upvoted 9 times
...
chrishillinger
Most Recent 2 years, 9 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
CosminCof
4 years, 6 months ago
C correct
upvoted 1 times
...
GuyFabrice
4 years, 6 months ago
The correct answer is C Because the line "RETURN 99" generate the information compilation
upvoted 1 times
...
jcamt
4 years, 7 months ago
if you execute as command window with the command SHOW ERRORS display PLW-06002: Unreachable code, in SQL Window execute successfully
upvoted 1 times
...
gusa
4 years, 9 months ago
alter session set plsql_warnings = 'enable:all'; create or replace function compare_numbers(p1 number, p2 number) return number authid current_user is begin if p1 > p2 then return 1; elsif p1 < p2 then return -1; else return 0; end if; return 99; end; Function COMPARE_NUMBERS compilado LINE/COL ERROR --------- ------------------------------------------------------------- 14/5 PLW-06002: Código inaccesible
upvoted 2 times
...
Cariplo
5 years, 1 month ago
The correct answer is C, i have a warning generated (PLW-06002: Unreachable code) on line 7 while compiling
upvoted 2 times
...
kahabe59
5 years, 2 months ago
A seems right, no warnings generated at all
upvoted 1 times
...
DmitryPDN
5 years, 3 months ago
E also a correct answer since in ENABLE:ALL mode two warnings will be generated. One severe warning and one informational warning.
upvoted 1 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 ...