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;
Answer(s): C
CORRECT TEXTWhat is the output of the following code?function increment ($val){$val = $val + 1;}$val = 1;increment ($val);echo $val;
Answer(s): A
CORRECT TEXTWhat is the output of the following code?function increment ($val){++$val;}$val = 1;increment ($val);echo $val;
CORRECT TEXTWhat is the output of the following code?function increment ($val){$_GET['m'] = (int) $_GET['m'] + 1;}$_GET['m'] = 1;echo $_GET['m'];
How many times will the function counter() be executed in the following code?function counter($start, &$stop){if ($stop > $start){return;}counter($start--, ++$stop);}$start = 5;$stop = 2;counter($start, $stop);
Post your Comments and Discuss Zend 200-550 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the 200-550 content, but please register or login to continue.