Exam Code : 200-500
Exam Name : Zend PHP 5
Vendor Name :
"Zend"
200-500 Dumps
200-500 Braindumps
200-500 Real Questions
200-500 Practice Test
200-500 Actual Questions
killexams.com
Zend PHP 5
https://killexams.com/pass4sure/exam-detail/200-500
krsort()
Array_multisort ()
Answer: B
In the following code, which class can be instantiated? 1 <?php
abstract class Graphics {
abstract function draw($im, $col); 4 }
5
6 abstract class Point1 extends Graphics { 7 public $x, $y;
8 function construct($x, $y) { 9 $this->x = $x;
10 $this->y = $y; 11 }
function draw($im, $col) {
ImageSetPixel($im, $this->x, $this->y, $col); 14 }
15 }
16
17 class Point2 extends Point1 { } 18
19 abstract class Point3 extends Point2 { } 20 ?>
Graphics
Point1
Point2
Point3
None, the code is invalid
Answer: C
What does an object based on the Active Record pattern provide?
A way to actively control the application's workflow
A way to record the history of its changes
A way to effortlessly store its properties in a database
Answer: C
What will the following function call print? Printf ('%010.6f', 22);
A. 22
B. 22.00
C. 022.000000
D. 22.000000
46
Answer: C
The following code piece should print "PHP is cool", but unexpectedly, it just prints "cool". How would you correct it? echo str_replace('PHP is a pain.', 'a pain', 'cool');
str_replace('PHP is a pain.', 'cool', 'a pain');
str_replace('a pain', 'cool', 'PHP is a pain.');
str_replace('cool', 'a pain', 'PHP is a pain.');
Answer: B
What is the result of the following code: class T { const A = 42 + 1; } echo T::A;
42
43
Parse error
Answer: C
Which of the following code snippets is correct?(Choose 2)
interface Draw able { abstract function draw();}
interface Point { function getX();function getY(); }
interface Line extends Point { function getX2(); function getY2(); }
interface Circle implements Point {function getRadius (); }
a)
b)
c)
d)
Answer: B, C
Is the following code piece E_STRICT compliant? final class Testing { private $test; public function tester() {return "Tested!"; }}
Yes
No
Answer: A
The purpose of the singleton pattern is to...
...creates applications that only a single user may use.
...has just one single instance of an object in the entire application.
...has only one instance of each object in a collection of objects.
Answer: B
What happens if you try to access a property wh4o7se name is defined in a parent class as private, and is not declared in the current class?
An E_NOTICE error will be triggered.
An E_ERROR error will be triggered.
An E_WARNING error will be triggered.
No errors will be triggered
Answer: A
What is the output of the following code? 1 <?php
2 echo '1' . (print '2') + 3;
3 ?>
123
213
142
214
Syntax error
Answer: D
An object can be counted with count() and size of() if it
Implements Array Access
Has a public count() method
Was cast to an object from an array
None of the above
Answer: D
When uploading a file to a PHP script using the HTTP PUT method, where would the information about this file be available?
The $_FILES super-global
The input stream php://stdin
The $_POST super-global
The global variable scope
Answer: B
What will the $array contain at the end of this script? 1 <?php
2 function modify Array (&$array) 3 {
4 for each ($array as &$value) 5 {
$value = $value + 1;
}
8
$value = $value + 2; 48
}
11
$array = array (1, 2, 3);
modify Array($array);
?>
A. 2, 3, 4
B. 2, 3, 6
C. 4, 5, 6
D. 1, 2, 3
Answer: B
49