Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCAP-31-03 Topic 1 Question 51 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 51
Topic #: 1
[All PCAP-31-03 Questions]

What is the expected behavior of the following code?

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

Alecia
16 hours ago
Hmm, I think the answer is D. The code looks like it's adding the digits together, so the output should be 6.
upvoted 0 times
...
Tennie
6 days ago
Whoa, what kind of sorcery is this? I bet it raises an exception, because how can you just reverse the order of digits like that?
upvoted 0 times
...
Ona
14 days ago
I see your point, but I think the code will output 321, so my answer is C).
upvoted 0 times
...
Ollie
16 days ago
I disagree, I believe the answer is B) it raises an exception.
upvoted 0 times
...
Florinda
19 days ago
I'm pretty sure the answer is C. The code looks like it's reversing the order of the digits, so the output should be 321.
upvoted 0 times
...
Ona
20 days ago
I think the answer is A) It outputs 123.
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