1. Question: which of the following variable declaration within a class is invalid in PHP5?

    A
    private $type = “moderate”;

    B
    var $term = 3;

    C
    public $amn = “500″;

    D
    protected $name = ‘Quantes Private Limited’;

    Note: Not available
    1. Report
  2. Question: which of the following is not valid PHP parser tag?

    A
    script

    B
    ?p

    C
    %

    D
    ?php;

    Note: Not available
    1. Report
  3. Question: How can you hide the fact that web pages are written in PHP?

    A
    By using AddType application/X-httpd-php asp

    B
    Specify all file names without any dot and extension

    C
    By using .htaccess diretive in Apeche

    D
    All of the above

    Note: Not available
    1. Report
  4. Question: What is the output of the following code? $a = 3; $b = 2; echo (int)$a/(int)$b ?>

    A
    1

    B
    1.5

    C
    2

    D
    3

    Note: Not available
    1. Report
  5. Question: Which one is correct?

    A
    $s = fwrite (“a string here”);

    B
    $s = fwrite ($fp,”a string here”);

    C
    $s = fwrite (“a string here”,$fp);

    D
    non of the above

    Note: Not available
    1. Report
  6. Question: Which of the following set of operations is not valid in PHP 5?

    A
    >, >=

    B
    =,==

    C
    !==,!==

    D
    +=, *=

    Note: Not available
    1. Report
  7. Question: : Late PHP version support remote file accessing for the functions:

    A
    include()

    B
    include_once()

    C
    require_once()

    D
    All of the above

    Note: Not available
    1. Report
  8. Question: What will be the output of the following script?
    $count=50;
    function Argument()
    {
    $count++;
    echo $count;
    }
    Argument()
    ?>

    A
    It will print 50

    B
    It will print 51

    C
    It will print 52

    D
    It will print 1

    Note: Not available
    1. Report
  9. Question: which of the following are used for code reuse?

    A
    Loops

    B
    functions

    C
    Database

    D
    include files

    Note: Not available
    1. Report
  10. Question: which of the following is the corect way of specifying default value?

    A
    Function GetDiscount($Type = “Special”) {………}

    B
    Function GetDiscount(Type := “Special”) {………}

    C
    Function GetDiscount($Type: = “Special”) {………}

    D
    Function GetDiscount($Type : “Special”) {………}

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