1. Question: What is true regarding $a+$b where both of them are arrays?

    A
    Duplicated keys are NOT overwritten

    B
    $b is appended to $a

    C
    The + operator is overloaded

    D
    This produces a syntax error

    Note: Not available
    1. Report
  2. Question: What will be the output of the following code?

    Function fn(&$var)

    {

                   $var=$var-($var/10*5);

                   Return $var;

    }

    Echo fn(100);

    A
    100

    B
    50

    C
    98

    D
    Eror Message

    E
    None

    Note: Not available
    1. Report
  3. Question: The inbuilt function to get the number of parameters passed is:

    A
    Arg_num()

    B
    Func_args_count()

    C
    Func_num_args()

    D
    ALL

    E
    None

    Note: Not available
    1. Report
  4. Question: Consider the following two statements:                                                    

    I.           While (expr) statement
    II.           
    While (expr): statement … endwhile;

    Which of the following are true in context of the given statements?

    A
    I is correct and II is wrong

    B
    I is wrong and II is correct

    C
    Both I & II are wrong

    D
    Both I & II are correct

    E
    None

    Note: Not available
    1. Report
  5. Question: We have two variable definitions:

    A.     023

    B.     X23

    Choose the correct options:

    A
    A is octal

    B
    B is hexadecimal

    C
    B is octal

    D
    A is hexadecimal

    E
    All

    Note: Not available
    1. Report
  6. Question: What will be the output of the following code?

    $var=10;

    Function Fn()

    {

                   $var=20;

    Return $var;

    }

    Fn();

    Echo $var;

    A
    10

    B
    20

    C
    Undefined Variable

    D
    Syntax Error

    Note: Not available
    1. Report
  7. Question: You have defined three variables $to, $subject, and $body to send an email. Which of the following methods would you use for sending an email?

    A
    Mail($to,$subject,$body)

    B
    Sendmail($to,$subject,$body)

    C
    Mail(to,subject,body)

    D
    Sendmail(to,subject,body)

    Note: Not available
    1. Report
  8. Question: Which of the following statements is correct with regard to interfaces?

    A
    A class can implement multiple interfaces

    B
    An abstract class cannot implement multiple interfaces

    C
    An interface can extend multiple interfaces

    D
    Methods with same name, arguments, sequence can exist in the different interfaces implemented by a class

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

    A
    Setcookie(“OrderCookie”,34);

    B
    Make Cookie(“OrderCookie”,34);

    C
    Cookie(“OrderCookie”,34);

    D
    OrderCookie(34);

    Note: Not available
    1. Report
  10. Question: A possible way to collect real-time statistics about traffic to a WordPress site is to

    A
    use a built-in tool

    B
    use a plug-in

    C
    use a widget

    D
    None of the above

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