Identify the security vulnerability in the following example: <code> 1 <?php 2 echo "Welcome, {$
Identify the security vulnerability in the following example:
<code>
1 <?php
2 echo “Welcome, {$_POST[‘name’]}.”;
3 ?>
</code>
How many times will the function counter() be executed in the following code?
How many times will the function counter() be executed in the following code?
<code>
functioncounter($start, &$stop)
{
if($stop > $start)
{
return;
} counter($start–, ++$stop);
}
$start = 5;
$stop = 2;
counter($start, $stop);
</code>
When a class is defined as final it:
When a class is defined as final it:
Which parts of the text are matched in the following regular expression? <code> 1 <?
Which parts of the text are matched in the following regular expression?
<code>
1 <?php
2 $text = <<<EOT
3 The big bang bonged under the bung.
4 EOT;
5
6 preg_match_all(‘@b.n?g@’, $text, $matches);
7 ?>
</code>
Which of the following can be registered as entry points with a SoapServer instance (choose 3)
Which of the following can be registered as entry points with a SoapServer instance (choose 3)
What DOMElement method should be used to check for availability of a non-namespaced attribute?
What DOMElement method should be used to check for availability of a non-namespaced
attribute?
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PH
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by
value in PHP 4?
What is the content of $c after the following code has executed?
What is the content of $c after the following code has executed?
<code>
$a = 2;
$b = 3;
$c = ($a++ * ++$b);
</code>
What does that mean?
You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see
what it does and use the following function call:
strcasecmp(‘hello my dear!’, ‘Hello my DEAR!’);
The function call returns “0”. What does that mean?
REST is a(n) …
REST is a(n) …