1. Question: What will be the output?
    <?php
      $i=0;
    while($i<=10){
       if($i<=5){
        continue;
       }
       print($i);
       $i=$i+1;
    }
    ?>

    A
    1

    B
    Infinitive

    C
    5

    D
    10

    Note: Not available
    1. Report
  2. Question: What will be the output?
    <?php
      $i=1;
      do{
        $i++;
        print($i);
      }while($i<=0);
    ?>

    A
    1

    B
    2

    C
    0

    D
    none

    Note: Not available
    1. Report
  3. Question: What will be the output?
    <?php
    foreach($i=1;<$i<=5;$i++){
      print($i);
    }
    ?>

    A
    1

    B
    5

    C
    2

    D
    syntax error

    Note: Not available
    1. Report
  4. Question: Which of the following fall into compound data type categories?

    A
    Array and object

    B
    Resource and null

    C
    Array and null

    D
    Resource and object

    Note: Not available
    1. Report
  5. Question: Which of the following fall into special data type category?

    A
    Array and object

    B
    Resource and null

    C
    Array and null

    D
    Resource and object

    Note: Not available
    1. Report
  6. Question: What function is used manipulating PHP configuration variable?

    A
    unset()

    B
    ini_set()

    C
    php_conf

    D
    None

    Note: Not available
    1. Report
  7. Question: Write the output of echo ("35 hello 55"+65); statement?

    A
    155

    B
    120

    C
    100

    D
    90

    Note: Not available
    1. Report
  8. Question: What is the output?
    <?php 
    $array = array(10,20, 30, 40); 
    print_r(array_pad($array,-8,0)); 
    ?>

    A
    [0]=> 0, [1]=> 0, [2]=> 0, [3]=> 0, [4]=> 10, [5]=> 20, [6]=> 30, [7]=> 40

    B
    [0]=> 10, [1]=> 20, [2]=> 30, [3]=> 40, [4]=> 0, [5]=> 0, [6]=> 0, [7]=> 0

    C
    [0]=> 10, [1]=> 20, [2]=> 0, [3]=> 0, [4]=> 0, [5]=> 0, [6]=> 30, [7]=> 40

    D
    None

    Note: Not available
    1. Report
  9. Question: What is the output for the following code?
    <?php 
    $array = array(10,20, 30, 40);
    array_shift($array); 
    print_r($array); 
    ?>

    A
    [0]=> 20, [1]=> 30, [2]=> 40

    B
    [0]=> 10, [1]=> 20, [2]=> 30

    C
    [0]=> 30, [1]=> 40, [2]=> 10

    D
    [0]=> 40, [1]=> 30, [2]=> 20

    Note: Not available
    1. Report
  10. Question: What is the output?
    <?php 
    $array = array("x"=>"10","y"=>20, "z"=>30); 
    $values=array_flip($array); 
    print_r($values); 
    ?>

    A
    Array ( [x] => 10 [y] => 20 [z] => 30 )

    B
    Array ( [10] => x [20] => y [30] => z )

    C
    Array ( [0] => x [1] => y [2] => z )

    D
    Array ( [x] => 30 [y] => 20 [z] => 10 )

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