Web server

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Web server

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What does a web server do?
A Displays web pages on the screen for the user
B Stores website files and sends them to browsers that ask
2. Which one is the client and which is the web server when you visit a website?
A Your browser is the client; the computer holding the site is the server
B Your browser is the server; the computer holding the site is the client
3. A web server is usually...
A Always switched on and connected to the internet
B Switched on only when someone visits the site
4. Which type of file does a web server store and send for a basic web page?
A Browser bookmarks
B HTML files
5. Which protocol does a web server use to receive requests and send back pages?
A HTTP
B HTML

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1GET /index.html HTTP/1.1 AA web server must always be switched on and connected to the internet so it can reply to a request at any time.
2HTTP/1.1 200 OK Bclient: browser -> request -> server
3A web server stores the HTML files of a website so they can be sent to a browser CThe browser is the client. A web server is a separate computer that stores website files and sends them to browsers.
4A web server is the computer that supplies pages, while the browser is the client that asks for them D<html><body><h1>Home</h1></body></html>
5The web server is the browser on your own computer that shows web pages. EA request a browser sends to a web server asking it to send back the file index.html
6A web server is only switched on when someone visits the website. FA reply from a web server saying it found the page and is sending it to the browser

Definitions

web server

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
___ /index.html HTTP/1.1
2.
GET /index.html ____/1.1
3.
HTTP/1.1 ___ OK
4.
Web server stores: index.____, style.css
5.
client ← "browser" ______ ← "web server"

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Client types www.site.com
B Browser sends HTTP request
C Server finds index.html
D Client sends file to server
Question 2
A WHILE server is switched on
B WAIT for a request
C DELETE the requested file
D ENDWHILE
Question 3
A Client: the browser
B Server: asks for HTML files
C Protocol: HTTP
D Client asks, server sends
Question 4
A OPEN connection to internet
B WHILE TRUE
C RECEIVE request
D SEND request
E ENDWHILE
Question 5
A Browser sends HTTP request
B Browser finds the page file
C Web server sends HTTP response

Answer Key

Web server
Section A: Quick Questions
Q1
B — Stores website files and sends them to browsers that ask
Q2
A — Your browser is the client; the computer holding the site is the server
Q3
A — Always switched on and connected to the internet
Q4
B — HTML files
Q5
A — HTTP
Section B: Match the Pairs
Q1
GET /index.html HTTP/1.1 → A request a browser sends to a web server asking it to send back the file index.html
Q2
HTTP/1.1 200 OK → A reply from a web server saying it found the page and is sending it to the browser
Q3
A web server stores the HTML files of a website so they can be sent to a browser → <html><body><h1>Home</h1></body></html>
Q4
A web server is the computer that supplies pages, while the browser is the client that asks for them → client: browser -> request -> server
Q5
The web server is the browser on your own computer that shows web pages. → The browser is the client. A web server is a separate computer that stores website files and sends them to browsers.
Q6
A web server is only switched on when someone visits the website. → A web server must always be switched on and connected to the internet so it can reply to a request at any time.
Section C: Definitions
Q1
web server — A computer that stores website files and sends them to a browser (the client) over the internet using HTTP when the browser asks for a page. It is always switched on and connected.
Section D: Fill in the Blanks
Q1
GET /index.html HTTP/1.1
Q2
GET /index.html HTTP/1.1
Q3
HTTP/1.1 200 OK
Q4
Web server stores: index.html, style.css
Q5
client ← "browser" server ← "web server"
Section E: Spot the Error
Q1
D — The web server stores the files, so it is the server that sends the file to the client. The line should be 'Server sends file to client'.
Q2
C — A web server finds the file it stores and sends it back. It does not delete it. The line should be ' FIND the requested file'.
Q3
B — The server stores the HTML files. It is the client (browser) that asks for them. The line should be 'Server: stores HTML files'.
Q4
D — A web server receives a request and sends back a response. Only the client sends requests. The line should be ' SEND response'.
Q5
B — The website files are stored on the web server, not in the browser. The web server finds the page. The line should be 'Web server finds the page file'.