Zend 200-710 practice test

Zend Certified Engineer Exam


Question 1

Which PHP function sets a cookie and URL encodes its value when sending it to the browser?

Answer:

setcookie,
setcookie()
Thank you for your visit.
To try more exams, please visit below link

Discussions
0 / 600

Question 2

Which PHP function sets a cookie whose value does not get URL encoded when sending it to the
browser?

Answer:

setrawcookie,
setrawcookie()

Discussions
0 / 600

Question 3

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. $_FILES['myImage']['x'] and $_FILES['myImage']['y']
  • B. $_POST['myImage']['x'] and $_POST['myImage']['y']
  • C. $_POST['myImage.x'] and $_POST['myImage.y']
  • D. $_POST['myImage_x'] and $_POST['myImage_y']
Answer:

D

Discussions
0 / 600

Question 4

Which of the following is NOT a requirement for file uploads to work?

  • A. The PHP directive file_uploads must be set to On
  • B. The form's method attribute must be set to "post"
  • C. The form must include a hidden input element with the name set to "MAX_FILE_SIZE"
  • D. The form's enctype attribute must be set to "multipart/form-data"
Answer:

C

Discussions
0 / 600

Question 5

The following form is loaded in a recent browser and submitted, with the second select option
selected:
<form method="post">
<select name="list">
<option>one</option>
<option>two</option>
<option>three</option>
</select>
</form>
In the server-side PHP code to deal with the form data, what is the value of $_POST['list'] ?

  • A. 1
  • B. 2
  • C. two
  • D. null
Answer:

C

Discussions
0 / 600

Question 6

Please provide the name of the super-global variable where all the information about cookies is
available.

Answer:

$_COOKIE,
$_COOKIE[\],
_COOKIE, _COOKIE[\]

Discussions
0 / 600

Question 7

When uploading a file to a PHP script using the HTTP PUT method, where would the file data be
found?

  • A. the $_FILES super-global
  • B. the input stream php://input
  • C. the $_POST super-global
  • D. the global variable scope
Answer:

B

Discussions
0 / 600

Question 8

The following form is loaded in a browser and submitted, with the checkbox activated:
<form method="post">
<input type="checkbox" name="accept" />
</form>
In the server-side PHP code to deal with the form data, what is the value of $_POST['accept'] ?

  • A. accept
  • B. ok
  • C. true
  • D. on
Answer:

D

Discussions
0 / 600

Question 9

Which options do you have in PHP to set the expiry date of a session?

  • A. Set the session.duration directive in php.ini
  • B. Set session cookie expiry date locally via session_set_cookie_params()
  • C. Set session expiry date locally via session_cache_expire()
  • D. None of the above
Answer:

D

Discussions
0 / 600

Question 10

Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response
or are ready to be sent?

  • A. header()
  • B. headers()
  • C. headers_list()
  • D. headers_sent() E: getresponseheaders()
Answer:

C

Discussions
0 / 600
To page 2