Our pass rate is high to 98.9% and the similarity percentage between our 200-550 study guide and real exam is 90% based on our seven-year educating experience. Do you want achievements in the Zend Technologies 200-550 exam in just one try? I am currently studying for the Zend Technologies 200-550 exam. Latest Zend Technologies 200-550 Test exam practice questions and answers, Try Zend Technologies 200-550 Brain Dumps First.
Q17. Which of the following statements are FALSE?
A. SimpleXML allows removal of attributes.
B. SimpleXML allows addition of new attributes.
C. SimpleXML allows removal of nodes.
D. SimpleXML allows addition of new nodes.
E. None of the above
Answer: E
Q18. Which of the following is used to find all PHP files under a certain directory?
A. PHPIterator
B. RecursiveTreeIterator
C. RecursiveDirectoryIterator
D. SplTempFileObject
Answer: C
Q19. What is the output of the following code? echo 0x33, ' 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. 0x33 monkeys sit on 011 trees.
Answer: B
Q20. What will the following code print out?
$str = '✔ one of the following' echo str_replace('✔', 'Check', $str);
A. Check one of the following
B. one of the following
C. ✔ one of the following
Answer: A
Q21. What will be the output of the following code?
$a = array(0, 1, 2 => array(3, 4));
$a[3] = array(4, 5); echo count($a, 1);
A. 4
B. 5
C. 8
D. None of the above
Answer: C
Q22. What is "instanceof" an example of?
A. a boolean
B. an operator
C. a function
D. a language construct
E. a class magic
Answer: B
Q23. What will be the result of the following operation?
$a = array_merge([1,2,3] + [4=>1,5,6]); echo $a[2];
A. 4
B. 3
C. 2
D. false
E. Parse error
Answer: B
Q24. What is the output of the following code? class Number {
private $v;
private static $sv = 10;
public function construct($v) { $this->v = $v; } public function mul() {
return static function ($x) {
return isset($this) ? $this->v*$x : self::$sv*$x;
};
}
}
$one = new Number(1);
$two = new Number(2);
$double = $two->mul();
$x = Closure::bind($double, null, 'Number'); echo $x(5);
A. 5
B. 10
C. 50
D. Fatal error
Answer: C
Q25. Given a php.ini setting of default_charset = utf-8
what will the following code print in the browser? header('Content-Type: text/html; charset=iso-8859-1'); echo '✂✔✝'
A. Three Unicode characters, or unreadable text, depending on the browser
B. ✂✔✝
C. A blank line due to charset mismatch
Answer: A
Q26. How many times will the function counter() be executed in the following code?
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
}
counter($start--, ++$stop);
}
$start = 5;
$stop = 2; counter($start, $stop);
A. 3
B. 4
C. 5
D. 6
Answer: C
Q27. What is the output of the following code? var_dump(boolval([]));
A. bool(true)
B. bool(false)
Answer: B
Q28. The constructs for(), foreach(), and each() can all be used to iterate an object if the object...
A. implements ArrayAccess
B. implements Iterator
C. implements Iterator and ArrayAccess
D. None of the above
Answer: C
Q29. What can prevent PHP from being able to open a file on the hard drive (Choose 2)?
A. File system permissions
B. File is outside of open_basedir
C. File is inside the /tmp directory.
D. PHP is running in CGI mode.
Answer: A,B
Q30. Which elements does the array returned by the function pathinfo() contain?
A. root, dir, file
B. dirname, filename, fileextension
C. dirname, basename, extension
D. path, file
Answer: C
Q31. You want to parse a URL into its single parts. Which function do you choose?
A. parse_url()
B. url_parse()
C. get_url_parts()
D. geturlparts()
Answer: A
Q32. In the following code, which line should be changed so it outputs the number 2:
class A {
protected $x = array(); /* A */
public function getX() { /* B */ return $this->x; /* C */
}
}
$a = new A(); /* D */
array_push($a->getX(), "one");
array_push($a->getX(), "two"); echo count($a->getX());
A. No changes needed, the code would output 2 as is
B. Line A, to: protected &$x = array();
C. Line B, to: public function &getX() {
D. Line C, to: return &$this->x;
E. Line D, to: $a =& new A();
Answer: C