1. Question: Which of the following statements is not true with regard to abstract classes in php5?

    A
    Abstract classes are introduced in PHP5

    B
    A class with a single abstract method must be declared abstract

    C
    Abstract class can contain non abstract methods

    D
    Abstract method must have method definition and can have optional empty braces following it

    Note: Not available
    1. Report
  2. Question: What will be the result of the following expression:
    6+4 * 9-3

    A
    60

    B
    87

    C
    39

    D
    30

    Note: Not available
    1. Report
  3. Question: Which of the following printing construct/function accepts multiple parameters?

    A
    echo

    B
    print

    C
    printf

    D
    All of the above

    Note: Not available
    1. Report
  4. Question: Which of the following type cast is not correct?
    1 <?php
    2 $fig = 13;
    3 $varb1 = (real) $fig;
    4 $varb2 = (double) $fig;
    5 $varb3 = (decimal) $fig;
    6 $varb4 = (bool) $fig;
    7?>

    A
    real

    B
    double

    C
    decimal

    D
    boolean

    Note: Not available
    1. Report
  5. Question: What will be the output of the following code?
    $a = 10;
    if($a > 5 OR < 15)
       echo "true";
      else
        echo "false"

    A
    true

    B
    false

    C
    No output

    D
    Parse Error

    Note: Not available
    1. Report
  6. 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
  7. 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
    Error message

    E
    None of the above

    Note: Not available
    1. Report
  8. Question: Which of the following is not a predefined constant in PHP?

    A
    TRUE

    B
    FALSE

    C
    NULL

    D
    _FILE_

    E
    CONSTANT

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

    A
    PHP provides support for XForm

    B
    It can be used on PDF documents

    C
    The data is sent in XML format

    D
    The action and method parameters are defined in the body

    Note: Not available
    1. Report
  10. Question: Which of the following printing construct/function accepts multiple parameters?

    A
    echo

    B
    print

    C
    printf

    D
    All of the above

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