0.5.16 Module 5 Quiz Study Guide

Hexadecimal Appears in Web Colors

A six-digit hexadecimal web color commonly has the form:

Activity diagram showing browser client, then request, then server, then response, then browser client.
BrowserClient.

The browser:

  • constructs requests;
  • receives responses;
  • interprets web resources;
  • displays the result.

The server:

  • receives requests;
  • processes them;
  • creates responses;
  • sends responses.
Visiting a Website Is a Sequence

A simplified flow is:

Activity diagram showing User enters URL, then Browser interprets URL, then Browser sends request, then Server processes request, then Server sends response, then Browser interprets response.
UserEntersURL.

A visible page may require several additional requests for CSS, images, or other resources.

Requests and Responses Travel in Opposite Directions

The client sends the request.

The server sends the response.

A response can include:

  • status information;
  • metadata;
  • content;
  • an error result.

A successful response can include HTML that the browser renders.

Activity Partitions Show Responsibility

A UML activity diagram can use partitions or swimlanes to show who performs each action.

For a web interaction, useful lanes are:

Activity diagram showing BROWSER SERVER, then Create request, then Receive request, then Process request, then Create response, then Receive response Send response.
BROWSERSERVER.

The diagram should communicate both:

  • what happens next;
  • who is responsible.
A URL Has Structured Parts

Consider:

Activity diagram showing C# supplies URL, then browser opens URL, then browser sends request, then server responds, then browser renders result.
CSuppliesURL.

This course activity does not require an automated web API.

Human Observation Can Become Program Input

The learner can observe information displayed on the webpage and make a true/false judgment.

For example:

Activity diagram showing User input, then URL, then Query parameter, then Browser request, then Server response, then Displayed webpage.
UserInput.

The important skill is understanding which participant or representation is responsible at each stage.