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-909 Topic 11 Question 44 Discussion

Actual exam question for Oracle's 1Z0-909 exam
Question #: 44
Topic #: 11
[All 1Z0-909 Questions]

Examine these lines of Python code:

You must add a line of code to complete the code to return data to the variable d. Which line will do this?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Marget
3 months ago
I think the answer is E because fetchall returns all rows of a query result.
upvoted 0 times
...
Isadora
3 months ago
I'm not sure, but I think it might be A.
upvoted 0 times
...
Jody
3 months ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Jennifer
3 months ago
I think the answer is B.
upvoted 0 times
...
Novella
3 months ago
Hmm, this is a trick question. The correct answer is actually Option F - Cursor.fetchall() with the parameters passed in. Gotta love those database shenanigans!
upvoted 0 times
...
Johnna
3 months ago
Wait, why are we even talking about cursors and databases? This is Python, not SQL! I'd just use a simple list comprehension. Option E is way too complicated.
upvoted 0 times
Tennie
2 months ago
I agree, option B looks like it will complete the code correctly.
upvoted 0 times
...
Levi
3 months ago
I think option B is the correct one.
upvoted 0 times
...
...
Alaine
3 months ago
I think the answer is E because fetchall returns all rows of a query result.
upvoted 0 times
...
Glendora
3 months ago
I'm going with Option E. fetchall() will return all the rows as a list, which is what I'd expect to get stored in d.
upvoted 0 times
...
Thersa
4 months ago
Option B looks good to me. Passing the parameters to the execute() method seems like the right way to get the data back.
upvoted 0 times
Skye
3 months ago
Great, let's go with option B then.
upvoted 0 times
...
Noemi
3 months ago
Yes, option B is the way to go to get the data back.
upvoted 0 times
...
Elvera
3 months ago
Yes, option B is the one that will return data to the variable d.
upvoted 0 times
...
Cecily
3 months ago
I agree, passing the parameters to the execute() method seems like the right approach.
upvoted 0 times
...
Chan
3 months ago
I agree, passing the parameters to the execute() method seems like the right approach.
upvoted 0 times
...
Pearline
3 months ago
I think option B is the correct one.
upvoted 0 times
...
Audria
3 months ago
I think option B is the correct one.
upvoted 0 times
...
...
Malcolm
4 months ago
I'm not sure, but I think it might be A.
upvoted 0 times
...
Kaitlyn
4 months ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Marshall
4 months ago
I think the answer is B.
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