Zend-Technologies 200-550 Actual Free Exam Questions & Community Discussion
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
Correct Answer: A
Vote an answer
What method can be used to find the tag <any> via the DOM extension?
Correct Answer: D
Vote an answer
Which of the following is NOT possible using reflection?
Correct Answer: C
Vote an answer
When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)
Correct Answer: A,C
Vote an answer
Which line of code can be used to replace the INSERT comment in order to output "hello"?
class C {
public $ello = 'ello';
public $c;
public $m;
function __construct($y) {
$this->c = static function($f) {
// INSERT LINE OF CODE HERE
};
$this->m = function() {
return "h";
}; } }
$x = new C("h"); $f = $x->c; echo $f($x->m);
class C {
public $ello = 'ello';
public $c;
public $m;
function __construct($y) {
$this->c = static function($f) {
// INSERT LINE OF CODE HERE
};
$this->m = function() {
return "h";
}; } }
$x = new C("h"); $f = $x->c; echo $f($x->m);
Correct Answer: A
Vote an answer
Which of these elements can be encapsulated by namespaces and made accessible from the outside?
Correct Answer: C
Vote an answer
Which is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?
Correct Answer: B
Vote an answer
What information can be used to reliably determine the type of an uploaded file?
Correct Answer: A
Vote an answer
CORRECT TEXT
What is the output of the following code?
function increment ($val)
{
++$val;
}
$val = 1;
increment ($val);
echo $val;
What is the output of the following code?
function increment ($val)
{
++$val;
}
$val = 1;
increment ($val);
echo $val;
Correct Answer:
1
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?
<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?
Correct Answer: A
Vote an answer
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';
echo 0x33, ' monkeys sit on ', 011, ' trees.';
Correct Answer: D
Vote an answer
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'] ?
<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'] ?
Correct Answer: C
Vote an answer
When a browser requests an image identified by an img tag, it never sends a Cookie header.
Correct Answer: B
Vote an answer
0
0
0
10
