BlackFriday 2024! 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 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:

Jacklyn
1 months ago
I'm not sure, but I think the answer is B) 51 monkeys sit on 9 trees.
upvoted 0 times
...
Craig
2 months ago
I agree with Paulina, because 0x33 is equivalent to 51 in decimal and 011 is equivalent to 9.
upvoted 0 times
...
Dolores
2 months 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 months ago
C is the funniest answer, though not the right one. Where's the fun in just printing the numbers?
upvoted 0 times
Nina
29 days ago
C) monkeys sit on trees.
upvoted 0 times
...
Elly
1 months ago
B) 51 monkeys sit on 9 trees.
upvoted 0 times
...
Lajuana
1 months ago
A) 33 monkeys sit on 9 trees.
upvoted 0 times
...
...
Paulina
2 months ago
I think the output is A) 33 monkeys sit on 11 trees.
upvoted 0 times
...
Lyndia
2 months 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
21 days ago
Nice job acing that type of question in your last exam!
upvoted 0 times
...
Azalee
22 days ago
You're correct, D is the answer. Hex and octal literals are printed as is.
upvoted 0 times
...
Fannie
1 months ago
No, it's D) 0x33 monkeys sit on 011 trees.
upvoted 0 times
...
Andree
2 months ago
I think it's A) 33 monkeys sit on 11 trees.
upvoted 0 times
...
...
Felix
2 months 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 months ago
I'm not sure about the hex and octal conversion either. Let's review our notes.
upvoted 0 times
...
Truman
2 months ago
I think it's A) 33 monkeys sit on 11 trees.
upvoted 0 times
...
...

Save Cancel