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

Zend 200-710 Exam - Topic 5 Question 20 Discussion

What will the following code piece print?echo strtr('Apples and bananas', 'ae', 'ea')
A) Applas end benenes
B) Epplas end benenes
C) Apples and bananas
D) Applas end bananas

Zend 200-710 Exam - Topic 5 Question 20 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 20
Topic #: 5
[All 200-710 Questions]

What will the following code piece print?

echo strtr('Apples and bananas', 'ae', 'ea')

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Claribel
11 months ago
I don't know, this seems off.
upvoted 0 times
...
Clare
11 months ago
No way, it's A for sure!
upvoted 0 times
...
Zana
11 months ago
Wait, are you sure? I thought it would be C.
upvoted 0 times
...
Leontine
11 months ago
Definitely A!
upvoted 0 times
...
Candra
11 months ago
It will print "Applas end bananas".
upvoted 0 times
...
Leonida
12 months ago
I thought the replacements would mix things up more, but I can't recall if it affects the same letters in one go. Is it D?
upvoted 0 times
...
Kindra
12 months ago
I'm not entirely sure, but I remember a similar question where it swapped letters. Could it be option A?
upvoted 0 times
...
Armanda
12 months ago
I think the `strtr` function replaces characters, so it should change 'a' to 'e' and 'e' to 'a'.
upvoted 0 times
...
Cecil
12 months ago
I feel like the output will still have 'Apples and bananas' unchanged, so maybe it's C?
upvoted 0 times
...
Jeannine
12 months ago
Wait, I'm a bit confused. Doesn't the last configured router ID take precedence? If so, then the answer should be 10.10.10.66, right?
upvoted 0 times
...
Trinidad
1 year ago
I've got a good feeling about option A, getJobStatus. That seems like the most appropriate method name for checking the status of an asynchronous operation. I'll mark that one down.
upvoted 0 times
...

Save Cancel