1. Question: What will be the following script output? <?php $names=array(“Robi”,”Soni”,”Roni”); $name=array_pop($names); print_r($names); ?>

    A
    Array ( [0] => “Robi” [1] => ”Soni” =>”,”Roni”);

    B
    Array ( [0] ] => “Robi” [1] => ”Soni” ] => ”Roni”)

    C
    Array ([0] => ”Soni”[1] =>”Roni”)

    D
    Array ( [0] => “Robi” [1] => ”Soni” )

    Note: Not available
    1. Report
  2. Question: What will be the following script's output? <?php $countryes=array(“India”,”Japan”,”Uk”); $country=array_shift($countryes); print_r($countryes); ?>

    A
    Array ( [0] => ”India” [1] => ” Japan” )

    B
    Array ( [0] => ”India” [1] => ” Japan” [2]=>”Uk”)

    C
    Array ( [1] => ”Japan” [2] => ”Uk” )

    D
    Array ( [0] => ”Japan” [1] => ”Uk” )

    Note: Not available
    1. Report
  3. Question: Which of the following way will you use for creating array in php?

    A
    $colorList =array("blue","black","white");

    B
    $colorList[] = "red"; $colorList[] = "green"; $colorList[] = "black";

    C
    $colorList[0] = "red"; $colorList[1] = "green"; $colorList[2] = "blue";

    D
    $colorList = "red"; $colorList = "green"; $colorList = "blue";

    Note: Not available
    1. Report
  4. Question: If you want to display all elements what will you use of the following script? <?php $colorList[0] = "red"; $colorList[1] = "green"; $colorList[2] = "blue"; $colorList[3] = "black"; ?>

    A
    foreach ($colorList as $value) { echo $value; }

    B
    echo $colorList[0];

    Note: Not available
    1. Report
  5. Question: What will be the followings  script output? <?php $colorList[0] = "red"; $colorList[1] = "green"; $colorList[2] = "blue"; $colorList[3] = "black";      echo sizeof($colorList); ?>

    A
    4 strings

    B
    4

    C
    4 array

    Note: Not available
    1. Report
  6. Question: Which of the following is not a part of OOP?

    A
    Type checking

    B
    Inheritance

    C
    Polymorphism

    D
    Encapsulation

    Note: Not available
    1. Report
  7. Question: Which one of the following terms must relate to "Object"

    A
    Static allocation

    B
    Specific instance of the class models

    C
    Code component

    D
    Attributes of a class

    Note: Not available
    1. Report
  8. Question: variables always start with a __ in php

    A
    pond-sign

    B
    yen-sign

    C
    Doller-sign

    D
    Euro - sign

    Note: Not available
    1. Report
  9. Question: Which of the following is not true?

    A
    PHP can be used to develop web applications.

    B
    PHP makes a website dynamic.

    C
    PHP applications can not be compiled.

    D
    PHP can not be embedded into html.

    Note: Not available
    1. Report
  10. Question: Which of the following function returns the number of characters in a string variable?

    A
    count($variable)

    B
    len($variable)

    C
    strcount($variable)

    D
    strlen($variable)

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