Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Zend 200-550 Practice Exam with Questions & Answers | Set: 2

Questions 11

What is the name of the header used to require HTTP authentication?

Options:
A.

Authorization-Required

B.

WWW-Authenticate

C.

HTTP-Authenticate

D.

Authentication-Required

E.

HTTP-Auth

Zend 200-550 Premium Access
Questions 12

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!")

Options:
A.

12,12

B.

12,24

C.

24,12

D.

24,24

E.

PHP Fatal error: Cannot redeclare strlen()

Questions 13

Which php.ini setting is usually required to use an opcode cache?

Options:
A.

extension

B.

zend_extension

C.

optimizer

D.

dl

Questions 14

What function allows resizing of PHP's file write buffer?

Options:
A.

ob_start()

B.

set_write_buffer()

C.

stream_set_write_buffer()

D.

Change the output_buffering INI setting via ini_set() function

Questions 15

When a query that is supposed to affect rows is executed as part of a transaction, and reports no affected rows, it could mean that: (Choose 2)

Options:
A.

The transaction failed

B.

The transaction affected no lines

C.

The transaction was rolled back

D.

The transaction was committed without error

Questions 16

Which of the following methods are available to limit the amount of resources available to PHP through php.ini? (Choose 2)

Options:
A.

Limit the amount of memory a script can consume

B.

Limit the total amount of memory PHP uses on the entire server

C.

Limit the maximum execution time of a script

D.

Limit the maximum number of concurrent PHP processes

E.

Limit the maximum number of concurrent PHP threads

Questions 17

Which line of code can be used to replace the INSERT comment in order to output "hello"?

class C {

public $ello = 'ello';

public $c;

public $m;

function __construct($y) {

$this->c = static function($f) {

// INSERT LINE OF CODE HERE

};

$this->m = function() {

return "h";

};

}

}

$x = new C("h");

$f = $x->c;

echo $f($x->m);

Options:
A.

return $this->m() . "ello";

B.

return $f() . "ello";

C.

return "h". $this->ello;

D.

return $y . "ello";

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

Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?

Options:
A.

TRUE

B.

FALSE

C.

ENT_QUOTES

D.

ENT_NOQUOTES

E.

ENT_COMPAT

Questions 20

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;

}

Options:
A.

one

B.

two

C.

three

D.

four