MultipleChoice
Consider the following XML code:
Which of the following SimpleXML calls prints the name of the second book?
(Let $xml = simplexml_load_file("books.xml"); .) (Choose 2)
OptionsFillInTheBlank
Which value will be assigned to the key 0 in this example?
$foo = array(true, '0' => false, false => true);
MultipleChoice
What will the following function call print?
printf('%010.6f', 22);
OptionsMultipleChoice
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';
OptionsMultipleChoice
Which sentence describes the following regular expression match?
preg_match('/^\d+(?:\.[0-9]+)?$/', $test);
OptionsMultipleChoice
What is the return value of the following code: substr_compare("foobar", "bar", 3);
Options