Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-149 Topic 13 Question 35 Discussion

Actual exam question for Oracle's 1Z0-149 exam
Question #: 35
Topic #: 13
[All 1Z0-149 Questions]

Examine the structure of the ora1.depts table:

Now, examine these statements issued by user ora1 which execute successfully:

Create or replace view dep_vu as select * from depts;

Alter table depts add dep_email varchar2(20);

Finally, examine this block of code executed by user ora1:

Which is true?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Stephane
3 months ago
Haha, I bet the answer is C. That's the classic 'gotcha' where you think it should work, but the table structure changed and the view is now out of sync.
upvoted 0 times
...
Harrison
3 months ago
Wait, the table depts was altered by adding a new column. Doesn't that mean the view needs to be recompiled? I'm not sure the code will run without an error.
upvoted 0 times
Jesse
2 months ago
Correct, the view needs to be recompiled for the code to run successfully.
upvoted 0 times
...
Lisandra
2 months ago
I think the code will result in an error because of the alteration.
upvoted 0 times
...
Nohemi
2 months ago
Yes, altering the table depts requires the view to be recompiled.
upvoted 0 times
...
Karol
2 months ago
DEP_VU must be manually recompiled to successfully run this code.
upvoted 0 times
...
...
Brittney
3 months ago
I think the view needs to be recompiled, so A is the answer.
upvoted 0 times
...
Aileen
3 months ago
I believe the correct answer is D.
upvoted 0 times
...
Bobbye
3 months ago
The view dep_vu was created, so the code should run successfully. It's just a matter of whether it produces a result of 4 or 5.
upvoted 0 times
Elfriede
2 months ago
B) It will run successfully producing a result of 4.
upvoted 0 times
...
Galen
3 months ago
A) DEP_VU must be manually recompiled to successfully run this code.
upvoted 0 times
...
...
Rasheeda
3 months ago
I agree with Viola, the table has been altered.
upvoted 0 times
...
Viola
3 months ago
I think the answer is C.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77