QUESTION 11
Which piece of code will return the ASCII value of a character?
A. (int)’t’;
B. ord(‘t’);
C. to_ascii(‘t’);
D. chr(‘t’);
Answer: B
QUESTION 12
Which of the following data types cannot be directly manipulated by the client?
A. Cookie Data
B. Session Data
C. Remote IP Address
D. User Agent
Answer: B
QUESTION 13
An HTML form contains this form element:
<input type=”image” name=”myImage” src=”image.png” />
The user clicks on the image to submit the form. How can you now access the relative coordinates of the mouse click?
A. $_IMAGE[‘myImage’][‘x’] and $_IMAGE[‘myImage’][‘y’]
B. $_POST[‘myImage’][‘x’] and $_POST[‘myImage’][‘x’]
C. $_POST[‘myImage.x’] and $_POST[‘myImage.y’]
D. $_POST[‘myImage_x’] and $_POST[‘myImage_y’]
Answer: D
QUESTION 14
Which of the following statements is correct?
A. Interfaces can extend only one interface
B. Interfaces can extend more than one interface
C. Interfaces can inherit a method from different interfaces
D. Interfaces can redeclare inherited methods
Answer: B
QUESTION 15
You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your application. While some of the operations can be performed on all of the different formats (such as saving and loading), other operations may be specific to one or two of the formats (such as setting as read only). Which design pattern should you use for this application?
A. Adapter
B. Factory
C. MVC
D. Singleton
Answer: B
If you want to pass the Zend 200-500 Exam sucessfully, recommend to read latest Zend 200-500 Demo full version.