1. Question: Which is faster output system?

    A
    echo

    B
    print

    C
    printf

    D
    None

    Note: Not available
    1. Report
  2. Question: Which is ideal statement  when we want to output a blend of static text and dynamic information stored within one or several variables?

    A
    Print()

    B
    printf()

    C
    echo()

    D
    None

    Note: Not available
    1. Report
  3. Question: printf("Bar inventory:%d bottles of tonic water.",100); What will its output?

    A
    Bar inventory:100 bottles of tonic water.

    B
    Bar inventory:100.00 bottles of tonic water.

    C
    Bar inventory: bottles of tonic water 100.

    D
    None

    Note: Not available
    1. Report
  4. Question: The following piece of script will output: <?php $v="allah is almighty"; echo ucwords($v); ?>

    A
    Allah Is Almighty

    B
    allah is almighty

    C
    Allah is almighty

    D
    allah is Almighty

    Note: Not available
    1. Report
  5. Question: The following piece of script will output: <?php $pswd= strlen("Robinson  crusoe"); echo $pswd; ?>

    A
    16

    B
    Robinson crusoe

    C
    17

    D
    robinson crusoe

    Note: Not available
    1. Report
  6. Question: What will be the correct output of the following syntax? <?php $v=ucfirst("nothing to say"); echo $v; ?>

    A
    Nothing to say

    B
    13

    C
    nothing to say

    D
    14

    Note: Not available
    1. Report
  7. Question: What will be the correct output of the following syntax? <?php $v=strip_tags("<a href='moni@yahoo.com'>moni@yahoo.com</a>"); echo $v; ?

    A
    B
    yahoo.com

    C
    D
    moni@

    Note: Not available
    1. Report
  8. Question: Just click it’s output <?php $m= "moni56"; if (ereg("(^[a-zA-Z])",$m)) echo "valid password"; else echo "invalid passwords"; ?>

    A
    valid password

    B
    invalid passwords

    C
    Both incorrect

    D
    Both correct

    Note: Not available
    1. Report
  9. Question: What will be the output of the followings? <?php $m= "Just forgate that\n work hard give you win\t I thing study smartly and \ndefine your goal \tthen walk confidently"; print_r(split("[\n\t]",$m )); ?>

    A
    Array ( [0] => Just forgate that [1] => work hard give you win [2]=> i thing study smartly and [3] => define your goal[4] => then walk confidently )

    B
    Just forgate that work hard give you win I thing study smartly and define your goal then

    C
    (Just forgate that work hard give you win I thing study smartly and define your goal then)

    D
    [0] => Just forgate that [1] => work hard give you win [2] => i thing study smartly and [3] => define your goal [4] => then walk confidently

    Note: Not available
    1. Report
  10. Question: Checks it's output <?php $v=sql_regcase("php 6"); echo $v; ?>

    A
    [Pp][Hh][Pp] 6

    B
    [P][H][P] 6

    C
    (Pp)(Hh)(Pp) 6

    D
    [pP][ hH][ pP] 6

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