What is the output of the following code?
function append($str)
{
$ str = $str.'append';
function prepend(&$str)
{
$ str = 'prepend'.$str;
$ string= 'zce';
append(prepend($string));
echo $string;
A. zceappend
B. zce
C. prependzce
D. prependzceappend
正解:C
質問 2:
Your supervisor wants you to disallow PHP scripts to open remote HTTP and FTP resources using PHP's
file functions. Which php.ini setting should you change accordingly?
正解:
allow_url_fopen=off, allow_url_fopen=Off,
質問 3:
The XML document below has been parsed into $xml via SimpleXML. How can the value of <foo> tag
accessed?
< ?xml version='1.0'?>
< document>
< bar>
< foo>Value</foo>
< /bar>
< /document>
A. $xml->getElementByName('foo');
B. $xml->bar['foo']
C. $xml['document']['bar']['foo']
D. $xml->document->bar->foo
E. $xml->bar->foo
正解:E
質問 4:
What function can be used to retrieve an array of current options for a stream context?
A. stream_context_get_params
B. stream_context_get_options
C. stream_context_get_default
D. The 'options' element ofthe stream_get_meta_data return value
正解:B
質問 5:
Which of the following is correct? (Choose 2)
A. A class can extend more than one class.
B. A class can implement more than one class.
C. An interface can implement more than one interface.
D. A class can implement more than one interface.
E. A class can extend more than one interface.
F. An interface can extend more than one interface.
正解:D,F
北村** -
これで合格点は取れます。問題部分だけの暗記でもいけるレベルです。Pass4Testは信頼できます。