nerdexam
Zend

200-710 · Question #181

200-710 Question #181: Real Exam Question with Answer & Explanation

The correct answer is B. 1. See the full explanation below for the reasoning.

Question

What is the output of the following code?
for ($i = 0; $i < 1.02; $i += 0.1?) {
 $a[$i] = $i;
}
echo count ($a);

Options

  • A0
  • B1
  • C2
  • D6
  • E7

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice