Zend Certification Read 5 Sample Questions

Events happening in the community are now at Drupal community events on www.drupal.org.
hariharasuthan_mk's picture
  1. Which of the following snippets prints a representation of 10 with two decimal places?
  2. A.
    printf("%.2d\n", 10);
    B.
    printf("%1.2f\n", 10);
    C.
    printf("%1.2u\n",10);
  3. Given $text = 'Content-Type: text/xml'; Which of the following prints 'text/xml'?
  4. A.
    print substr($text, strchr($text, ':'));
    B.
    print substr($text, strchr($text, ':') + 1);
    C.
    print substr($text, strpos($text, ':') + 1);
    D.
    print substr($text, strpos($text, ':') + 2);
    E.
    print substr($text, 0, strchr($text, ':'
  5. What does <? echo count ("143") ?> print out?
  6. A.
    3
    B.
    False
    C.
    Null
    D.
    1
    E.
    0
  7. What is the value of $a?
    <?php
       $a
    = 100 == 0100;  
    ?>
  8. A.
    True
    B.
    False
  9. What will be the output of the following PHP code:

    <?php
     
                    
    echo count(strlen("http://drupal.org")); 
                    
    ?>