wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Kuis 1 Lapisan Aplikasi dan HTML

Total questions: 8

Worksheet time: 5mins

Name
Class
Date
1.

Which of the characteristics below are associated with a client-server approach to structuring network applications (as opposed to a P2P approach)?

a)

A process requests service from those it contacts and will provide service to processes that contact it.

b)

There is a server that is always on.

c)

There is a server with a well known server IP address.

d)

HTTP uses this application structure.

2.

Which of the characteristics below are associated with a P2P approach to structuring network applications (as opposed to a client-server approach)?

a)

There is a server that is always on.

b)

A process requests service from those it contacts and will provide service to processes that contact it

c)

There is a server with a well known server IP address.

d)

HTTP uses this application structure.


3.

What do we mean when we say “HTTP is stateless”? In answering this question, assume that cookies are not used.  Check all answers that apply.

a)

An HTTP server does not remember anything about what happened during earlier steps in interacting with this HTTP client.

b)

An HTTP client does not remember anything about what happened during earlier steps in interacting with any HTTP server

c)

An HTTP client does not remember the identities of the servers with which  it has interacted.

d)

We say this when an HTTP server is not operational.

4.

What is an HTTP cookie used for?

a)

A cookie is a code used by a client to authenticate a person’s identity to an HTTP server.

b)

A cookie is used to spoof client identity to an HTTP server.

c)

A cookies is a code used by a server, carried on a client’s HTTP request, to access information the server had earlier stored about an earlier interaction with this person. [Think about the distinction between a browser and a person.]

d)

A cookie is a code used by a server, carried on a client’s HTTP request, to access information the server had earlier stored about an earlier interaction with this Web browser. [Think about the distinction between a browser and a person.]

5.

  What is the purpose of the HTTP GET message?

a)

The HTTP GET request message is used by a web client to post an object on a web server.

b)

The HTTP GET request message is sent by a web server to a web client to get the next request from the web client.

c)

The HTTP GET request message is sent by a web server to a web client to get the identity of the web client.

d)

The HTTP GET request message is used by a web client to request a web server to send the requested object from the server to the client.


6.

Suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following:

GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,
Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fi
If-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

What version of HTTP is the client using?

a)

1

b)

2.1

c)

1.1

d)

2

7.

Which of the following are advantages of using a web cache? Sselect one or more answers.

a)

Caching uses less bandwidth coming into an institutional network where the client is located, if the cache is also located in that institutional network.

b)

Caching generally provides for a faster page load time at the client, if  the web cache is in the client’s institutional network, because the page is loaded from the nearby cache rather than from the distant server.

c)

Overall, caching requires  fewer  devices/hosts to satisfy a web request, thus saving on server/cache costs.

d)

Caching allows an origin server to more carefully track which clients are requesting and receiving which web objects.

8.

Which of the following are changes between HTTP 1.1 and HTTP/2? Note: select one or more answers.

a)

HTTP/2 allows objects in a persistent connection to be sent in a client-specified priority order. 

b)

HTTP/2 has many new HTTP methods and status codes.

c)

HTTP/2 allows a large object to be broken down into smaller pieces, and the transmission of those pieces to be interleaved with transmission  other smaller objects, thus preventing a large object from forcing many smaller objects to wait their turn for transmission.

d)

HTTP/2 provides enhanced security by using transport layer security (TLS).