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 4 Question 77 Discussion

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

What is the output of the following code?

echo 0x33, ' monkeys sit on ', 011, ' trees.';

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Paola
4 months ago
Yeah, A is the right answer for sure!
upvoted 0 times
...
Goldie
4 months ago
Not sure about that, isn't 011 just 9 in decimal?
upvoted 0 times
...
Tien
4 months ago
Wait, how does 0x33 equal 33?
upvoted 0 times
...
Paris
5 months ago
I thought it would be B at first, but A makes more sense.
upvoted 0 times
...
Malissa
5 months ago
It's definitely A, 33 monkeys sit on 11 trees.
upvoted 0 times
...
Lynelle
5 months ago
I feel like the output should be straightforward, but I'm confused about how the numbers are being interpreted.
upvoted 0 times
...
Willis
5 months ago
I remember that `0x33` equals 51, but I can't recall how `011` converts. Could it be 9?
upvoted 0 times
...
Delila
5 months ago
I'm not sure about the `011` part. Is it octal? I feel like I've seen something similar in practice questions.
upvoted 0 times
...
Lajuana
6 months ago
I think the `0x33` is a hexadecimal number, so it should output 51, right?
upvoted 0 times
...
Emmett
6 months ago
Easy peasy! The hex value 0x33 is 51, and the octal value 011 is 9. So the output will be "51 monkeys sit on 9 trees."
upvoted 0 times
...
Pilar
6 months ago
Okay, I think I've got this. The hex value 0x33 is 51 in decimal, and the octal value 011 is 9 in decimal. So the output should be "51 monkeys sit on 9 trees."
upvoted 0 times
...
Craig
6 months ago
Hmm, I'm a bit confused by the mixed number formats. I'll need to double-check my understanding of how PHP handles different number representations.
upvoted 0 times
...
Erick
6 months ago
This looks like a tricky one. I'll need to carefully parse the hex and octal values to figure out the output.
upvoted 0 times
...
Jacklyn
1 year ago
I'm not sure, but I think the answer is B) 51 monkeys sit on 9 trees.
upvoted 0 times
...
Craig
1 year ago
I agree with Paulina, because 0x33 is equivalent to 51 in decimal and 011 is equivalent to 9.
upvoted 0 times
...
Dolores
2 years ago
Hmm, this is a tricky one. I'm leaning towards B, but I might need to phone a friend to be sure.
upvoted 0 times
...
Luke
2 years ago
C is the funniest answer, though not the right one. Where's the fun in just printing the numbers?
upvoted 0 times
Nina
1 year ago
C) monkeys sit on trees.
upvoted 0 times
...
Elly
1 year ago
B) 51 monkeys sit on 9 trees.
upvoted 0 times
...
Lajuana
1 year ago
A) 33 monkeys sit on 9 trees.
upvoted 0 times
...
...
Paulina
2 years ago
I think the output is A) 33 monkeys sit on 11 trees.
upvoted 0 times
...
Lyndia
2 years ago
D is the answer for sure. Hex and octal literals are printed as is, no conversion. I aced this type of question in my last exam!
upvoted 0 times
Ricarda
1 year ago
Nice job acing that type of question in your last exam!
upvoted 0 times
...
Azalee
1 year ago
You're correct, D is the answer. Hex and octal literals are printed as is.
upvoted 0 times
...
Fannie
1 year ago
No, it's D) 0x33 monkeys sit on 011 trees.
upvoted 0 times
...
Andree
2 years ago
I think it's A) 33 monkeys sit on 11 trees.
upvoted 0 times
...
...
Felix
2 years ago
Option B seems correct, but I'm unsure about the hex and octal conversion. I'll have to double-check my notes on that.
upvoted 0 times
Dierdre
2 years ago
I'm not sure about the hex and octal conversion either. Let's review our notes.
upvoted 0 times
...
Truman
2 years ago
I think it's A) 33 monkeys sit on 11 trees.
upvoted 0 times
...
...

Save Cancel