When a class is defined as final it:
A. Is no longer iteratable.
B. Cannot be defined as such, final is only applicable to object methods.
C. Can no longer be extended by other classes.
D. Means methods in the class are not over-loadable.
正解:C
質問 2:
Which sentence describes the following regular expression match?
preg_match('/^\d*(?:\.[0-9]+)?$/', $test);
A. It does not match anything
B. It matches float numbers with thousand separators.
C. It matches float numbers without thousand separators.
D. It matches any string.
E. It matches binary integer numbers.
正解:C
質問 3:
Which of the following data types cannot be directly manipulated by the client?
A. User Agent
B. Session Data
C. Cookie Data
D. Remote IP Address
正解:B
質問 4:
You want to test if a string matches a relatively complex pattern. Which of the following functions can you use? (Choose 2)
A. match()
B. ereg()
C. preg_match()
D. regex()
正解:B,C
質問 5:
Given the following code, what is correct?
function f(stdClass &$x = NULL) { $x = 42;
}
$z = new stdClass;
f($z);
var_dump($z);
A. Result is 42
B. Result is NULL
C. Error: Typehints cannot be NULL
D. Error: Typehints cannot be references
E. Result is object of type stdClass
正解:A
質問 6:
What does the __FILE__ constant contain?
A. The filename of the current script.
B. The URL of the request made.
C. The full path to the current script.
D. The path to the main script.
正解:C
質問 7:
What will the following code print?
echo addslashes('I am a <b>small</b> "HTML" string, which is
\'invalid\'</u>.');
A. I am a <b>small</b> \"HTML\" string, which is \\'invalid\\'</u>.
B. I am a <b>small</b> \"HTML\" string, which is \'invalid\'</u>.
C. I am a \<b\>small\<\/b\> "HTML" string, which is 'invalid'\<\/u\>.
D. I am a <b>small</b> "HTML" string, which is 'invalid'</u>.
E. I am a <b>small</b> \"HTML\" string, which is \\\'invalid\\\'</u>.
正解:B
質問 8:
What is the output of the following code?
echo "22" + "0.2", 23 . 1;
A. 220.2231
B. 22.2231
C. 22.2,231
D. 56.2
正解:B
1034 お客様のコメント





田川** -
ありがとねPass4Testさんまた、図解を豊富に取り入れて、知識を整理できるようにしました。200-500の問題集、今までの出会いで一番いい問題集でした。