nerdexam
Zend

200-550 · Question #67

200-550 Question #67: Real Exam Question with Answer & Explanation

The correct answer is D. A warning, because $x2 is not set. See the full explanation below for the reasoning.

Question

What is the output of the following code? function ratio ($x1 = 10, $x2) { if (isset ($x2)) { return $x2 / $x1; } } echo ratio (0);

Options

  • A0
  • BAn integer overflow error
  • CA warning, because $x1 is not set
  • DA warning, because $x2 is not set
  • EA floating-point overflow error
  • FNothing

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice
What is the output of the following code? function ratio ($x1 =... | 200-550 Q#67 Answer | NerdExam