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 6 Question 102 Discussion

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

What is the output of the following code?

function ratio ($x1 = 10, $x2)

{

if (isset ($x2)) {

return $x2 / $x1;

}

}

echo ratio (0);

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Ula
3 days ago
I think the function will return 0 since $x2 is passed as 0, but I'm not entirely sure about the default value of $x1.
upvoted 0 times
...

Save Cancel