QUESTION 1
Which of the following can be registered as entry points with a SoapServer instance (choose 3)
A. A single function
B. A single method from a class
C. Multiple functions at once
D. All methods from a class
E. All classes defined in a script
Answer: ACD
QUESTION 2
What DOMElement method should be used to check for availability of a non-namespaced attribute?
A. getAttributeNS()
B. getAttribute()
C. hasAttribute()
D. hasAttributeNS()
Answer: C
QUESTION 3
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?
A. Class
B. String
C. Object
D. Array
Answer: C
QUESTION 4
REST is a(n) …
A. Web service protocol similar to SOAP with a strict XML schema.
B. Principle to exchange information using XML and HTTP.
C. API to get information from social networking sites.
Answer: B
QUESTION 5
What is the output of the following code?
echo 0×33, ‘ monkeys sit on ‘, 011, ‘ trees.’;
A. 33 monkeys sit on 11 trees.
B. 51 monkeys sit on 9 trees.
C. monkeys sit on trees.
D. 0×33 monkeys sit on 011 trees.
Answer: B
QUESTION 6
When checking whether two English words are pronounced alike, which function should be used for the best possible result?
A. levenshtein()
B. metaphone()
C. similar_text()
D. soundex()
Answer: B
QUESTION 7
Given the following code, what is correct?
function f(stdClass &$x = NULL) { $x = 42;
}
$z = new stdClass;
f($z);
var_dump($z);
A. Error: Typehints cannot be NULL
B. Error: Typehints cannot be references
C. Result is NULL
D. Result is object of type stdClass
E. Result is 42
Answer: E
QUESTION 8
What is the maximum size of the VARCHAR column type?
A. 255 Bytes
B. 255 Characters
C. 512 Bytes
D. 512 Characters
E. No Limit
Answer: B
QUESTION 9
What is the output of the following code?
<code>
class test {
public $value = 0;
function test() {
$this->value = 1;
} function __construct() {
$this->value = 2;
}}
$object = new test();
echo $object->value;
A. 2
B. 1
C. 0
D. 3
E. No Output, PHP will generate an error message.
Answer: A
QUESTION 10
Transactions can be used to: (Choose 2)
A. Recover from errors in case of a power outage or a failure in the SQL connection
B. Ensure that the data is properly formatted
C. Ensure that either all statements are performed properly, or that none of them are.
D. Recover from user errors
Answer: AC
If you want to pass the Zend 200-500 Exam sucessfully, recommend to read latest Zend 200-500 Demo full version.