1. Question: Evaluate the following Statements:
    $treat=true;
    If ! ($treat){
    Echo (“Treated”);
    }
    Else {echo (“Not treated”);}
    ?>
    Select correct answer from the followings

    A
    Treated will be displayed

    B
    Not Treated will be displayed

    C
    Script does not work

    D
    None

    Note: Not available
    1. Report
  2. Question: What are the difference between print and echo?

    A
    echo faster than print

    B
    echo return value

    C
    print return value

    D
    echo return true

    Note: Not available
    1. Report
  3. Question: In order to know the data type of variable we need to use built-in function

    A
    getVar()

    B
    gettype()

    C
    getType()

    D
    getDataType()

    Note: Not available
    1. Report
  4. Question: Which of the following statement is correct?

    A
    A static variable does not lose its value when the function exits.

    B
    A static variable loses its value when the function exits.

    C
    A static variable keeps data always.

    D
    None

    Note: Not available
    1. Report
  5. Question: What will be the output?
    <?php
      $value=1
     do{
     $count=3;
     $value=$value+2;
     $value=$count*$value;
     } while ($count >=12);
     echo “value=$value”;
     ?>

    A
    Line 6 will show an error

    B
    Line 8 will show an error

    C
    The output is 12

    D
    The output is 9

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