Main Snake Zend Zend Questions Exam Quicktest MZend Zend-Race

12m 00s


Question: 1 (ID:489)

ID: 489


Which object method is automatically called when an object is cloned?





Question: 2 (ID:695)

ID: 695


What happens when the script below is executed ?


                        
namespace CustomArea;
error_reporting(E_ALL);
ini_set("display_errors", "on");
function var_dump($a) {
  return str_replace("Weird", $a, "Weird stuff can happen");
}
$a = "In programming";
echo var_dump($a);                    



Question: 3 (ID:136)

ID: 136


What is the output of the following code?


                        
interface foo {}
class_alias('foo', 'bar');
echo interface_exists('bar') ? 'yes' : 'no';                    



Question: 4 (ID:340)

ID: 340


What is the output of the following script?


                        
$str = "Hello";
if ($str == "Hello") {
    echo "a";
} else if ($str == "Goodbye") {
    echo "b";
} elseif ($str == "Hello") {
    echo "c";
} else
    echo "d";                    



Question: 5 (ID:352)

ID: 352


What is the output of the following script?


                        
$number = 25;
if ($number <= 25) {
    echo "lte";
} else if ($number == 25) {
    echo "e";
} else if ($number >= 25) {
    echo "gte";
} else {
    echo "o";
}                    

Enter the exact script output



Question: 6 (ID:124)

ID: 124


Which of the following statements correctly explains the use of instanceof and type hinting? Each correct answer represents a complete solution (Choose three).





Question: 7 (ID:324)

ID: 324


What is the output of the following PHP script?


                        
$myVar = 'foo';
$$myVar = 'bar';
echo $'myVar';                    



Question: 8 (ID:755)

ID: 755


Take a look at the following code


                        
function myFunction($a) {
    $a++;
}
$b = 1;
myFunction($b);                    

What code do you need to replace so that $b has the value 2 at the end of the script? (May be multiple answers)



Question: 9 (ID:104)

ID: 104


What will be the output of the following PHP script?


                        
$array = [
    'a' => 'One', 
    'b' => 'Two', 
    'c' => [
        'd' => 'Three', 
        'e' => 'Four'
   ]
];
function print_element($array) {
    extract($array);
    return $c['e'];
 }
 print print_element($array);                    



Question: 10 (ID:183)

ID: 183


Which of the following are the methods used for producing web services?