nerdexam
Zend

200-530 · Question #415

Consider the following PHP script: <html> <head> <title> Zend 200-530 Exam This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.7) * 10); ?> </body> </html> What will be the…

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

Question

Consider the following PHP script: <html> <head> <title> Zend 200-530 Exam This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.7) * 10); ?> </body> </html> What will be the output of the PHP script?

Exhibit

200-530 question #415 exhibit

Options

  • AThe PHP script will return an error message.
  • B7
  • C10
  • D8

How the community answered

(31 responses)
  • A
    16% (5)
  • B
    74% (23)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice