1. Question: $_COOKIE, $_SERVER, $_POST are ______ array.

    A
    surperglobal

    Note: Not available
    1. Report
  2. Question: An ______ is a symbol that specifies a particular action in an expression.

    A
    operator

    Note: Not available
    1. Report
  3. Question: Operator ______ is a characteristic of operators that determines the order in which they evaluate the operands surrounding them.

    A
    precedence

    Note: Not available
    1. Report
  4. Question: ______ operators examine and manipulate interger values on  the level of individual bits that make up the integer value.

    A
    Bitwise

    Note: Not available
    1. Report
  5. Question: ______ syntax allows large amount of text to printed ignoring double or single quotes. example

    <?php

    echo <<<EXCERPT
    ...
    ...
    ...
    EXCERPT;

    ?>

    A
    heredoc

    Note: Not available
    1. Report
  6. Question: Which of the following are valid PHP variables?

    A
    @$foo

    B

    C

    D
    $variable

    E
    $0x0

    Note: Not available
    1. Report
  7. Question: What is the best way to iterate and modify every element of an array using PHP 5?

    A
    You cannot modify an array during iteration

    B
    for($i = 0; $i < count($array); $i++) { /* ... */ }

    C
    foreach($array as $key => &$val) { /* ... */ }

    D
    foreach($array as $key => $val) { /* ... */ }

    E
    while(list($key, $val) = each($array)) { /* ... */

    Note: Not available
    1. Report
  8. Question: What is the output of the following PHP code? <?php define('FOO', 10); $array = array(10 => FOO, "FOO" => 20); print $array[$array[FOO]] * $array["FOO"]; ?>

    A
    FOO

    B
    100

    C
    200

    D
    20

    E
    10

    Note: Not available
    1. Report
  9. Question: What is the output of the following PHP script? <?php $a = 1; $b = 2.5; $c = 0xFF; $d = $b + $c; $e = $d * $b; $f = ($d + $e) % $a; print ($f + $e); ?>

    A
    643.75

    B
    432

    C
    643

    D
    257

    E
    432.75

    Note: Not available
    1. Report
  10. Question: What combination of boolean values for $a, $b, $c, and $d will result in the variable $number being equal to 3? <?php $a = null; $b = null; $c = null; $d = null; if($a && !$b) { if(!!$c && !$d) { if($d && ($a || $c)) { if(!$d && $b) { $number = 1; } else { $number = 2; } } else { $number = 3; } } else { $number = 4; } } else { $number = 5; } ?>

    A
    false, true, true, true

    B
    true, false, true, false

    C
    true, true, false, false<

    D
    false, true, true, false

    E
    false, false, true, false

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd