exam questions

Exam 1z0-148 All Questions

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

Exam 1z0-148 topic 1 question 57 discussion

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

Consider a function totalEmp () which takes a number as an input parameter and returns the total number of employees who have a salary higher than that parameter.

Examine this PL/SQL package AS -

Which two definitions of totalEmp () result in an implicit conversion by Oracle Database on executing this PL/SQL block?

  • A. CREATE FUNCTION totalEmp (sal IN NUMBER) RETURN NUMBER IS total NUMBER :=0; BEGIN RETUNRN total; END; /
  • B. CREATE FUNCTION totalEmp (sal IN NUMBER) RETURN NUMBER IS total NUMBER :=0; BEGIN RETUNRN total; END; /
  • C. CREATE FUNCTION totalEmp (sal IN PLS_INTEGER) RETURN NUMBER IS total NUMBER :=0; BEGIN RETUNRN total; END; /
  • D. CREATE FUNCTION totalEmp (sal IN BINARY_FLOAT) RETURN NUMBER IS total NUMBER :=0; BEGIN RETUNRN total; END; /
  • E. CREATE FUNCTION totalEmp (sal IN POSITIVEN) RETURN NUMBER IS total NUMBER :=0; BEGIN RETUNRN total; END;
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
Rakeshpro
2 years, 4 months ago
NUMBER & POSITIVEN
upvoted 1 times
...
CosminCof
4 years, 4 months ago
A, B and E (A and B are identicall)
upvoted 1 times
...
orakell
5 years, 2 months ago
C is most certainly not one of the answers. A PLS_INTEGER will be implicitly converted to a NUMBER and a BINARY_FLOAT
upvoted 4 times
...
Tinamoran
5 years, 3 months ago
What is the difference between a and b?
upvoted 3 times
orakell
5 years, 2 months ago
I think one of those should say NATURAL or NATURALN. And the answer is incorrect on this also.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago