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 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
1 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
1 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
8 days ago
D) 22.000000
upvoted 0 times
...
Royce
13 days ago
C) 022.000000
upvoted 0 times
...
Reita
17 days ago
B) 22.00
upvoted 0 times
...
Jillian
20 days ago
D) 22.000000
upvoted 0 times
...
Lavonda
28 days ago
C) 022.000000
upvoted 0 times
...
Yvonne
28 days ago
A) 22
upvoted 0 times
...
Tandra
29 days ago
B) 22.00
upvoted 0 times
...
Milly
1 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
2 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
21 days ago
I believe it will print 022.000000
upvoted 0 times
...
Lovetta
23 days ago
I'm not sure, but I think it will print 22.00
upvoted 0 times
...
Joaquin
29 days ago
I think it will print 22.000000
upvoted 0 times
...
...
Nickolas
2 months ago
This is too easy. The answer is clearly C. Who even needs to think about this?
upvoted 0 times
...
Peter
2 months ago
I believe it will print D) 22.000000
upvoted 0 times
...
Adolph
2 months ago
I think the answer is C) 022.000000
upvoted 0 times
...
Julio
2 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
2 months ago
Definitely C! That's the only option that matches the formatting specified in the function call.
upvoted 0 times
Brynn
30 days ago
D) 22.000000
upvoted 0 times
...
Wilda
1 months ago
C) 022.000000
upvoted 0 times
...
Sue
1 months ago
B) 22.00
upvoted 0 times
...
Lachelle
1 months ago
A) 22
upvoted 0 times
...
...

Save Cancel