Main Snake Zend Zend Questions Exam Quicktest MZend Zend-Race

12m 00s


Question: 1 (ID:257)

ID: 257


Which of the following joins retrieves all rows from one table and only the matching rows from the joined table?





Question: 2 (ID:213)

ID: 213


Which function is used to allow a parser to be used within an object?





Question: 3 (ID:400)

ID: 400


The following script defines a function called buildUrl(), which is intended to be a crude way of normalizing URLs. What line of code must be inserted into buildUrl() to ensure $url1 and code $url2 are both equal to http://phpriot.com/quiz/?


                        
function buildUrl($domain, $path) {
    // insert line of code here
    return $ret;
}

$domain1 = 'http://phpriot.com/';
$domain2 = 'http://phpriot.com';
$path    = '/quiz/';

$url1 = buildUrl($domain1, $path);
$url2 = buildUrl($domain2, $path);                    



Question: 4 (ID:304)

ID: 304


Which of the following functions will you use to copy data between two opened files?





Question: 5 (ID:283)

ID: 283


You have the following code in the welcome.html file:


                        
<form action="welcome.php" method="post">
    Your Name: <input type="text" name="fname" />
    Your Girl Friend Name: <input type="text" name="fname" />
    <input type="submit" />
</form>                    

The PHP code of the welcome.php file is as follows:



Question: 6 (ID:519)

ID: 519


When opening a file in writing mode using the FTP handler, what must be done so that the file will still be written to the server in the event it previously exists?





Question: 7 (ID:349)

ID: 349


What is the output of the following PHP script?


                        
for ($i = 0; $i < 3; $i++) {
    for ($j = 3; $j > 0; $j--) {
        if ($i == $j) {
            break;
        }
        echo $j;
    }
}                    



Question: 8 (ID:666)

ID: 666


When checking to see if two variables contain the same instance of an object, which of the following comparisons should be used?





Question: 9 (ID:228)

ID: 228


You run the following PHP script:


                        
$x = 'john';
echo substr_replace($x, 'jenny', 0, 0);                    



Question: 10 (ID:544)

ID: 544


Removing undesired markup tags from input can best be done using which function?