1. Question: The practice of storing bits of information on the client's machine is called ______.

    A
    Cookies

    B
    Session

    C
    HTTP

    D
    None

    Note: Not available
    1. Report
  2. Question: How many configuration directives are responsible for tweaking PHP's session-handling behavior?

    A
    30

    B
    40

    C
    50

    D
    20

    Note: Not available
    1. Report
  3. Question: Which of the following is/are data type attribute?

    A
    SET

    B
    NATIONAL

    C
    BINARY

    D
    ZEROFILL

    Note: Not available
    1. Report
  4. Question: Which of the following is/are data type attribute?

    A
    DEFAULT

    B
    INDEX

    C
    NULL

    D
    TEXT

    Note: Not available
    1. Report
  5. Question: Find out the correct output of the following :
    <?php
      ini_set("max_execution_time",120);
       $rangeStart = 0;
       $rangeStop = 1024;
       $target = "localhost";
       $range= range($rangeStart,$rangeStop);
      echo "<p>Scan results for $target</p>";
     
       foreach($range as $p){
         $result=@fsockopen($target,$p,$errno,$errstr,1);
         if($result) echo "<p>Socket open at port $p</p>";
    }
    ?>

    A
    Scan results for localhost
    Socket open at port 631
    Socket open at port 22
    Socket open at port 80


    B
    Socket open at port 22
    Socket open at port 80
    Socket open at port 631
    Scan results for localhost

    C
    Scan results for localhost
    Socket open at port 22
    Socket open at port 80
    Socket open at port 631

    D
    Scan results for localhost
    Socket open at port 80
    Socket open at port 28
    Socket open at port 631

    Note: Not available
    1. Report
  6. Question: Which function erases all session variables stored in the current session?

    A
    session_unset()

    B
    session_start()

    C
    session_encode()

    D
    None

    Note: Not available
    1. Report
  7. Question: 
    <?php
       echo "Port 80's default service is: ".getservbyport(80, "tcp");
    ?>
    The code returns the following:

    A
    Port 80's default service is:www

    B
    Port 80's default service is: 80, tcp

    C
    Port 80's default service is: 80, Port

    D
    Port 80's default service is: getservbyport(80, "tcp").

    Note: Not available
    1. Report
  8. Question: To use the mysqli extension which line is need to add?

    A
    extension = php_mysql.dll

    B
    extension = php_mysqli.dll

    C
    with.mysql[= DIR]

    D
    php.info()

    Note: Not available
    1. Report
  9. Question: What will be the output of the following? <?php    $http=fsockopen("www.example.com",80);    $req="GET / HTTP/1.1\r\n";    $req.="Host:www.example.com\r\n";    $req.="Connection: Close\r\n\r\n";   fputs($http,$req);     while(!feof($http)){       echo fgets($http,1024);    } fclose($http);   ?>

    A
    HTTP/1.0 302 Moved Temporarily Location:http://www.iana.org/domains/example/ Server: BigIP Content-Length: 0 X-Cache: MISS from proxy1.apcbd.com X-Cache-Lookup: MISS from proxy1.apcbd.com:3128 Via: 1.0 proxy1.apcbd.com:3128 (squid/2.7.STABLE6) Connection: close

    B
    HTTP/1.0 302 Moved Temporarily Location: http://www.iana.org/domains/example/ Server: BigIP Content-Length: 0 X-Cache: MISS from proxy1.apcbd.com X-Cache-Lookup: MISS from proxy1.apcbd.com(squid/2.7.STABLE6) Connection: close

    C
    Server: BigIP Content-Length: 0 X-Cache: MISS from proxy1.apcbd.com X-Cache-Lookup: MISS from proxy1.apcbd.com:3128 Via: 1.0 proxy1.apcbd.com:3128 (squid/2.7.STABLE6) Connection: close

    D
    HTTP/1.0 302 Moved Temporarily Location: http://www.iana.org/domains/example/ Server: BigIP Content-Length: 0 X-Cache: MISS from proxy1.apcbd.com X-Cache-Lookup: MISS from proxy1.apcbd.com:3128 Via: 1.0 proxy1.apcbd.com:3128 (squid/2.7.STABLE6)

    Note: Not available
    1. Report
  10. Question: The mysql function in php are ______.

    A
    Case sensitive

    B
    Case insensitive

    C
    variable

    D
    constant

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