最新的Zend-Technologies Zend PHP 5.3 Certification - 200-530免費考試真題
問題1
Where does the session extension store the session data by default?
Where does the session extension store the session data by default?
正確答案: C
問題2
How many elements does the array $pieces contain after the following piece of code has been executed?
$pieces = explode("/", "///");
How many elements does the array $pieces contain after the following piece of code has been executed?
$pieces = explode("/", "///");
正確答案: A
問題3
Which requirements need NOT be met so that file uploads work?
Which requirements need NOT be met so that file uploads work?
正確答案: B
問題4
You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your application. While some of the operations can be performed on all of the different formats (such as saving and loading), other operations may be specific to one or two of the formats (such as setting as read only). Which design pattern should you use for this application?
You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your application. While some of the operations can be performed on all of the different formats (such as saving and loading), other operations may be specific to one or two of the formats (such as setting as read only). Which design pattern should you use for this application?
正確答案: A
問題5
Which 2.17of the following formats is used to describe web services?
Which 2.17of the following formats is used to describe web services?
正確答案: C
問題6
Consider the following XML code:
<?xml version="1.0" encoding="utf-8"?>
<books>
<book id="1">PHP 5 Power Programming</book>
<book id="2">Learning PHP 5</book>
</books>
Which of the following SimpleXML calls print the name of the second book?
(Let $xml=simplexml_load_file("books.xml");) (Choose 2)
Consider the following XML code:
<?xml version="1.0" encoding="utf-8"?>
<books>
<book id="1">PHP 5 Power Programming</book>
<book id="2">Learning PHP 5</book>
</books>
Which of the following SimpleXML calls print the name of the second book?
(Let $xml=simplexml_load_file("books.xml");) (Choose 2)
正確答案: B,C
問題7
What is the method used to execute XPath queries in the SimpleXML extension?
What is the method used to execute XPath queries in the SimpleXML extension?
正確答案: D
問題8
Assuming UTF-8 encoding, what is the value of $count?

Assuming UTF-8 encoding, what is the value of $count?

正確答案: B
問題9
Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
正確答案: D
問題10
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
正確答案: A
問題11
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';
正確答案: B
問題12
Which of the following functions are used to escape data within the context of HTML?
(Choose 2)
Which of the following functions are used to escape data within the context of HTML?
(Choose 2)
正確答案: A,E
問題13
What is the content of $c after the following code has executed?
$a = 2;
$b = 3; $c = ($a++ * ++$b);
What is the content of $c after the following code has executed?
$a = 2;
$b = 3; $c = ($a++ * ++$b);
正確答案: A
問題14
Type hinting in PHP allows the identification of the following variable types: (Choose 2)
Type hinting in PHP allows the identification of the following variable types: (Choose 2)
正確答案: A,D
問題15
What function can reverse the order of values in an array without the loss of key information?
What function can reverse the order of values in an array without the loss of key information?
正確答案: E
問題16
Which constant must be passed as the second argument to htmlentities () to convert single quotes (') to HTML entity?
Which constant must be passed as the second argument to htmlentities () to convert single quotes (') to HTML entity?
正確答案: E
問題17
Transitions can be used to: (Choose 2)
Transitions can be used to: (Choose 2)
正確答案: A,D
問題18
What is the name of the key pointing to the domain name in the array returned by parse_url()?
What is the name of the key pointing to the domain name in the array returned by parse_url()?
正確答案: C
問題19
What is the best way to run PHP 4 and PHP 5 side-by-side on the same Apache server?
What is the best way to run PHP 4 and PHP 5 side-by-side on the same Apache server?
正確答案: A
問題20
What can prevent PHP from being able to open a file on the hard drive (Choose 3)?
What can prevent PHP from being able to open a file on the hard drive (Choose 3)?
正確答案: A,C,D