Free 200-550 Exam Braindumps (page: 22)

Page 21 of 56

What is the output of the following code?
function append($str)
{
$str = $str.'append';
}
function prepend(&$str)
{
$str = 'prepend'.$str;
}
$string = 'zce';
append(prepend($string));
echo $string;

  1. zceappend
  2. prependzceappend
  3. prependzce
  4. zce

Answer(s): C



CORRECT TEXT
What is the output of the following code?
function increment ($val)
{
$val = $val + 1;
}
$val = 1;
increment ($val);
echo $val;

  1. 1

Answer(s): A



CORRECT TEXT
What is the output of the following code?
function increment ($val)
{
++$val;
}
$val = 1;
increment ($val);
echo $val;

  1. 1

Answer(s): A



CORRECT TEXT
What is the output of the following code?
function increment ($val)
{
$_GET['m'] = (int) $_GET['m'] + 1;
}
$_GET['m'] = 1;
echo $_GET['m'];

  1. 1

Answer(s): A






Post your Comments and Discuss Zend 200-550 exam with other Community members:

200-550 Discussions & Posts