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 Exam 200-710 Topic 2 Question 74 Discussion

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

What is the output of the following code?

echo "22" + "0.2", 23 . 1;

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Evangelina
1 months ago
Easy peasy, it's B) 22.2231. The string addition in the first part gives us 22.2, and the second part just concatenates 23 and 1 to give us the final result.
upvoted 0 times
...
German
2 months ago
Haha, this is a tricky one! I'm going to guess C) 22.2,231. The first part makes sense, but the second part seems to be throwing in a random comma. Classic programming humor!
upvoted 0 times
Melvin
1 days ago
I agree with you, C) 22.2,231 seems like a tricky option.
upvoted 0 times
...
Junita
2 days ago
I'm going with A) 220.2231 as my answer.
upvoted 0 times
...
Von
3 days ago
I think the correct answer is B) 22.2231.
upvoted 0 times
...
...
Jamal
2 months ago
I'm going with D) 56.2. The first part of the expression adds the two strings, which should result in 22.2, and the second part adds 23.0 to that, giving the final answer 56.2.
upvoted 0 times
...
Josue
2 months ago
The output is clearly B) 22.2231. The first part of the expression adds the two strings '22' and '0.2', resulting in the numeric value 22.2. The second part concatenates the integer 23 with the decimal 1, giving 23.1.
upvoted 0 times
Tandra
8 days ago
No, it's actually B) 22.2231
upvoted 0 times
...
Bette
1 months ago
I think the answer is A) 220.2231
upvoted 0 times
...
...
Franchesca
2 months ago
I'm not sure, but I think the answer is B) 22.2231 because the numbers are being treated as strings in the echo statement.
upvoted 0 times
...
Cristen
2 months ago
I agree with Samira, because the echo statement will concatenate the strings and output them as a single string.
upvoted 0 times
...
Samira
3 months ago
I think the output is B) 22.2231.
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