200-530 Exam Questions
408 real 200-530 exam questions with expert-verified answers and explanations. Page 3 of 9.
- Question #108
What object method specifies post-serialization behavior for an object?
- Question #109
What is the purpose of the open_basedir directive?
- Question #110
The dl() function is used to load PHP extensions on the server at runtime. However, you want to disable it due to some security issue. Which of the following actions will you perfo...
- Question #111
You analyze the code of a colleague and see a call to the function quotemeta(). You give the string "Holy $%&[. What's going on?" as a parameter to it. What will it output?
- Question #112
Which of the following keywords is not new in PHP 5?
- Question #113
Which of these protocols are NOT governed by the W3C in their latest versions? (Choose 2)
- Question #114
Which elements does the array returned by the function pathinfo() contain?
- Question #115
Zend 200-530 Exam What is the output of the following code? $a = 1; ++$a; $a*=$a; echo $a--;
- Question #116
Which of the following statements are correct? (Choose 2)
- Question #117
Which of the following statements are NOT true?
- Question #118
What is the output of the following script? 1 <?php 2 function fibonacci ($x1, $x2) 3 { 4 return $x1 + $x2; 5 } 7 $x1 = 0; 8 $x2 = 1; 10 for ($i = 0; $i < 10; $i++) { 11 echo fibon...
- Question #119
What will be the value of $b after running the following code? $a = array('c', 'b', 'a'); $b = (array)$a;
- Question #120
What will be the output of the following PHP code? <?php $a = "hi,world"; $b = array_map("strtoupper", explode(",", $a)); foreach($b as $value) { print "$value"; } ?>
- Question #121
How to read a single line, no matter how long from an file opened in the example below? $fp = fopen("my_file.txt", "w");
- Question #123
Which 2.17of the following formats is used to describe web services?
- Question #124
What will the following code piece print? echo strtr('Apples and bananas', 'ae', 'ea')
- Question #125
How can precisely one byte be read from a file, pointed by $fp? (Choose 2)
- Question #126
Which one of the following technologies was not built into PHP before version 5?
- Question #128
Assume that you are using PHP s session management without cookies and want to make sure that session information does not get lost when redirecting the client to another URL. Whic...
- Question #129
What method can be used to find a tag with the name "foo" via the DOM extension?
- Question #130
Which of the following joins will you use to display data that do not have an exact match in the column?
- Question #131
Can calls to Web Services be queued natively in PHP?
- Question #132
How many array elements will be found in the return value of: split(".", "
- Question #133
How do you allow the caller to submit a variable number of arguments to a function?
- Question #134
What is the output of the following code? 1 <?php 2 function append($str) 3 { 4 $str = $str.'append'; 5 } 7 function prepend(&$str) 8 { 9 $str = 'prepend'.$str; 10 } 12 $string = '...
- Question #135
What is the output of the following code? printf('%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s', "bananas", "monkeys", 9, 99);
- Question #136
When you need to process the values of columns in a database, you should:
- Question #137
What visibility denies access to properties and methods outside of the class?
- Question #138
What is the name of the key pointing to the domain name in the array returned by parse_url()?
- Question #139
What is the output of the following code: echo "1" + 2 * "0x02";
- Question #140
Which of the following types of errors halts the execution of a script and cannot be trapped?
- Question #141
You are creating an application that repeatedly connects to a database to retrieve order data for invoices. All data comes from the same database. In order to preserve resources, y...
- Question #142
What is the output of the following code? $a = 3; switch ($a) { case 1: echo 'one'; break; case 2: echo 'two'; break; default: echo 'four'; break; case 3: echo 'three'; break; }
- Question #143
Do constants have global scope or local scope?
- Question #144
You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilities work?(Choose 2)
- Question #145
In the function setcookie() what does the 3rd parameter specify?
- Question #146
You want to test if a string matches a relatively complex pattern. Which of the following functions can you use? (Choose 2)
- Question #147
Which of the following techniques ensures that a value submitted in a form can only be yes or no?
- Question #148
What is "instanceof" an example of:
- Question #149
What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?
- Question #150
Which of the following methods are used by the SOAP client to debug messages sent to and received from a SOAP server? Each correct answer represents a complete solution. Choose all...
- Question #151
Zend 200-530 Exam Which session function can help to avoid session fixation?
- Question #152
Consider the following XML code: <?xml version="1.0" encoding="utf-8"?> <books> <book id="1">PHP 5 Power Programming</book> <book id="2">Learning PHP 5</book> </books> Which of the...
- Question #153
Transactions are used to:
- Question #154
What does the chown() function do?
- Question #155
The function mysqli_affected_rows() can be used to perform which of the following actions? (Choose 2)
- Question #156
In a typical web application the most used database action is...
- Question #157
PHP's array functions such as array_values() and array_key_exists() can be used on an object if the object...
- Question #158
Is the following code piece E_STRICT compliant? final class Testing { var $test = 0; public function tester() { return "Tested!"; }}
- Question #159
Which function can help prevent cross-site scripting? (Choose 2)