nerdexam
Zend

200-530 · Question #520

What will be the output of the following code snippet? <?php $a = 1; $b = 2; $c = 0xAF; $d = $b + $c; $e = $d * $b; $f = ($d + $e) % $a; print($f + $e); ?>

Sign in or unlock 200-530 to reveal the answer and full explanation for question #520. The question stem and answer options stay visible for context.

PHP Basics

Question

What will be the output of the following code snippet? <?php $a = 1; $b = 2; $c = 0xAF; $d = $b + $c; $e = $d * $b; $f = ($d + $e) % $a; print($f + $e); ?>

Options

  • A200
  • BThe script will throw an error message
  • C0
  • D354

Unlock 200-530 to see the answer

You've previewed enough free 200-530 questions. Unlock 200-530 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#hex literals#arithmetic operators#modulo#type casting
Full 200-530 Practice