200-710 Exam Questions
231 real 200-710 exam questions with expert-verified answers and explanations. Page 4 of 5.
- Question #151
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 #152
When a browser requests an image identified by an img tag, it never sends a Cookie header.
- Question #153
Which of the following techniques ensures that a value submitted in a form can only be yes or no ?
- Question #154
Which function can NOT help prevent cross-site scripting? (Choose 2)
- Question #155
Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
- Question #156
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
- Question #157
Which of the following superglobals does not necessarily contain data from the client?
- Question #158
Transactions are used to... (Choose 2)
- Question #159
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 #160
Transactions should be used to: (Choose 2)
- Question #161
An unbuffered database query will: (Choose 2)
- Question #162
Which technique should be used to speed up joins without changing their results?
- Question #163
Consider the following XML code: ```xml <?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> </b...
- Question #164
What method can be used to find the tag <any> via the DOM extension?
- Question #165
What DOMElement method should be used to check for availability of a non-namespaced attribute?
- Question #166
Which DOMElement property provides a reference to the list of the element's children?
- Question #167
Which of the following is an invalid DOM save method?
- Question #168
Which of the following rules must every correct XML document adhere to? (Choose 2)
- Question #169
Which one of the following XML declarations is NOT valid?
- Question #170
Which of the following parts must a XML document have in order to be well-formed?
- Question #171
Which of the following can be registered as entry points with a SoapServer instance (choose 2):
- Question #172
Which of the following statements about SOAP is NOT true?
- Question #173
What SimpleXML function is used to parse a file?
- Question #174
The XML document below has been parsed into $xml via SimpleXML. How can the value of <foo> tag accessed? ```xml <?xml version='1.0'?> <document> <bar> <foo>Value</foo> </bar> </doc...
- Question #175
What parsing methodology is utilized by the SimpleXML extension?
- Question #176
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 <?xml version='1.0'?> <foo> <bar> <baz id...
- Question #177
How can a SimpleXML object be converted to a DOM object?
- Question #178
What is the method used to execute XPath queries in the SimpleXML extension?
- Question #179
Which of the following statements are FALSE?
- Question #180
What DOM method is used to load HTML files?
- Question #181
What is the output of the following code? ```php for ($i = 0; $i < 1.02; $i += 0.1?) { $a[$i] = $i; } echo count ($a); ```
- Question #182
After performing the following operations: ```php $a = array('a', 'b', 'c'); $a = array_keys (array_flip ($a)); ``` What will be the value of $a?
- Question #183
PHP's array functions such as array_values() can be used on an object if the object...
- Question #184
What is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?
- Question #185
An object can be counted with count() and sizeof() if it...
- Question #186
Which value will be assigned to the key 0 in this example? $foo = array(true, '0' => false, false => true);
- Question #187
What will be the result of the following operation? ```php array_combine(array("A", "B", "C"), array(1,2,3)); ```
- Question #188
Which of the following expressions will evaluate to a random value from an array below? `$array = array("Sue", "Mary", "John", "Anna");`
- Question #189
What function can reverse the order of values in an array so that keys are preserved?
- Question #190
What will be the output value of the following code? ```php $array = array(1,2,3); while (!list($v) = each ($array)) var_dump (current ($array)); ```
- Question #191
What will be the output of the following code? ```php $a = array(0, 1, 2 => array(3, 4)); $a[] = array(4, 5); echo count ($a, 1); ```
- Question #192
The constructs for(), foreach(), and each() can all be used to iterate an object if the object...
- Question #193
Which parts of the text are matched in the following regular expression? $text = <<<EOT The big bang bonged under the bung. EOT; preg_match_all('/(@b.n?g@', $text, $matches);
- Question #194
What will the following code piece print? echo strtr('Apples and bananas', 'ae', 'ea');
- Question #195
You want to parse a URL into its single parts. Which function do you choose?
- Question #196
Which elements does the array returned by the function pathinfo() contain?
- Question #197
What will the following function call print? printf('%010.6f', 22);
- Question #198
What is the output of the following code? echo '0x33, ' monkeys sit on ', 011, ' trees.';
- Question #199
You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilities work? (Choose 2)
- Question #200
Which sentence describes the following regular expression match? preg_match('/^(\^d{1,}(\.[0-9])++?(\?:\^d+?([0-9-]))+/', $test, $matches);