Given the following DateTime objects, what can you use to compare the two dates and indicate that
$ date2 is the later of the two dates?
$ datel = new DateTime('2014-02-03');
$ date2 = new DateTime('2014-03-02');
A. $date2 < $datel
B. $datel->diff($date2) < 0
C. $date2 > $datel
D. $datel->diff($date2) > 0
正解:C
質問 2:
How many elements does the $matches array contain after the following function call is performed?
preg_match('/"(\d{l,2}([a-z]+))(?:\s*)\S+ (?=201(0-9])/', '21st March 2014', $matches);
A. 4
B. 1
C. 3
D. 2
正解:C
質問 3:
One common security risk is exposing error messages directly in the browser. Which PHP configuration
directive can be disabled to prevent this?
A. html_display
B. display_errors
C. error_reporting
D. error _log
E. ignore_repeated_errors
正解:B
質問 4:
What DOM method is used to load HTML files?
A. loadHTML()
B. loadHTMLFile()
C. loadXML()
D. load()
正解:B
質問 5:
Which of the following statements is correct?
A. Interfaces can extend only one interface
B. Interfaces can inherit a method from different interfaces
C. Interfaces can extend more than one interface
D. Interfaces can redeclare inherited methods
正解:C
叶み** -
200-710を見事で合格しました。かなりの的中率でした。ありがとうございました。