200-500 Dumps

200-500 Braindumps

200-500 Real Questions

200-500 Practice Test

200-500 Actual Questions


killexams.com


Zend


200-500


Zend PHP 5


https://killexams.com/pass4sure/exam-detail/200-500

  1. krsort()

  2. Array_multisort ()


Answer: B


Question: 206

In the following code, which class can be instantiated? 1 <?php

  1. abstract class Graphics {

  2. 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 }

  1. function draw($im, $col) {

  2. ImageSetPixel($im, $this->x, $this->y, $col); 14 }

15 }

16

17 class Point2 extends Point1 { } 18

19 abstract class Point3 extends Point2 { } 20 ?>


  1. Graphics

  2. Point1

  3. Point2

  4. Point3

  5. None, the code is invalid


Answer: C


Question: 207

What does an object based on the Active Record pattern provide?


  1. A way to actively control the application's workflow

  2. A way to record the history of its changes

  3. A way to effortlessly store its properties in a database


Answer: C


Question: 208

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

Question: 209

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');


  1. str_replace('PHP is a pain.', 'cool', 'a pain');

  2. str_replace('a pain', 'cool', 'PHP is a pain.');

  3. str_replace('cool', 'a pain', 'PHP is a pain.');


Answer: B


Question: 210

What is the result of the following code: class T { const A = 42 + 1; } echo T::A;


  1. 42

  2. 43

  3. Parse error


Answer: C


Question: 211

Which of the following code snippets is correct?(Choose 2)

  1. interface Draw able { abstract function draw();}

  2. interface Point { function getX();function getY(); }

  3. interface Line extends Point { function getX2(); function getY2(); }

  4. interface Circle implements Point {function getRadius (); }


  1. a)

  2. b)

  3. c)

  4. d)


Answer: B, C


Question: 212

Is the following code piece E_STRICT compliant? final class Testing { private $test; public function tester() {return "Tested!"; }}


  1. Yes

  2. No


Answer: A


Question: 213

The purpose of the singleton pattern is to...


  1. ...creates applications that only a single user may use.

  2. ...has just one single instance of an object in the entire application.

  3. ...has only one instance of each object in a collection of objects.


Answer: B


Question: 214

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?

  1. An E_NOTICE error will be triggered.

  2. An E_ERROR error will be triggered.

  3. An E_WARNING error will be triggered.

  4. No errors will be triggered


Answer: A


Question: 215

What is the output of the following code? 1 <?php

2 echo '1' . (print '2') + 3;

3 ?>


  1. 123

  2. 213

  3. 142

  4. 214

  5. Syntax error


Answer: D


Question: 216

An object can be counted with count() and size of() if it


  1. Implements Array Access

  2. Has a public count() method

  3. Was cast to an object from an array

  4. None of the above


Answer: D


Question: 217

When uploading a file to a PHP script using the HTTP PUT method, where would the information about this file be available?


  1. The $_FILES super-global

  2. The input stream php://stdin

  3. The $_POST super-global

  4. The global variable scope


Answer: B


Question: 218

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 {

  1. $value = $value + 1;

  2. }

8

  1. $value = $value + 2; 48

  2. }

11

  1. $array = array (1, 2, 3);

  2. modify Array($array);

  3. ?>


A. 2, 3, 4

B. 2, 3, 6

C. 4, 5, 6

D. 1, 2, 3


Answer: B


49