Consider the following XML code:
Which of the following SimpleXML calls print the name of the second book?
(Let $xml=simplexml_load_file("books.xml");) (Choose 2)
After running this sort, what will be the value of $b?
$a = array('_!', 'def', 0);
$b = sort($a);
After performing the following operations:
$a = array('a', 'b', 'c');
$a = array_keys(array_flip($a));
What will be the value of $a?
Which of the following did not result in an output error in PHP 4 but does in PHP 5?
What is the name of the PHP function used to automatically load non-yet defined classes?
What will the following code piece print?
echo strtr('Apples and bananas', 'ae', 'ea')
You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this? (Choose 2)
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?
Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?
Which combination of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
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);
What will be the value of $b after running the following code?
$a = array('c', 'b', 'a');
$b = (array)$a;
What is the output of the following code?
1
2 for ($i = 0; $i < 1.02; $i += 0.17) {
3 $a[$i] = $i;
4 }
5 echo count($a);
6 ?>
Which of the following code snippets is correct? (Choose 2)
a)
interface Drawable {
abstract function draw();
}
b)
interface Point {
function getX();
function getY();
}
c)
interface Line extends Point {
function getX2();
function getY2();
}
d)
interface Circle implements Point {
function getRadius();
}
What will be the result of the following operation?
array_combine(array("A","B","C"), array(1,2,3));
Can a private static member be accessed from a public static method of the same class?
PHP's array functions such as array_values() and array_key_exists() can be used on an object if the object...
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
Is the following code piece E_STRICT compliant?
final class Testing {
private $test;
public function tester() {
return "Tested!";
}}
What is the content of $c after the following code has executed?
$a = 2;
$b = 3;
$c = ($a++ * ++$b);
Is the following code piece E_STRICT compliant?
final class Testing {
var $test = 0;
public function tester() {
return "Tested!";
}}
The constructs for(), foreach(), and each() can all be used to iterate an object if the object
PHP’s array functions such as array_values() can be used on an object is the oject….
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this?
Zend Certification | 200-530 Questions Answers | 200-530 Test Prep | Zend PHP 5.3 Certification Questions PDF | 200-530 Online Exam | 200-530 Practice Test | 200-530 PDF | 200-530 Test Questions | 200-530 Study Material | 200-530 Exam Preparation | 200-530 Valid Dumps | 200-530 Real Questions | Zend Certification 200-530 Exam Questions