Main Snake Zend Zend Questions Exam Quicktest MZend Zend-Race

12m 00s


Question: 1 (ID:449)

ID: 449


Is the following valid PHP code?


                        
<php>
echo 'There's a worm in my apple';
</php>                    



Question: 2 (ID:757)

ID: 757


What is the output of the following code?


                        
function increment($val) {
    return ++$val;
}

echo increment(1);                    



Question: 3 (ID:546)

ID: 546


What is the output of the following?


                        
function a($number) {
    return (b($number) * $number);
}
function b(&$number) {
    return ++$number;
}
echo a(5);                    



Question: 4 (ID:634)

ID: 634


SQL Injections can be best prevented using which of the following database technologies?





Question: 5 (ID:277)

ID: 277


Fill in the blank with the appropriate function name. The __ function is used to set a cookie to be sent along with the rest of the HTTP headers.





Question: 6 (ID:665)

ID: 665


What is the primary benefit of a SAX-based XML parser compared to DOM?





Question: 7 (ID:243)

ID: 243


You have been given the following code snippet:


                        
$stmt = $dbh->prepare("SELECT * FROM USER where name = ?");
if ($stmt->execute(array($_GET['name']))) {
  while (??????) {
    print_r($row);
  }
}                    

What will you write at line number 4 to fetch data from database?



Question: 8 (ID:481)

ID: 481


What does the chr() function do?





Question: 9 (ID:126)

ID: 126


Which of the following options shows the correct format of fetching class variables using the $this variable?





Question: 10 (ID:64)

ID: 64


You run the following script:


                        
10 = $a;
echo $a;                    

What will be the output?