The web and the internet are the same thing.
- The web is one service running on the internet.
A short history of the internet (circuit vs. packet switching), the birth of the web, static vs. dynamic sites and Web 2.0, the client–server model, internet protocols and the layered architecture, IP addresses and ports, DNS and domain names, URLs, HTTP requests, methods and response codes, browsers, web servers and development stacks.
Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.
Packet switching: data split into packets routed independently, sharing lines (the internet). Circuit switching: a dedicated path for the whole call (telephone).
The web and the internet are the same thing.
Static sites: the same HTML file for everyone. Dynamic sites: pages generated by server programs, often from a database.
Four-layer TCP/IP: link → internet (IP) → transport (TCP/UDP) → application (HTTP, DNS…).
IPv4 is 32 bits (four 0–255 numbers); IPv6 is 128 bits.
An IPv4 address is how many bits?
TCP: reliable, ordered, connection-based. UDP: fast, connectionless, no guarantees (video, DNS).
Which protocol guarantees delivery and order?
Name levels read right to left: top-level domain (.com, .sa), second-level (psu), subdomains (www).
Resolution: browser → local cache → resolver → root → TLD server → authoritative server → IP back to the browser.
URL = protocol://domain:port/path?query#fragment.
In https://shop.com:8080/items?id=5, the query string is:
HTTP: stateless request–response protocol; headers carry metadata (Host, User-Agent, Content-Type…).
GET: data in the URL query string (bookmarkable, cached, length-limited, visible). POST: data in the request body (forms that change data).
Trap GET requests should not change data; use POST (or PUT/DELETE) for changes.
Which method sends form data in the request body rather than the URL?
Status codes: 2xx success (200 OK), 3xx redirect (301, 304), 4xx client error (404 Not Found, 403), 5xx server error (500).
HTTP 404 means:
A 500 status code is a:
Stacks: LAMP (Linux, Apache, MySQL, PHP), MEAN/MERN (MongoDB, Express, Angular/React, Node).