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 8 Question 86 Discussion

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

What is the output of the following code?

echo "1" + 2 * "0x02";

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Charlie
29 days ago
Is this a test of my mental arithmetic skills or something? I'm just gonna guess... option A. Why not, right?
upvoted 0 times
Eleonora
16 days ago
User1: It's not option A, it's actually option E.
upvoted 0 times
...
...
Amira
1 months ago
Aha! I know this one. The answer is C, 5. Piece of cake!
upvoted 0 times
...
Angella
1 months ago
Whoa, wait a minute. Is this some kind of trick question? I'm gonna go with option E, just to be safe.
upvoted 0 times
...
Susana
2 months ago
A classic PHP gotcha! I'm going with option D. 20 all the way, baby!
upvoted 0 times
Jestine
21 days ago
Oh, I see. So the answer is E) 7. Thanks for the explanation!
upvoted 0 times
...
Blair
1 months ago
It's actually 7. PHP converts the string '0x02' to its hexadecimal value before multiplying.
upvoted 0 times
...
...
Chaya
2 months ago
Hmm, this is a tricky one. Let me think... Okay, I'm going with option B. It's gotta be 3, right?
upvoted 0 times
Thad
21 days ago
User 4: Me too, option B seems right.
upvoted 0 times
...
Lenna
25 days ago
User 3: I'm not sure, but I'll go with 3 as well.
upvoted 0 times
...
Regenia
26 days ago
User 2: Yeah, that makes sense.
upvoted 0 times
...
Dorothea
1 months ago
User 1: I think it's 3 too.
upvoted 0 times
...
...
Ty
2 months ago
I'm not sure, but I think the correct answer is C) 5 because 2 * 2 is 4 and adding 1 gives 5.
upvoted 0 times
...
Pearlie
2 months ago
I believe it's E) 7 because 2 * 0x02 is 4 in hexadecimal.
upvoted 0 times
...
Von
2 months ago
I think the answer is B) 3.
upvoted 0 times
...

Save Cancel