200-710 practice question 29 of 30
How many times will the function counter() be executed in the following code? function counter($start, &$stop) { if ($stop > $start) { return; }…
Choose your answer, then check it against the explanation.
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);
Question 29 of 30
Keep practicing
Take the free 200-710 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 200-710 practice questions
- Question 1What is the output of the following code? $a = 3; switch ($a) { case 1: echo 'one'; break…
- Question 2What is the output of the following code? $a = 'a'; $b = 'b'; echo isset($c) ? $a.$b.$c :…
- Question 3Which of the following methods are available to limit the amount of resources available t…
- Question 4What purpose do namespaces fulfill?
- Question 5What would be the output of the following code? namespace MyFramework\DB; class MyClass {…
- Question 6What is the output of the following code? class a { public $val; } function renderVal (a …
