問題1
CORRECT TEXT
What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?
CORRECT TEXT
What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?
正確答案:
size
問題2
How many times will the function counter() be executed in the following code?
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
}
counter($start--, ++$stop); }
$start = 5; $stop = 2; counter($start, $stop);
How many times will the function counter() be executed in the following code?
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
}
counter($start--, ++$stop); }
$start = 5; $stop = 2; counter($start, $stop);
正確答案: A
問題3
Which elements does the array returned by the function pathinfo() contain?
Which elements does the array returned by the function pathinfo() contain?
正確答案: A
問題4
Your application uses PHP to accept and process file uploads. It fails to upload a file that is 5 MB in size, although upload_max_filesize is set to "10M". Which of the following configurations could be responsible for this outcome? (Choose 2)
Your application uses PHP to accept and process file uploads. It fails to upload a file that is 5 MB in size, although upload_max_filesize is set to "10M". Which of the following configurations could be responsible for this outcome? (Choose 2)
正確答案: C,E
問題5
Which of the following is used to find all PHP files under a certain directory?
Which of the following is used to find all PHP files under a certain directory?
正確答案: A
問題6
Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?
Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?
正確答案: C
問題7
What will the following code piece print?
echo strtr('Apples and bananas', 'ae', 'ea')
What will the following code piece print?
echo strtr('Apples and bananas', 'ae', 'ea')
正確答案: C
問題8
What is the output of the following code?
echo "1" + 2 * "0x02";
What is the output of the following code?
echo "1" + 2 * "0x02";
正確答案: B
問題9
What is the length of a string returned by: md5(rand(), TRUE);
What is the length of a string returned by: md5(rand(), TRUE);
正確答案: C
問題10
Which of the following is correct? (Choose 2)
Which of the following is correct? (Choose 2)
正確答案: B,E
問題11
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
正確答案: A
問題12
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
正確答案: B
問題13
Which of the following statements is NOT true?
Which of the following statements is NOT true?
正確答案: D
問題14
What is the recommended method of copying data between two opened files?
What is the recommended method of copying data between two opened files?
正確答案: E