200-550 Exam Questions
221 real 200-550 exam questions with expert-verified answers and explanations. Page 3 of 5.
- Question #117
Which of the following statements about Reflection is correct?
- Question #118
What is the name of the PHP function used to automatically load non-yet defined classes?
- Question #119
When a class is defined as final it:
- Question #120
Type hinting in PHP allows the identification of the following variable types: (Choose 2)
- Question #121
In the following code, which classes can be instantiated? abstract class Graphics { abstract function draw($im, $col); } abstract class Point1 extends Graphics { public $x, $y; fun...
- Question #122
Which of the following code snippets is correct? (Choose 2)
- Question #123
Which of the following statements about PHP is false? (Choose 2)
- Question #124
Which of the following is correct? (Choose 2)
- Question #125
Which of the following functions are used to escape data within the context of HTML? (Choose 2)
- Question #126
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)
- Question #127
Which of the following filtering techniques prevents all cross-site scripting (XSS) vulnerabilities?
- Question #128
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? (Choos...
- Question #129
Which is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?
- Question #130
Some databases support the LIMIT clause. ft is a method to ensure that
- Question #131
Which of the following functions can help prevent session fixation vulnerabilities?
- Question #132
How can you determine if magic_quotes_gpc is enabled? (Choose 2)
- Question #133
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
- Question #134
Which of the following superglobals does not necessarily contain data from the client?
- Question #135
Which of the following statements is true?
- Question #136
Transactions are used to...
- Question #137
When a query that is supposed to affect rows is executed as part of a transaction, and reports no affected rows, it could mean that: (Choose 2)
- Question #138
Transactions should be used to: (Choose 2)
- Question #139
An unbuffered database query will: (Choose 2)
- Question #140
Which technique should be used to speed up joins without changing their results?
- Question #141
Consider the following XML code: <?xml version="1.0" encoding="utf-8"?> <books> <book id="1">PHP 5.5 in 42 Hours</book> <book id="2">Learning PHP 5.5 The Hard Way</book> </books> W...
- Question #142
What method can be used to find the tag <any> via the DOM extension?
- Question #143
What DOMElement method should be used to check for availability of a non-namespaced attribute?
- Question #145
Which of the following is an invalid DOM save method?
- Question #146
Which of the following code snippets writes the content of the "source.txt" to "target.txt"?
- Question #147
What is the output of the following code?
- Question #148
Which of the following parts must a XML document have in order to be well-formed?
- Question #149
Which of the following can be registered as entry points with a SoapServer instance (choose 2):
- Question #150
Which of the following statements about SOAP is NOT true?
- Question #151
What SimpleXML function is used to parse a file?
- Question #152
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 #153
What parsing methodology is utilized by the SimpleXML extension?
- Question #154
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> <bar> <baz id="1">On...
- Question #155
How can a SimpleXML object be converted to a DOM object?
- Question #156
What is the method used to execute XPath queries in the SimpleXML extension?
- Question #157
Which of the following statements are FALSE?
- Question #158
What DOM method is used to load HTML files?
- Question #159
What is the output of the following code? for ($i = 0; $i < 1.02; $i += 0.17) { $a[$i] = $i; } echo count($a);
- Question #160
After performing the following operations: $a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?
- Question #161
PHP's array functions such as array_values() can be used on an object if the object...
- Question #162
Which is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?
- Question #163
An object can be counted with count() and sizeof() if it...
- Question #165
What will be the result of the following operation? array_combine(array("A","B","C"), array(1,2,3));
- Question #166
Which of the following expressions will evaluate to a random value from an array below? $array = array("Sue","Mary","John","Anna");
- Question #167
What function can reverse the order of values in an array so that keys are preserved?
- Question #168
What will be the output value of the following code? $array = array(1,2,3); while (list(,$v) = each($array)); var_dump(current($array));