Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

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

Viewing page 4 out of 7 pages
Viewing questions 31-40 out of questions
Questions # 31:

You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilities work?(Choose 2)

Options:

A.

echo $test(3)


B.

echo $test[2];


C.

echo $test(2);


D.

echo $test{2};


E.

echo $test{3}


Expert Solution
Questions # 32:

Which of the following XML declarations is NOT valid?

Options:

A.


B.


C.


D.


Expert Solution
Questions # 33:

An HTML form contains this form element:

<input type="file" name="myFile" />

When this form is submitted, the following PHP code gets executed:

1 <?php

2 move_uploaded_file(

3 $_FILES['myFile']['tmp_name'],

4 'uploads/' . $_FILES['myFile']['name']);

5 ?>

Which of the following actions must be taken before this code may go into production?

(Choose 2)

Options:

A.

Check with is_uploaded_file() whether the uploaded file $_FILES['myFile']['tmp_name'] is valid


B.

Sanitize the file name in $_FILES['myFile']['name'] because this value is not consistent among web browsers


C.

Check the charset encoding of the HTTP request to see whether it matches the encoding of the uploaded file


D.

Sanitize the file name in $_FILES['myFile']['name'] because this value could be forged


E.

Use $HTTP_POST_FILES instead of $_FILES to maintain upwards compatibility


Expert Solution
Questions # 34:

Which is the most efficient way to determine if a key is present in an array,assuming the array has no NULL values?

Options:

A.

in_array('key', array_keys($a))


B.

isset($a['key'])


C.

array_key_exists('key', $a)


D.

None of the above


Expert Solution
Questions # 35:

What will be the result of the following operation?

array_combine(array("A","B","C"), array(1,2,3));

Options:

A.

array("A","B",C",1,2,3)


B.

array(1,2,3,"A","B",C")


C.

array("A"=>1,"B"=>2,"C"=>3)


D.

array(1=>"A",2=>"B",3=>"C")


E.

array(1,2,3)


Expert Solution
Questions # 36:

Which of the following functions are used to escape data within the context of HTML?

(Choose 2)

Options:

A.

htmlentities()


B.

addslashes()


C.

stripslashes()


D.

strip_tags()


E.

htmlspecialchars()


Expert Solution
Questions # 37:

Which of the following are valid SoapClient calls? (Choose 2)

Options:

A.

$client = new SoapClient("weather.wsdl");


B.

$client = new SoapClient;


C.

$client = new SoapClient(null, array("location" =>

"http://example.com/weather ", "uri" => "http://test-uri.com/ "));


D.

$client = new SoapClient(null, array());


Expert Solution
Questions # 38:

How can a SimpleXML object be converted to a DOM object?

Options:

A.

dom_import_simplexml()


B.

dom_export_simplexml()


C.

simplexml_import_dom()


D.

SimpleXML2Dom()


E.

None of the above.


Expert Solution
Questions # 39:

Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?

Options:

A.

header()


B.

headers()


C.

headers_list()


D.

headers_sent()


Expert Solution
Questions # 40:

What is the name of the PHP function used to automatically load non-yet defined classes?

Options:

A.

autoload()


B.

__autoload()


C.

__catch()


D.

load()


E.

loadClass()


Expert Solution
Viewing page 4 out of 7 pages
Viewing questions 31-40 out of questions