is in the namespace myapp. 5. What is the correct way to import the hello namespace so you can use the world() function? a. use hello b. use utils\hello c. use myapp\utils\hello d. use myapp\utils\hello\world
from a remote web service into browser- readable HTML. Users complain that the script takes a long time to run. 10. Wich of the following measures usually leads to the best results? (Choose 2) a. Install a bytecode cache b. Install an SSD drive on the server c. Cache the data returned by the web service locally d. Upgrade to the lastest version of PHP
0); define('EMPTY', ''); if (!empty(EMPTY)) { if (!((bool) _CONSTANT)) { print "One"; } } elseif (constant('CONSTANT')==1) { print "Two": } a. One b. Two c. Syntax error
from a text file. 13. Which function call should be inserted in place of the question marks in order for the script to function correctly? <?php $file = fopen("test", "r"); while(!feof($file)) { echo ????????????; } fclose($file); a. file_get_contents($file) b. file($file) c. read_file($file) d. fgets($file) e. fread($file)
directly from a browser? <?php header ("Content-type: image/jpeg"); ?> <?php readfile ("image.jpg"); ?> a. As a JPEG image b. As a binary file for display within the browser c. As a binary file for download d. As a JPEG file for download e. As a broken image
scripts into binary objects to make them run faster b. It replaces the Zend Engine to provide a faster interpreter c. It caches a script’s output to improve its performance d. It improves performance by caching the intermediate code produced by the parser e. It caches a script in memory, thus eliminating the need for reloading it from disk at every iteration