Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Zend > Zend Certifications > 200-710 > 200-710 Online Practice Questions and Answers

200-710 Online Practice Questions and Answers

Questions 4

Given a PHP value, which sample shows how to convert the value to JSON?

A. $string = json_encode($value);

B. $string = Json::encode($value);

C. $json = new Json($value); $string = $json->__toString();

D. $value = (object) $value; $string = $value->__toJson();

Buy Now

Correct Answer: A

Questions 5

Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?

A. image/jpeg

B. image/jpg

C. image/pjpeg

D. Depends on the client system

Buy Now

Correct Answer: D

Questions 6

How can the id attribute of the 2nd baz element from the XML string below be retrieved from the SimpleXML object

found inside $xml?

One

Two

A. $xml->getElementById('2');

B. $xml->foo->bar->baz[2]['id']

C. $xml->foo->baz[2]['id']

D. $xml->foo->bar->baz[1]['id']

E. $xml->bar->baz[1]['id']

Buy Now

Correct Answer: E

Questions 7

What is the output of the following code?

$text = 'This is text';

$text1 = <<<'TEXT'

$text

TEXT;

$text2 = <<

$text1

TEXT;

echo "$text2";

A. This is text

B. $text

C. $text1

D. $text2

Buy Now

Correct Answer: B

Questions 8

Consider the following two files. When you run test.php, what would the output look like?

test.php:

include "MyString.php";

print ",";

print strlen("Hello world!");

MyString.php:

namespace MyFramework\String;

function strlen($str)

{

return \strlen($str)*2; // return double the string length

}

print strlen("Hello world!")

A. 12,12

B. 12,24

C. 24,12

D. 24,24

E. PHP Fatal error: Cannot redeclare strlen()

Buy Now

Correct Answer: C

Questions 9

What is the output of the following code?

$a = 3; switch ($a) {

case 1: echo 'one'; break;

case 2: echo 'two'; break;

default: echo 'four'; break;

case 3: echo 'three'; break;

}

A. one

B. two

C. three

D. four

Buy Now

Correct Answer: C

Questions 10

When uploading a file to a PHP script using the HTTP PUT method, where would the file data be found?

A. the $_FILES super-global

B. the input stream php://input

C. the $_POST super-global

D. the global variable scope

Buy Now

Correct Answer: B

Questions 11

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

Buy Now

Correct Answer: C

Questions 12

What is the output of the following code?

class test {

public $value = 0;

function test() {

$this->value = 1;

}

function __construct() {

$this->value = 2;

}

}

$object = new test();

echo $object->value;

A. 2

B. 1

C. 0

D. 3

E. No Output, PHP will generate an error message.

Buy Now

Correct Answer: A

Questions 13

What is the output of the following code?

function append($str)

{

$str = $str.'append';

}

function prepend(and$str)

{

$str = 'prepend'.$str;

}

$string = 'zce';

append(prepend($string));

echo $string;

A. zceappend

B. prependzceappend

C. prependzce

D. zce

Buy Now

Correct Answer: C

Exam Code: 200-710
Exam Name: Zend Certified Engineer
Last Update: Jul 05, 2026
Questions: 233

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2026 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.