Exam number:200-500
Exam name: Zend PHP 5 Certification
Vendor:zend
question and answers:219 Q&A
latest update: August 18th 2009( With the Q&Aupdate, the time is also changing)
7. Identify the security vulnerability in the following example:
1 <?php
2 echo "Welcome, {$_POST['name']}.";
3 ?>
A. SQL Injection
B. Cross-Site Scripting
C. Remote Code Injection
D. None of the above
Answer: B
8. 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);
A. 3
B. 4
C. 5
D. 6
Answer: C
9. When a class is defined as final it:
A. Can no longer be extended by other classes.
B. Means methods in the class are not over-loadable.
C. Cannot be defined as such, final is only applicable to object methods.
D. Is no longer iteratable.
Answer: A
Tags:
Post comment:
◎welcome to give out your point。