200-530 Exam Questions
408 real 200-530 exam questions with expert-verified answers and explanations. Page 4 of 9.
- Question #160
You have been given the following PHP script: 1. <?php 2. $xmlstring = <<<XML 3. <?xml version="1.0" encoding="ISO-8859-1"?> 4. <email> 7. <heading>Technical issue in Linux OS</hea...
- Question #161
What is the file locking mode that should be used when writing to a file?
- Question #162
You want to extract the pieces of a date string, which looks like this: "2005-11-02". Which of the following pieces of code will properly assign $year, $month and $day with their r...
- Question #163
Given the following array: $a = array(28, 15, 77, 43); Which function will remove the value 28 from $a?
- Question #164
What is the best way to run PHP 4 and PHP 5 side-by-side on the same Apache server?
- Question #165
What is the output of the following code? str_pad('PHP', 10, 'P', STR_PAD_BOTH);
- Question #166
What is the output of the following script? 1 <?php 2 class a 3 { 4 public $val = 10; 5 } Zend 200-530 Exam 7 function renderVal (a $a) 8 { 9 return $a->$val; 10 } 12 renderVal (ne...
- Question #167
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
- Question #168
What function is ideal for outputting contents of a static file to screen?
- Question #169
What SimpleXML function is used to parse a file?
- Question #170
Which of the following file functions can be used to indicate the current position of the file read/write pointer?
- Question #171
The XML document below has been parsed into $xml via SimpleXML. How can the value of <foo> tag accessed? <?xml version='1.0'?> <document> <bar> <foo>Value</foo> </bar> </document>
- Question #172
What is the method used to execute XPath queries in the SimpleXML extension?
- Question #173
Which of the following are valid identifiers (Choose 3)
- Question #174
What is the name of the method that can be used to provide read access to virtual properties in a class?
- Question #175
After executing a SELECT query on a database server,
- Question #176
Which of the following function signatures is correct if you want to have classes automatically loaded?
- Question #177
Which technique should be used to speed up joins without changing their results?
- Question #178
What XML component does the following XPath query try to match? Zend 200-530 Exam //foo[bar/@id=5]
- Question #179
Where does the session extension store the session data by default?
- Question #180
You are using a database named HumanResource. You have to delete some tables from the database using SQL statements. Which of the following statements will you use to accomplish th...
- Question #181
What type of class definition can be used to define multiple inheritance?
- Question #182
You have a variable $test that contains sub-strings divided by a dash ("-"). How can you put every sub-string into an array element easily? Zend 200-530 Exam
- Question #183
Which of the following parts must a XML document have in order to be well-formed?
- Question #184
How can a PHP extension be loaded? (Choose 2)
- Question #185
What is the length of a string returned by: md5(rand(), TRUE);
- Question #186
$_SERVER consists of data provided by the web server and is therefore trustworthy.
- Question #187
Zend 200-530 Exam Which of the following statements is true?
- Question #188
What function should be used to escape command line arguments that are passed to commands executed from PHP?
- Question #189
What is the output of the following code? try { class MyException extends Exception {}; try { throw new MyException; } catch (Exception $e) { echo "1:"; throw $e; }c atch (MyExcept...
- Question #190
Which of the following joins is used to join a table to itself?
- Question #191
What can prevent PHP from being able to open a file on the hard drive (Choose 3)?
- Question #192
Which of the following statements about database connections are commonly true? (Choose 2)
- Question #193
Under which circumstances is the $_SESSION super-global available? (Choose 2)
- Question #194
What is the output of the following code: str_replace(array("Apple","Orange"), array("Orange","Apple"), "Oranges are orange and Apples are green");
- Question #195
Which sentence describes the following regular expression match? preg_match('/^\d*(?:\.[0-9]+)?$/', $test);
- Question #196
How can XML parsing errors be suppressed in the SimpleXML extension?
- Question #197
The constructs for(), foreach(), and each() can all be used to iterate an object if the object
- Question #198
Zend 200-530 Exam How can the id attribute of the 2nd baz element from the XML string below be retrieved from the SimpleXML object found inside $xml? <?xml version='1.0'?> <foo> <b...
- Question #199
When a browser requests an image identified by an img tag, it never sends a Cookie header.
- Question #200
You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)
- Question #202
Identify the security vulnerability in the following example: 1 <?php 2 mail('[email protected]', 3 'Feddback', 4 'Here is my feedback.', 5 "From: {$_COOKIE['email']}"); 6 ?>
- Question #203
What will be the output of the following code? $a = array(0, 1, 2 => array(3, 4)); $a[3] = array(4, 5); echo count($a, 1);
- Question #204
What is the result of the following code? $a = 1; $b = "1"; var_dump($a === $b);
- Question #205
What is the error in the following declaration of a static class method? 1 <?php 2 class car { 3 static $speeds = array( Zend 200-530 Exam 4 'fast', 5 'slow', 6 'medium', 7 ); 9 st...
- Question #206
Would the following code catch a parse error? try { echo $label } catch (Exception $e) { echo $e->getMessage(); }
- Question #207
In the following code, which class can be instantiated? 1 <?php 2 abstract class Graphics { 3 abstract function draw($im, $col); 4 } 6 abstract class Point1 extends Graphics { 7 pu...
- Question #208
What does an object based on the Active Record pattern provide?
- Question #209
What will the following function call print? printf('%010.6f', 22);
- Question #211
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this? Zend 200-530 Exam