1. Question: The inbuilt function to get the number of parameters passed is:

    A
    arg_num()

    B
    func_args_count()

    C
    func_num_args()

    D
    None

    Note: Not available
    1. Report
  2. Question: Which of the following functions output text?

    A
    echo()

    B
    print()

    C
    println()

    D
    display()

    Note: Not available
    1. Report
  3. Question: What will be the output of the following code? $Rent = 250; function Expenses($Other) {     $Rent = 250 + $Other;     retum $Rent; } Expenses(50); echo $Rent;

    A
    300

    B
    250

    C
    200

    D
    Program will not compile

    Note: Not available
    1. Report
  4. Question: Consider the following class: 1 class lnsurance 2 { 3 function clsName() 4 } 5 echo get_class($this); 6 } 7 } 8 $cl = new lnsurance(); 9 $cl->clsName(); 10 lnsurance::clsName(); Which of the following Lines should be commented to print the class name without errors?

    A
    Line 8 and 9

    B
    Line 10

    C
    Line 9 and 10

    D
    All the three lines 8,9 and 10 should be left as it is.

    Note: Not available
    1. Report
  5. Question: In your PHP application you need to open a file. You want the application to issue a warning and continue execution, in case the file is not found. The ideal function to be used is:

    A
    include()

    B
    require()

    C
    nowarn()

    D
    getFile(false)

    Note: Not available
    1. Report
  6. Question: How would you store order number (34) in an OrderCookie?

    A
    setcookie("OrderCookie", 34);

    B
    makeCookie("OrderCookie", 34);

    C
    Cookie("OrderCookie", 34);

    D
    OrderCookie(34);

    Note: Not available
    1. Report
  7. Question: n PHP, is i: possible to upload multiple files from the same page?

    A
    yes

    B
    no

    Note: Not available
    1. Report
  8. Question: In PHP, functions cannot return value by refernce.

    A
    true

    B
    false

    Note: Not available
    1. Report
  9. Question: Which of the following variable names are not correct?

    A
    $var_1

    B
    $var1

    C
    $var-1

    D
    $var/1

    E
    $v1

    Note: Not available
    1. Report
  10. Question: n PHP logical AND operator is represented by:

    A
    &

    B
    &&

    C
    And

    D
    AND

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