1. Question: Which of the following is correct way to use curly brace in the string?

    A
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {$capitals["bangladesh"]}";

    B
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {{$capitals["bangladesh"]}}";

    C
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {$capitals['bangladesh']}";

    D
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {$capitals[bangladesh]}";

    Note: Not available
    1. Report
  2. Question: Which function is used to get details server information using PHP?

    A
    php_server_info()

    B
    phpinfo()

    C
    php_info()

    D
    server_info()

    Note: Not available
    1. Report
  3. Question: Which function is used to rename flle in PHP?

    A
    rname()

    B
    fname()

    C
    rename()

    D
    change_name()

    Note: Not available
    1. Report
  4. Question: Which key is used to get visitor's IP address using $_SERVER[] super global?

    A
    CLIENT_ADDR

    B
    REMOTE_ADDR

    C
    VISITOR_ADDR

    D
    SERVER_ADDR

    Note: Not available
    1. Report
  5. Question: What do you mean by sanitizing data?

    A
    Remove sensitive information

    B
    Remove html tags

    C
    Convert tag to html entity

    D
    Add escape sequence

    Note: Not available
    1. Report
  6. Question: 
    <?php
    echo $_SERVER[‘REMOTE_ADDR’];
    ?>
    The above statement represents what?

    A
    Shows the IP address of the client

    B
    Shows the IP address of the server

    C
    All

    D
    None

    Note: Not available
    1. Report
  7. Question: Which of the following is correct mail() function of PHP?

    A
    mail("Recipient", "This is the subject", "This is the mail body","headers");

    B
    mail(“Congratulation, Be happy!”,$headers);

    C
    mail("Subject","Body","Recipient")

    D
    mail("to","Boby","subject")

    Note: Not available
    1. Report
  8. Question: How can we assign a unique identifier?

    A
    CookieID

    B
    SessionID

    C
    ClientID

    D
    None

    Note: Not available
    1. Report
  9. Question: Which of the following function return multiple values?

    A
    return()

    B
    list()

    C
    none()

    D
    values()

    Note: Not available
    1. Report
  10. Question: What are the two common characteristics shared by all objects?

    A
    Methods and interfaces

    B
    State and behavior

    C
    Methods and messages

    D
    None

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