200-530 Exam Questions
408 real 200-530 exam questions with expert-verified answers and explanations. Page 5 of 9.
- Question #212
Which of the following code snippets is correct? (Choose 2)
- Question #213
Is the following code piece E_STRICT compliant? final class Testing { private $test; public function tester() { return "Tested!"; }}
- Question #214
The purpose of the singleton pattern is to...
- Question #215
What happens if you try to access a property whose name is defined in a parent class as private, and is not declared in the current class?
- Question #216
What is the output of the following code? $first = "second"; $second = "first"; echo $$$first;
- Question #217
What function is used to retrieve all available information about a symbolic link?
- Question #218
When uploading a file to a PHP script using the HTTP PUT method, where would the information about this file be available?
- Question #219
Zend 200-530 Exam What will the $array array contain at the end of this script? 1 <?php 2 function modifyArray (&$array) 3 { 4 foreach ($array as &$value) 5 { 6 $value = $value + 1...
- Question #221
Which of the following statements is NOT true?
- Question #222
Type hinting in PHP allows the identification of the following variable types: (Choose 2)
- Question #223
Given the following code, what will be the value of $a? $a = array('a', 'b'); array_push($a, array(1, 2));
- Question #224
Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
- Question #225
Identify the security vulnerability in the following example: 1 <?php 2 echo "Welcome, {$_POST['name']}."; 3 ?>
- Question #226
How many times will the function counter() be executed in the following code? function counter($start, &$stop) { if ($stop > $start) { return; } counter($start--, ++$stop); Zend 20...
- Question #227
When a class is defined as final it:
- Question #228
Which of the following can be registered as entry points with a SoapServer instance (choose 3)
- Question #229
What DOMElement method should be used to check for availability of a non-namespaced attribute?
- Question #231
What is the content of $c after the following code has executed? $a = 2; $b = 3; $c = ($a++ * ++$b);
- Question #232
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!', 'H...
- Question #233
REST is a(n) ...
- Question #234
What is the output of the following code? echo 0x33, ' monkeys sit on ', 011, ' trees.'; Zend 200-530 Exam
- Question #235
When checking whether two English words are pronounced alike, which function should be used for the best possible result?
- Question #236
Given the following code, what is correct? function f(stdClass &$x = NULL) { $x = 42; } $z = new stdClass; f($z); var_dump($z);
- Question #237
What is the maximum size of the VARCHAR column type?
- Question #238
What is the output of the following code? Zend 200-530 Exam <code> class test { public $value = 0; function test() { $this->value = 1; } function __construct() { $this->value = 2;...
- Question #239
Which piece of code will return the ASCII value of a character?
- Question #241
An HTML form contains this form element: <input type="image" name="myImage" src="image.png" /> The user clicks on the image to submit the form. How can you now access the relative...
- Question #242
Which of the following statements is correct?
- Question #243
You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your applicatio...
- Question #244
The following form is loaded in a browser and submitted, with the checkbox activated: <form method="post"> <input type="checkbox" name="accept"> <form> In the server-side PHP code...
- Question #245
Which methods can be used to overload object properties? (Choose 2)
- Question #246
What super-global should be used to access information about uploaded files via a POST request?
- Question #247
What is the function of backtick (`) characters in PHP?
- Question #248
You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"? class Test { var $tester; }
- Question #249
Which of the listed changes would you make to the following PHP 4 code in order to make it most compliant with PHP 5? (Choose 2) Zend 200-530 Exam <?php class Car { var $model; fun...
- Question #251
You want to allow your users to submit HTML code in a form, which will then be displayed as real code and not affect your site layout. Which function do you apply to the text, when...
- Question #252
When working with the MVC paradigma, the business logic should be implemented in which of the following components?
- Question #253
Which options do you have in PHP to set the expiry date of a session?
- Question #254
1 <?php 2 setcookie('name1', 'value1', time() + 60*60*24, '/'); 3 setcookie('name1', 'value2'); 4 ?> The web browser is configured to accept all cookies. How many cookies will be s...
- Question #380
You want to create an anonymous function in the middle of a script that will return the square of a given number. Which of the following PHP scripts can you use to accomplish the t...
- Question #381
You have to select persons whose age is between twenty-five and forty from a database named HumanResource. Which of the following criteria will you use in the query to accomplish t...
- Question #382
You want to search for such users who have not used any digit in their user names to register to your Website. Which of the following regular expressions will you use to accomplish...
- Question #383
Which of the following metacharacters can be used to find a non-word character?
- Question #386
You have been given the following PHP script: Zend 200-530 Exam 1. <?php 2. if ($_POST) { 3. echo '<pre>'; 4. echo htmlspecialchars(print_r($_POST, true)); 5. echo '</pre>'; 6. } 7...
- Question #387
What will be the output of the following PHP script? <?php $array = array('a' => 'One', 'b' => 'Two', 'c' => array('d' => 'Three', 'e' => 'Four')); function print_element($array) {...
- Question #388
Which of the following statements correctly explains the working of the following code snippet? Zend 200-530 Exam
- Question #392
What is the output of the following code? Zend 200-530 Exam
- Question #395
Which of the following operators will you use to check whether two variables contain the same instance of an object or not?
- Question #396
Consider the following code: <?php $array = array("a1"=>x,"a2"=>e,"a3"=>z); asort( $array ); foreach ( $array as $keys => $values ) { print "$keys = $values "; } ?> What will be th...
- Question #397
You run the following PHP script: <?php if ( preg_match("/[^a-z589]+/", "AB asdfg589nmGH", $array) ) { print "<pre>\n"; print_r( $array ); print "</pre>\n"; } ?> What will be the o...