exam questions

Exam 1z0-149 All Questions

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

Exam 1z0-149 topic 1 question 14 discussion

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

Examine this table in the SH schema:

Now, examine this code:

Which two changes are required to ensure that PDT_REPORT executes successfully? (Choose two.)

  • A. In line 1, change IN OUT mode to IN mode.
  • B. In line 2, change IN OUT mode to IN mode.
  • C. In line 3, replace CUR_PRICE with P_PDT_PRICE in the query condition.
  • D. In line 1, add the default parameter DEFAULT 2000.
  • E. In line 6, replace P_PDT_PRICE parameter name with CUR_PRICE.
  • F. In line 2, add the default parameter DEFAULT 2000.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
abdullah_barham
Highly Voted 1 year, 4 months ago
Selected Answer: AB
Only IN type Parameter can take default value : the Answer Will be A + B
upvoted 8 times
...
erykjuarez
Most Recent 5 months ago
Only IN type parameter can take default value, parameterized cursors only can execute with IN parameters. Answer B+F its correct --correct create or replace procedure proc1 (p1 in number default null) is cursor c_emp(p_employee_id number default 20000) is select * from employees where employee_id = p_employee_id; begin dbms_output.put_line('error'); open c_emp(100); end;
upvoted 1 times
...
thranduyl
8 months ago
No change is necessary. I tested.
upvoted 1 times
...
egznrd
10 months, 3 weeks ago
Three options: 1 - no changes; 2 - A,B (most logical); 3 - B, C. If D is selected, then two more changes are needed - A and B.
upvoted 1 times
...
TheOracleWasTaken
11 months ago
Selected Answer: AB
I mean as the other guy says this works without changing anything But since you're not modifying the p_pdt_price just keep it as in. And also not like you're gonna change the cursor parameter so also keep it as in
upvoted 1 times
...
Goto10
1 year, 1 month ago
if I run it as follows, then no change is required: declare l_number number := 104; begin pdt_report(l_number); end; /
upvoted 1 times
...
sorincirnu
1 year, 2 months ago
Selected Answer: BC
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