Monday 19 March 2012

Internet, Web Programming and Java MCQ 15


  1. Full form of CGI

    1. Computer Graphics Interface
    2. Common Gateway Interface
    3. Common Graphics Interface
    4. Computer Gateway Interface

  1. The different ways to send data to the CGI program

    1. Arguments of the CGI program
    2. Environment variables
    3. Standard input
    4. All of these

  1. CGI  is a set of rules that works as an __________________

    1. Interface between web server
    2. External programs on the web server
    3. Both a & b
    4. None of these

  1. The CGI  programs are the files with extensions __________ or _________

    1. CGI, .PL
    2. CGI, .BL
    3. CGI, .DL
    4. CGI,  PL

  1. Earlier, servers that were supporting CGI had provided a common directory named ___________  to store CGI program

    1. cgi-debug
    2. cgi-bin
    3. cgi-jdk
    4. cgi-jdbc

  1. ___________ works as an intermediary between the user and the server where direct access  of information from the server in not readable by the user

    1. Forms
    2. Status
    3. Location
    4. Gateways

  1. __________ are created dynamically in response to user request:

    1. Virtual Documents
    2. `Dynamic document
    3. Both of these
    4. None if these

  1.   _____________ environment variable specifies the name of the web server host:

    1. SERVER_NAME
    2. WEB_SERVER
    3. WEB_BROWSER
    4. ALL OF THESE

  1. CGI complete its program processing it passes the resultant data to the ___________;

    1. Web browser
    2. Web server
    3. Server
    4. All of these

  1. The web server then responds back to the  _____________ accordingly:

    1. Web browser
    2. Web server
    3. Server
    4. All of these

  1.  The data can be passed to CGI program in one of the following way:

    1. Argument of the CGI program
    2. Environment variable
    3. Standard input
    4. All of these

12.  This information is sent to the CGI program in the ___________ environment program:

    1. Query_String                           
    2. QUERY_STRING
    3. QUERY STRING
    4. ALL OF THESE

  1. It specifies  the name of host issuing request:

    1. REMOTE_HOST
    2. REMOTE HOST
    3. Remote_host
    4. None of these

  1. It specifies  the name of user issuing request:

    1. REMOTE_USER
    2. REMOTE USER
    3. Remote_user
    4. None of these

  1. It  specifies the address of the system of the user issue the request:

    1. REMOTE ADDR
    2. Remote_Addr
    3. Remote addr
    4. REMOTE_ADDR

  1. It specifies the request method used by the browser:

    1. REQUEST METHOD
    2. REQUEST_METHOD
    3. Request}_method
    4. None of these

       17. The server does not mark the and of data with an ____________ character:

    1. COF
    2. BOF
    3. EOF
    4. NONE OF THESE

  1. The CGI program use __________ environment  variable to read the data correctly:

    1. CONTENT_LENGTH
    2. CONTENT LENGTH
    3. Content _length
    4. None of these

    1.  
  1. The CGI output must consist of any of these ____________ header files:

    1. 1
    2. 5
    3. 3
    4. 4

    1.  
  1. Which are the header types :

    1. Content-type
    2. Location
    3. Status
    4. All of these

  1. It contains a number of graphical widgets to get the information fro the user:

    1. Radio button
    2. Text fields
    3. Check boxes
    4. All of these

  1. There is one dynamic information that is:

    1. Adc.com
    2. abc.com
    3. ABC.COM
    4. ADC.COM

  1. Advantages of CGI:

    1. Platform independent
    2. Language independence
    3. Simplicity
    4. All of these

23.  CGI program also known as ___________

    1. CGI scripts
    2. Server side web programs
    3.  Both of these
    4. None of these





  1. The major application of CGI are forms

    1. Gateways
    2. Dynamic document
    3. Both of these
    4. None of these


5 comments :