In this section of Data Communication and Networking – WWW and HTTP MCQ (Multiple Choice) Based Questions and Answers,it cover the below lists of topics.All the Multiple Choice Questions and Answers (MCQs) have been compiled from the book of Data Communication and Networking by The well known author behrouz forouzan.
This Section covers below lists of topics.
- Hypertext Transfer Protocol (HTTP) MCQs.
- Hypertext Markup Language (HTML) MCQs.
- Common Gateway Interface (CGI) MCQs.
1. ________ is a repository of information linked together from points all over the world.
- The WWW
- HTTP
- HTML
- none of the above
A. The WWW
2. The WWW today is a _______ client-server service, in which a client using a browser can access a service using a server.
- limited
- vast
- distributed
- none of the above
C. distributed
3. The _________ is a standard for specifying any kind of information on the Internet
- URL
- ULR
- RLU
- none of the above
A. URL
4. In a URL, the _______ is the client-server program used to retrieve the document.
- protocol
- path
- host
- none of the above
A. protocol
5. In a URL, the ______ is the computer on which the information is located.
- path
- protocol
- host
- none of the above
C. host
6. In a URL, an optional ________ can be inserted between the host and the path, and it is separated from the host by a colon.
- path
- protocol
- host
- none of the above
D. none of the above
7. In a URL, the _______ is the full name of the file where the information is located.
- path
- protocol
- host
- none of the above
A. path
8. A cookie is made by the ________ and eaten by the _________
- client; client
- client; server
- server; server
- none of the above
C. server; server
9. The documents in the WWW can be grouped into ______ broad categories
- two
- three
- four
- none of the above
B. three
10. A _______ document is a fixed-content document that is created and stored in a server. The client can get a copy of the document only.
- static
- dynamic
- active
- none of the above
A. static
11. _____________ is a language for creating Web pages.
- HTTP
- HTML
- FTTP
- none of the above
B. HTML
12. A _______ document is created by a Web server whenever a browser requests the document
- static
- dynamic
- active
- none of the above
B. dynamic
13. ___________ is a technology that creates and handles dynamic documents
- GIC
- CGI
- GCI
- none of the above
B. CGI
14. Dynamic documents are sometimes referred to as _________ dynamic documents
- client-site
- server-site
- both a and b
- none of the above
B. server-site
15. For many applications, we need a program or a script to be run at the client site. These are called _______________ documents
- static
- dynamic
- active
- none of the above
C. active
16. One way to create an active document is to use __________
- CGI
- Java stand-alone programs
- Java applets
- none of the above
C. Java applets
17. Active documents are sometimes referred to as _________ dynamic documents
- client-site
- server-site
- both a and b
- none of the above
A. client-site
18. HTTP uses the services of _________ on well-known port 80
- UDP
- IP
- TCP
- none of the above
C. TCP
19. In HTTP, the first line in a request message is called a _______ line; the first line in the response message is called the ________ line
- request; response
- response; request
- response; status
- none of the above
D. none of the above
20. In a ___________ connection, one TCP connection is made for each request/response
- persistent
- nonpersistent
- both a and b
- none of the above
B. nonpersistent
21. In a ___________connection, the server leaves the connection open for more requests after sending a response.
- persistent
- nonpersistent
- both a and b
- none of the above
A. persistent
22. HTTP version 1.1 specifies a _________connection by default.
- persistent
- nonpersistent
- both a and b
- none of the above
A. persistent
23. In HTTP, a _______ server is a computer that keeps copies of responses to recent requests
- regular
- proxy
- both a and b
- none of the above
B. proxy
24. An HTTP request message always contains _______
- a header and a body
- a request line and a header
- a status line, a header, and a body
- none of the above
B. a request line and a header
25. Which of the following is present in both an HTTP request line and a status line?
- HTTP version number
- URL
- status code
- none of the above
A. HTTP version number
26. The HTTP request line contains a _______ method to request a document from the server
- GET
- POST
- COPY
- none of the above
A. GET
27. A user needs to send the server some information. The request line method is _______
- OPTION
- PATCH
- POST
- none of the above
C. POST
28. The HTTP request line contains a _______ method to get information about a document without retrieving the document itself.
- HEAD
- POST
- COPY
- none of the above
A. HEAD
29. A response message always contains _______
- a header and a body
- a request line and a header
- a status line and a header
- none of the above
C. a status line and a header
30. An applet is _______ document application program.
- a static
- an active
- a passive
- a dynamic
B. an active