Programming and AI · 2nd secondary - bachaloria · First Term

Web Applications — The Overall Structure of Web Applications

About this lesson

This unit introduces the overall structure of web applications. It defines a web application as an application used through a web browser with no dedicated software to install, giving YouTube, Amazon, Gmail and Google Maps as examples. The unit explains that a web application is built from three tiers — frontend, backend and database — and describes the role of each: the frontend is the screen users see and interact with, the backend is the hidden server-side processing that makes decisions, and the database organizes, stores and manages data. It presents these as three-tier architecture (presentation, logic and data) and shows how the tiers cooperate, tracing a product search on an online shopping site step by step from the frontend receiving keywords, to the backend querying the database, to the frontend displaying results. It also compares familiar services — a video sharing site, an SNS and an e-commerce site — in a table showing what each tier does for them. By the end, students should be able to define the three tiers and their roles, identify which tier handles a given job, trace the flow of a user action through the tiers, and reason about which tier has failed when something goes wrong, as in the clinic appointment and weather app scenarios.

Main topics in this lesson

  • Web application definition
  • Three-tier architecture
  • Frontend, backend and database roles
  • Flow of cooperation between tiers
  • Familiar web application configurations
  • Diagnosing tier faults

Key terms and vocabulary

  • web application
  • frontend
  • backend
  • database
  • three-tier architecture
  • presentation, logic and data tiers
  • browser
  • server
  • query
  • response

Questions and answers on Web Applications — The Overall Structure of Web Applications - practice and revision

Multiple choice questions on this lesson in Programming and AI for 2nd secondary - bachaloria, First Term, with practice exercises for revision and exam preparation.

1

Explain why the backend is described as hidden from the user, and give one job it performs on a shopping site.

2

A user types keywords into a search box and results appear. Explain which tier collected the input and which tier found the answer.

3

Explain the difference between the presentation tier and the data tier in three-tier architecture.

4

A clinic wants patients to book appointments and see their past visits. Explain why the clinic should separate the frontend, backend and database instead of putting everything in one place.

5

In an e-commerce site, state which tier is responsible for searching through data for products that match the search keywords, and which tier stores customer information.

6

Explain why YouTube, Amazon and Google Maps are all called web applications.

Turn this unit into a ready quiz

Generate a quiz from this unit, send it to your class, and let the answers be graded for you.

Start free