Main Snake Zend Zend Questions Exam Quicktest MZend Zend-Race

12m 00s


Question: 1 (ID:460)

ID: 460


Is this statement true or false? "Methods declared as static must be called statically"





Question: 2 (ID:284)

ID: 284


Which of the following statements is true about deleting a client's cookie?





Question: 3 (ID:187)

ID: 187


Which of the following is used to retrieve the name of an XML element from a SimpleXMLElement object?





Question: 4 (ID:705)

ID: 705


Considering the following code which of the statements below is true ?


                        
class entity {
    public $name;
}
$human = new entity();
$dog = new entity();
$human->name = 0;
$dog->name = "";                    



Question: 5 (ID:47)

ID: 47


What is the length of the hash generated by the crc32() crypto function?





Question: 6 (ID:229)

ID: 229


Consider a string in the following format:


                        
a*bcd/a.d                    

You want to perform regular expression in this string; however, you are unable to do this since the string contains special characters. You can make this string PCRE compatible if you convert this string in the following format:



Question: 7 (ID:632)

ID: 632


What is the output of the following script?


                        
class ClassOne {
    protected $a = 10;
    public function changeValue($b) {
        $this->a = $b;
    }
}

class ClassTwo extends ClassOne {
    protected $b = 10;
    public function changeValue($b) {
        $this->b = 10;
        parent::changeValue($this->a + $this->b);
    }
    public function displayValues() {
        print "a: {$this->a}, b: {$this->b}\n";
    }
}

$obj = new ClassTwo();
$obj->changeValue(20);
$obj->changeValue(10);
$obj->displayValues();                    



Question: 8 (ID:656)

ID: 656


Creating new nodes in XML documents using PHP can be done using which XML/PHP 5 technologies?





Question: 9 (ID:801)

ID: 801


What is the ouput of the following code?


                        
class Magic {
    public $a = "A";
    protected $b = ["a" => "A", "b" => "B", "c" => "C"];
    protected $c = [1, 2, 3];

    public function __get($v)
    {
        echo "$v,";
        return $this->b[$v];
    }

    public function __set($var, $val)
    {
        echo "$var: $val,";
        return $this->$var = $val;
    }
}

$m = new Magic();
echo $m->a . "," . $m->b . "," . $m->c . ",";
$m->c = "CC";
echo $m->a . "," . $m->b . "," . $m->c;                    



Question: 10 (ID:54)

ID: 54


Which of the following is NOT a strongly typed language?