Questions for the 200-550 were updated on : Nov 21 ,2025
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?
D
Which of the following is NOT a requirement for file uploads to work?
C
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'] ?
C
An object can be counted with count() and sizeof() if it...
D
When uploading a file to a PHP script using the HTTP PUT method, where would the file data be
found?
B
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'] ?
D
Which options do you have in PHP to set the expiry date of a session?
D
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?
C
An HTML form contains this form element:
<input type="file" name="myFile" />
When this form is submitted, the following PHP code gets executed:
move_uploaded_file(
$_FILES['myFile']['tmp_name'],
'uploads/' . $_FILES['myFile']['name']
);
Which of the following actions must be taken before this code may go into production? (Choose 2)
B, D
Which string will be returned by the following function call?
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/')); // note that strrpos() is being called, and not strpos()
B
How many elements does the array $pieces contain after the following piece of code has been
executed?
$pieces = explode("/", "///");
C
You want to allow your users to submit HTML code in a form, which will then be displayed as real
code and not affect your page layout. Which function do you apply to the text, when displaying it?
(Choose 2)
B, D
What is the return value of the following code: substr_compare("foobar", "bar", 3);
D
What is the return value of the following code?
strpos("me myself and I", "m", 2)
B
What is the length of a string returned by: md5(rand(), TRUE);
D