Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Zend PHP and Zend Framework Certifications 200-550 Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam 200-550 Premium Access

View all detail and faqs for the 200-550 exam


766 Students Passed

84% Average Score

98% Same Questions
Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions
Questions # 11:

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

Options:

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

Questions # 12:

What would be the output of the following code?

namespace MyFramework\DB;

class MyClass {

static function myName() {

return __METHOD__;

}

}

print MyClass::myName();

Options:

A.

MyFramework\DB\myName

B.

MyFramework\DB\MyClass\myName

C.

MyFramework\DB\MyClass::myName

D.

MyClass::myName

Questions # 13:

In the following code, which classes can be instantiated?

abstract class Graphics {

abstract function draw($im, $col);

}

abstract class Point1 extends Graphics {

public $x, $y;

function __construct($x, $y) {

$this->x = $x;

$this->y = $y;

}

function draw($im, $col) {

ImageSetPixel($im, $this->x, $this->y, $col);

}

}

class Point2 extends Point1 { }

abstract class Point3 extends Point2 { }

Options:

A.

Graphics

B.

Point1

C.

Point2

D.

Point3

E.

None, the code is invalid

Questions # 14:

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?

Options:

A.

$json = new Json($jsonValue); $value = $json->decode();

B.

$value = Json::decode($jsonValue);

C.

$value = json_decode($jsonValue);

D.

$value = Json::fromJson($jsonValue);

Questions # 15:

Transactions are used to...

Options:

A.

guarantee high performance

B.

secure data consistency

C.

secure access to the database

D.

reduce the database server overhead

E.

reduce code size in PHP

Questions # 16:

Which of the following is NOT a valid function declaration?

Options:

A.

function x ($x1 = array())

B.

function x (A $x1)

C.

function x (A $x1 = null)

D.

function x ($x1 = $x2)

Questions # 17:

What is the output of the following code?

$text = 'This is text';

$text1 = <<<'TEXT'

$text

TEXT;

$text2 = <<

$text1

TEXT;

echo "$text2";

Options:

A.

This is text

B.

$text

C.

$text1

D.

$text2

Questions # 18:

When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)

Options:

A.

The algorithm that is used for hashing passwords can change when PHP is upgraded.

B.

The salt option should always be set to a longer value to account for future algorithm requirements.

C.

The string length of the returned hash can change over time.

D.

The hash algorithm that's used will always be compatible with crypt() .

Questions # 19:

What is the output of the following code?

function increment ($val)

{

$_GET['m'] = (int) $_GET['m'] + 1;

}

$_GET['m'] = 1;

echo $_GET['m'];

Options:

Questions # 20:

Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose 2)

Options:

A.

md5()

B.

hash_pbkdf2()

C.

password_hash()

D.

crypt()

E.

openssl_digest()

Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.