Zend Certified Engineer 200-710 study guide online

Choose online 200-710 study guide to prepare for Zend Certified Engineer certification exam please. Zend Certifications provide industry recognition of your knowledge and proficiency with PHP and Zend Framework. Valid Zend Certified Engineer 200-710 study guide offer you great exam questions and answers to complete your Zend Certification.

Online Free Questions of Zend Certified Engineer 200-710 study guide

1. What does the _FILE_ constant contain?

2. What can prevent PHP from being able to open a file on the hard drive (Choose 2)?

3. What purpose do namespaces fulfill?

4. When would you use classes and when would you use namespaces?

5. Which of these elements can be encapsulated by namespaces and made accessible from the outside?

6. You'd like to use the class MyDBConnection that's defined in the MyGreatFrameworkMyGreatDatabaseAbstractionlayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type.

What would you do?

7. How should you track errors on your production website?

8. What would be the output ofthe following code?

namespace MyFrameworkDB;

class MyClass {

static function myName() {

return _METHOD_;

}

print MyClass::myName();

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

10. 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 MyFrameworkString;

function strlen($str)

{

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

}

print strlen("Hello world!")

11. 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);

12. What is the output of the following code?

function z($x) {

return function ($y) use ($x) {

return str_repeat($y, $x);

};

$a== z(2);

$b = z(3);

echo $a(3) . $b(2);

13. What is the output of the following code?

$f = function () { return "hello";};

echo gettype($f);

14. What is the output of the following code?

class C {

public $x = 1;

function _construct() { ++$this->x;}

function _invoke() { return ++$this->x; }

function _toString() { return (string) --$this->x;}

$obj = new C();

echo $obj();

15. Which of the following tasks can be achieved by using magic methods? (Choose 3)

16. Which MIME type is always sent by a client if a JPEG file is uploaded via HTIP?

17. In order to create an object storage where each object would be stored only once, you may use which of the following? (Choose 2)

18. What is the output of the following code?

class Base {

protected static function whoami() {

echo "Base ";

}

public static function whoareyou() {

static::whoami();

class A extends Base {

public static function test() {

Base::whoareyou();

}

self::whoareyou();

parent::whoareyou();

A::whoareyou();

static::whoareyou();

public static function whoa mi() {

echo "A";

class B extends A {

}

public static function whoa mi() {

echo "B ";

B::test();

19. Late static binding is used in PHP to:

20. What is the output of the following code?

class Test {

public function _call($name, $args)

{

call_user_func_array(array('static', "test$name"), $args);

}

public function testS($1) {

echo "$1,";

class Test2 extends Test {

public function testS($1) {

echo "$1,$1,";

}

$test = new Test2();

$test->S('A');


 

Add a Comment

Your email address will not be published. Required fields are marked *