What DOMElement method should be used to check for availability of a non-namespaced attribute?
A. getAttributeNS()
B. hasAttribute()
C. getAttribute()
D. hasAttributeNS()
正解:B
質問 2:
Which parts of the text are matched in the following regular expression?
$text = <<<EOT
The big bang bonged under the bung.
EOT;
preg_match_all('@b.n?g@', $text, $matches);
A. big bang bung
B. bang bong bung
C. bang bonged bung
D. big bang bong bung
正解:D
質問 3:
You want to parse a URL into its single parts. Which function do you choose?
A. parse_url()
B. geturlparts()
C. url_parse()
D. get_url_parts()
正解:A
質問 4:
What is the result of the following bitwise operation in PHP?
1 ^ 2
A. 4
B. -1
C. 1
D. 3
E. 2
正解:D
質問 5:
Which interfaces could class C implement in order to allow each statement in the following code to work? (Choose 2) $obj = new C();
foreach ($obj as $x => $y) { echo $x, $y; }
A. ArrayObject
B. ArrayAccess
C. IteratorAggregate
D. Iterator
正解:C,D
質問 6:
What parsing methodology is utilized by the SimpleXML extension?
A. Push/Pull Approach
B. SAX
C. Expat
D. XPath
E. DOM
正解:E
質問 7:
The following form is loaded in a recent browser and submitted, with the second select option selected:
<form method="post">
<select name="list"> <option>one</option> <option>two</option> <option>three</option>
</select> </form>
In the server-side PHP code to deal with the form data, what is the value of $_POST['list'] ?
A. two
B. null
C. 1
D. 2
正解:A
Nagai -
Pass4Testで買った200-550問題集は本試験の問題にも入ていて、高得点で受かりました。