image


200-500 Dumps

200-500 Braindumps

200-500 Real Questions

200-500 Practice Test

200-500 Actual Questions


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

image

C. 4, 5, 6

D. 1, 2, 3


Answer: B


49


image

6$03/( 48(67,216


7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV


.LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP


$FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP


([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP


3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV


*XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV


8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV


7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\


'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU

.LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG