$_SERVER consists of data provided by the web server and is therefore trustworthy.
A. TRUE
B. FALSE
正解:B
質問 2:
What is the result of the following code?
$a = 1;
$b = "1";
var_dump($a === $b);
A. Parser error
B. bool(true
C. bool(false)
D. NULL
正解:C
質問 3:
What does the chown() function do?
A. Checks if the file is accessible.
B. Change the owner of the file.
C. Change the group of the file.
D. Change the file permissions.
正解:B
質問 4:
How many array elements will be found in the return value of:
split(".", "
A. 4
B. B.C")
C. 1
D. 3
E. 6
F. 2
正解:C
質問 5:
What is the output of the following code?
str_pad('PHP', 10, 'P', STR_PAD_BOTH);
A. H
B. PPPPHPPPPP
C. PPPPPPPPHP
D. PHPPPPPPPP
正解:B
質問 6:
Which options do you have in PHP to set the expiry date of a session?
A. Set the session.duration directive in php.ini
B. Set session cookie expiry date locally via session_set_cookie_params()
C. Set session expiry date locally via session_cache_expire()
D. None of the above
正解:D
質問 7:
Which of the following code snippets writes the content of the file "source.txt" to
"target.txt"? (Choose 3)
A. $handle = fopen("target.txt", "w+"); fwrite($handle,
file_get_contents("source.txt")); fclose($handle);
B. file_put_contents("target.txt", fopen("source.txt", "r"));
C. file_put_contents("target.txt", join(file("source.txt"), ""));
D. file_put_contents("target.txt", file_get_contents("source.txt"));
E. file_put_contents("target.txt", readfile("source.txt"));
正解:A,B,D
質問 8:
What super-global should be used to access information about uploaded files via a POST request?
A. $_FILES
B. $_ENV
C. $_GET
D. $_POST
E. $_SERVER
正解:A
質問 9:
Which string will be returned by the following function call?
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/'));
A. "/conf.d/wireless"
B. ""
C. "/etc"
D. "wireless"
E. "/wireless"
正解:E
松村** -
私は暗記のために自分でノートを作っていました。200-500試験は暗記が勝負のところがあるので、そこは少し手間かもしれません。