ESAT Forouzan - Chapter 27: HTTP and WWW Flashcards

1
Q

HTTP has similarities to both _______ and _______.
a. FTP; SNMP
b. FTP; SMTP
c. FTP; MTV
d. FTP; URL

A

b. FTP; SMTP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A request message always contains _______.
a. A header and a body
b. A request line and a header
c. A status line, a header, and a body
d. A status line and a header

A

b. A request line and a header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following is present in both a request line and a status line?
a. HTTP version number
b. URL
c. Status code
d. Status phrase

A

a. HTTP version number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the URL need to access a document?
a. Path name
b. Host computer
c. Retrieval method
d. All the above

A

d. All the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is a retrieval method?
a. HTTP
b. FTP
c. TELNET
d. All of the above

A

d. All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A user wants to replace a document with a newer version; the request line contains the _______ method.
a. GET
b. POST
c. COPY
d. PUT

A

d. PUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A user wants to copy a file to another location; the request line contains the _______ method.
a. PUT
b. PATCH
c. COPY
d. POST

A

c. COPY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A user needs to retrieve a document from the server; the request line contains the _______ method.
a. GET
b. HEAD
c. POST
d. PUT

A

a. GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A user needs to send the server some information. The request line method is ________.
a. OPTION
b. PATCH
c. MOVE
d. POST

A

d. POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A user needs to move a file to another location. The request line method is _______.
a. MOVE
b. PUT
c. GET
d. PATCH

A

a. MOVE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A response message always contains _______.
a. A header and a body
b. A status line, a header, and a body
c. A request line and a header
d. A status line and a header

A

c. A request line and a header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The _______ header supplies information about the body of a document.
a. General
b. Request
c. Response
d. Entity

A

d. Entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The _______ header can specify the server configuration or provide information about a request.
a. General
b. Request
c. Response
d. Entity

A

c. Response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The _______ header can specify the client configuration and the client’s preferred document format.
a. General
b. Request
c. Response
d. Entity

A

b. Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Hypertext documents are linked through ___________.
a. DNS
b. TELNET
c. Pointers
d. Homepages

A

c. Pointers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following is not a client program in WWW?
a. FTP
b. TELNET
c. HTTP
d. HTML

A

d. HTML

17
Q

Which of the following is an interpreter?
a. HTTP
b. HTML
c. CGI
d. FTP

A

b. HTML

18
Q

What are the components of a browser?
a. Retrieval method, host computer, path name
b. Controller, client program, interpreter
c. Hypertext, hypermedia, HTML
d. All the above

A

b. Controller, client program, interpreter

19
Q

Which type of Web document is run at the client site?
a. Static
b. Dynamic
c. Active
d. All the above

A

c. Active

20
Q

Which type of Web document is created at the server site only when requested by a client?
a. Static
b. Dynamic
c. Active
d. All the above

A

b. Dynamic

21
Q

Which type of Web document is fixed-content and is created and stored at the server site?
a. Static
b. Dynamic
c. Active
d. All the above

A

a. Static

22
Q

The _______ of a Web page contains the title and parameters used by the browser.
a. Tags
b. Head
c. Body
d. Attributes

A

b. Head

23
Q

In < IMG SRC=”Pictures/book1.gif” ALIGN=middle> ALIGN is _______.
a. A tag
b. The head
c. The body
d. An attribute

A

d. An attribute

24
Q

An ending tag is usually of the form _______.
a. </tagname>
b. <\ tagname>
c. < tagname >
d. < tagname!>

A

a. </tagname>

25
Q

Which category of HTML tags allows the listing of documents?
a. Image
b. List
c. Hyperlink
d. Executable contents

A

b. List

26
Q

The __________ tags enclose binary code or byte code.
a. Image
b. List
c. Hyperlink
d. Executable contents

A

d. Executable contents

27
Q

A program can use _____ to write a CGI program.
a. Bourne shell script
b. Perl
c. C
d. Any of the above

A

d. Any of the above

28
Q

An unemployed actor has posted his resume on the Web. This is probably a(n) _______ document.
a. Active
b. Static
c. Passive
d. Dynamic

A

b. Static

29
Q

The server receives input from a browser through _________.
a. An attribute
b. A tag
c. A form
d. Any of the above

A

c. A form

30
Q

Output from a CGI program is _______.
a. Text
b. Graphics
c. Binary data
d. Any of the above

A

d. Any of the above

31
Q

Which type of Web document is transported from the server to the client in binary form?
a. Static
b. Dynamic
c. Active
d. All of the above

A

c. Active

32
Q

An applet is a small application program written in _____.
a. C
b. C++
c. Shell script
d. Java

A

d. Java

33
Q

_____________ is used to enable the use of active documents.
a. HTML
b. CGI
c. Java
d. All the above

A

a. HTML

34
Q

Java is ____________.
a. A programming language
b. A run-time environment
c. A class library
d. All the above

A

d. All the above

35
Q

An applet is ____________ document application program.
a. A static
b. An active
c. A passive
d. A dynamic

A

b. An active

36
Q

Stock quotations are posted on the Web. This is probably a(n) ____________ document.
a. Active
b. Static
c. Passive
d. Dynamic

A

d. Dynamic

37
Q

Updates for a satellite’s coordinates can be obtained on the WWW. This is probably a(n) ________ document.
a. Active
b. Static
c. Passive
d. Dynamic

A

d. Dynamic