CGI Client - Server Architecture - Quiz Explanation

The correct answers are indicated below, along with text that explains the correct answers.
 
1. A CGI program can:
Please select the best answer.
  A. Generate on-the-fly Web page updates
  B. Update an existing Web page in a Web browser
  C. Generate any object that can be displayed in a Web browser
  The correct answer is C.
A CGI program can generate any object that can be displayed in a Web browser. On-the-fly Web page updates are not supported by HTML or by the HTTP connection. The HTTP connection does not have a method for replacing part of an object without sending an entire new object. And D is incorrect because input to a CGI program can originate from forms, imagemaps, databases, URLs, and other programs.


2. Which one of the following is a common use of CGI?
Please select the best answer.
  A. Real-time updates of Web pages
  B. Web site guest books
  C. Animations used on Web sites
  The correct answer is B.
A common use of CGI is Web site guest books. Real-time updating and animations are not possible using CGI because the HTTP connection does not have a method for replacing part of an object without sending an entire object. CGI does provide a way to create web site animation, but it is slow and not as efficient as other methods, like animated gifs, for example.


3. What is a Web client?
Please select the best answer.
  A. Any program that connects with a Web server
  B. B. Another name for a browser
  C. The software that runs on an Internet host
  The correct answer is A. A Web client is any program that connects to a Web server. A Web client is not another name for a Webbrowser (although a Web browser is in fact a type of Web client). Various types of software can run on an Internet host, including the Web server software-Web client software interacts with the software running on the Internet host.