Cyber Monday 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 2 Question 78 Discussion

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

What will the following function call print?

printf('%010.6f', 22);

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Nieves
2 months ago
Ah, the age-old question: how many zeros can you fit in front of a number before it becomes a completely different number? The answer is 'as many as you want, as long as you're feeling lucky'.
upvoted 0 times
...
Rickie
2 months ago
Wait, why are we printing the value of '22' to 6 decimal places? Is this some kind of secret code to unlock the secrets of the universe?
upvoted 0 times
Youlanda
1 months ago
D) 22.000000
upvoted 0 times
...
Royce
1 months ago
C) 022.000000
upvoted 0 times
...
Reita
1 months ago
B) 22.00
upvoted 0 times
...
Jillian
1 months ago
D) 22.000000
upvoted 0 times
...
Lavonda
2 months ago
C) 022.000000
upvoted 0 times
...
Yvonne
2 months ago
A) 22
upvoted 0 times
...
Tandra
2 months ago
B) 22.00
upvoted 0 times
...
Milly
2 months ago
A) 22
upvoted 0 times
...
...
Tayna
2 months ago
I'm not sure, but I think it's A) 22
upvoted 0 times
...
Ozell
3 months ago
Hold on, is this a trick question? What if the function is actually supposed to print '22.000000' but the formatting is just really weird? I'll go with B, just to be safe.
upvoted 0 times
Natalie
1 months ago
I believe it will print 022.000000
upvoted 0 times
...
Lovetta
2 months ago
I'm not sure, but I think it will print 22.00
upvoted 0 times
...
Joaquin
2 months ago
I think it will print 22.000000
upvoted 0 times
...
...
Nickolas
3 months ago
This is too easy. The answer is clearly C. Who even needs to think about this?
upvoted 0 times
...
Peter
3 months ago
I believe it will print D) 22.000000
upvoted 0 times
...
Adolph
3 months ago
I think the answer is C) 022.000000
upvoted 0 times
...
Julio
3 months ago
I'm going with D. The function call is clearly asking for the value to be printed to 6 decimal places, and 22 is the correct answer.
upvoted 0 times
...
Rosann
3 months ago
Definitely C! That's the only option that matches the formatting specified in the function call.
upvoted 0 times
Brynn
2 months ago
D) 22.000000
upvoted 0 times
...
Wilda
2 months ago
C) 022.000000
upvoted 0 times
...
Sue
2 months ago
B) 22.00
upvoted 0 times
...
Lachelle
2 months ago
A) 22
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