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

Pass the Zend Certification 200-500 Questions and answers with ExamsMirror

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

View all detail and faqs for the 200-500 exam


841 Students Passed

87% Average Score

90% Same Questions
Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions
Questions # 21:

What is the error in the following declaration of a static class method?

1 <?php

2 class car {

3 static $speeds = array(

4 'fast',

5 'slow',

6 'medium',

7 );

8

9 static function getSpeeds()

10 {

11 return $this->speeds;

12 }

13 }

14 ?>

Options:

A.

Static methods must not return a value.

B.

The use of $this from within static methods is not possible.

C.

Static methods need the method keyword instead of the function keyword.

D.

There is no static keyword in PHP.

Questions # 22:

Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?

Options:

A.

Class

B.

String

C.

Object

D.

Array

Questions # 23:

An HTML form contains this form element:

<input type="image" name="myImage" src="image.png" />

The user clicks on the image to submit the form. How can you now access the relative coordinates of the mouse click?

Options:

A.

$_IMAGE['myImage']['x'] and $_IMAGE['myImage']['y']

B.

$_POST['myImage']['x'] and $_POST['myImage']['x']

C.

$_POST['myImage.x'] and $_POST['myImage.y']

D.

$_POST['myImage_x'] and $_POST['myImage_y']

Questions # 24:

Given the following code, what will be the value of $a?

$a = array('a', 'b');

array_push($a, array(1, 2));

Options:

A.

array('a', 'b', 1, 2)

B.

array(1, 2, 'a', 'b')

C.

array(array(1, 2), 'a', 'b')

D.

None of the above

Questions # 25:

Which piece of code will return the ASCII value of a character?

Options:

A.

(int)'t';

B.

ord('t');

C.

to_ascii('t');

D.

chr('t');

Questions # 26:

What is the result of the following bitwise operation in PHP?

1 ^ 2

Options:

A.

1

B.

3

C.

2

D.

4

Questions # 27:

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 # 28:

How many elements does the $matches array contain after the following function call is performed?

preg_match('/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=200[0-9])/', '21st March

2006', $matches);

Options:

A.

1

B.

2

C.

3

D.

4

Questions # 29:

Type hinting in PHP allows the identification of the following variable types: (Choose 2)

Options:

A.

String

B.

Integer

C.

Array

D.

Any class or interface type

Questions # 30:

REST is a(n) ...

Options:

A.

Web service protocol similar to SOAP with a strict XML schema.

B.

Principle to exchange information using XML and HTTP.

C.

API to get information from social networking sites.

Viewing page 3 out of 7 pages
Viewing questions 21-30 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.