Before the bell
You are responsible for all of this before the end of class.
- The discussion form in the I Do deck. All three sections. If you are here, this should be done.
- Your classwork. This form on the right. Section 1 before the exit ticket pops up; Section 2 past the floor.
- Today's Bench Basics activity: Read It Like the Exam. It opens later in class and lives on slide 4 of this deck.
- The exit ticket. It opens 15 minutes before the bell and lives on the last slide of this deck.
The classwork form is not linked yet. Use Station View and write your answers in your lab notebook with the item labels.
Study Guide, Part 2
This reading gives the eight entries for Part 2 of your study guide and a reminder of how to write each one.
How to Write an Entry
Each entry has three parts, written in this order: the term, a definition in your own words, and one example. Write the definition as one complete sentence, and choose an example yourself that does not appear on the slides or in the passage. An example from your own life shows that you can use the term, such as a website you open at home, a game on your phone or a bench you have already finished. The entry below shows the complete shape, using a vocabulary term that is not on today's list.
Term: request Meaning: A request is a message that a client sends to a server to ask for a page, some data or an action. Example: When I open the weather app before school, my phone sends a request for the day's forecast.
Write each meaning so that a classmate who missed the original lesson could still follow it. Avoid copying a sentence from the passage word for word, because the guide is practice in explaining each idea yourself.
Today's Eight Entries
Today's entries cover the parts that sit between a click and an answer, and they go into the classwork form in two groups. Entries 1 to 4 go in CR 1: client, server, memory and system prompt. Entries 5 to 8 go in CR 2: host, domain name and DNS, HTTPS, and API key. The first four entries come from the October lessons, and the last four come from the November lessons on the web. For memory, explain what a computer loads into it before a model can run, and for the API key, explain where the class keeps the key and why it keeps it there. Figure 1 shows where each part sits on the path of one Code Coach question.
The study guide is for your own review before the final exam on Tuesday, December 15. Part A of the exam is closed notebook, so the guide is a way to study and not something you use during the exam. If you were absent on Wednesday, write Part 1 of the study guide first, because both classwork forms stay open through Monday.
Sources: Muggivan, Build Spec, CS I, Oct 26 to Dec 18 (2026); CS I passages of Oct 21–23 and Nov 16–19 (2026).
The Parts Between a Click and an Answer
This section reviews the parts that carry one Code Coach question from a Chromebook to a model and back, and what a user sees when one part fails.
Clients, Servers and the Model
In a web-based tool, each program plays one of two roles. A client is the program that starts an exchange by sending a request. A server is a program that waits for requests, handles each one and sends back a response. For example, when a student in the school library opens B24 and asks Code Coach about one line, the browser on her Chromebook is the client, because it sends both requests, one for the bench page and one for the explanation. The host is a server, not a client. It waits for requests and answers them.
The model runs on a server that belongs to Mistral, the company whose model Code Coach uses, and not on the Chromebook, because the computer that runs a model has to load its whole parameter file into memory. Hugging Face estimates that a model with 70 billion parameters needs about 140 GB of GPU memory, far more than a school Chromebook's 4 GB or 8 GB. A system prompt is a set of instructions that the builder writes ahead of time and sends to the model in every request. Code Coach's system prompt has six lines, and the bench puts the same six lines into each request beside the student's code. On October 19, 2026, the four lines below were sent to the class endpoint with that system prompt.
1int total = 25; 2int groups = 4; 3double each = total / groups; 4System.out.println(each);
6.0
The model's second explanation is quoted below, word for word.
This is Java code. Line 1: Creates an integer variable named `total` and stores the value `25` in it. Line 2: Creates an integer variable named `groups` and stores the value `4` in it. Line 3: Creates a double variable named `each` and stores the result of `25 / 4`. Since both values are integers, it performs integer division, resulting in `6.0`. Line 4: Prints `6.0` to the console.
The explanation matches the real output, because 25 divided by 4 is 6 in whole-number division.
The Host, DNS and HTTPS
A host is a server that stays connected to the internet, stores a site's files and sends them to any browser that requests them. The class site's host is Cloudflare, and deploying copies the site's current files from the repository to the host, so a fix that is committed but not deployed stays in the repository while browsers keep receiving the older files. The class endpoint is a different server from the host. One serves the page, and the other passes requests to the model. Both run on Cloudflare's network, and Mozilla's guide to HTTP notes that several server programs can run on the same machine.
A browser reaches a host through an IP address, which is a number, and IP addresses are hard to remember and can change over time, so people use a domain name such as muggsofcompsci.net. DNS, the Domain Name System, finds the IP address for a domain name, so that the browser knows where to send its request. DNS finds an address. It does not send the page, because the host sends the files once the request arrives.
HTTPS encrypts the data that travels between the browser and each server, but the code of the page still arrives in the browser, and anyone who opens a page can read that code. An API key is a secret string that lets its holder use a model account and spend its budget, so Code Coach's key is kept on the class endpoint as a secret setting and never appears in the bench page.
When One Part Fails
Figure 1 shows the parts in order, from the browser to the model's server. If the wifi fails, the browser cannot send any request, so neither the page nor an answer arrives. The network is one of the parts, too. If DNS fails, the browser has no IP address for the host, so the page does not load, while the host, the class endpoint and Mistral's server keep running. If the host fails, the page does not arrive either.
A failure past the page looks different, because the page and the answers come from different servers. If Mistral's server fails, the class endpoint sends back a message that begins "The model could not answer just now." in place of an answer. If the class endpoint cannot be reached at all, the bench shows its own note, quoted below.
Code Coach did not answer. The bench still works without it.
Every job and check still works, because the checks run in the bench page, and credit codes still work, because they come from a separate bench server, not the class endpoint. A page that loads and then gives no answers points past DNS and the host, to the class endpoint or the model's server.
Summary
The browser is the client: the host sends the bench page, the class endpoint holds the API key, and Mistral's server runs the model. DNS finds the host's IP address, and HTTPS encrypts the data on the way. A failure in the network, DNS or the host stops the page, while a failure at the class endpoint or the model's server leaves the page without answers.
Sources: MDN Web Docs, Client-server overview (2026); MDN Web Docs, Overview of HTTP (2026); MDN Web Docs, How the web works (2026); MDN Web Docs, What is a web server? (n.d.); MDN Web Docs, What is a domain name? (2025); MDN Web Docs, HTTPS (n.d.); Hugging Face, Optimizing LLMs for Speed and Memory (n.d.); Google Cloud, Best practices for managing API keys (2026); CS I passages of Oct 21–23 and Nov 16–19 (2026); Code Coach bench, class endpoint and captured request, course site (2026).
The classwork form is not linked yet. Use Station View and write your answers in your lab notebook with the item labels.
MC 1. Keisha searches the school library's online catalog for a novel on her Chromebook. In this exchange, which program is acting as the client?
- Keisha, because she typed the search
- The Chromebook's screen, because the results appear there
- The browser, because it sent the search to the catalog
- DNS, because it is asked for an address first
MC 2. A server receives a request from a browser. What does the server do with it?
- It waits until the browser sends the same request a second time
- It forwards the request to every other browser on the network
- It handles the request and sends back a response
- It stores the request and sends nothing back
MC 3. A computer has 16 GB of memory. A model's parameter file is 70 GB. Why can this computer not run the model?
- Someone must rename the parameter file before a computer can open it
- The computer has to load the whole parameter file into memory to run the model, and 70 GB does not fit in 16 GB
- Memory is only used for pictures and videos, not for models
- The computer would need 70 GB of storage, and memory does not matter
MC 4. When does the bench send Code Coach's system prompt to the model?
- Once, the first time the bench page loads each day
- Only when a student types the system prompt into the panel
- Never, because Mistral wrote it into the model during training
- In every request, beside the student's code and question
MC 5. What does the class site's host do?
- It stores the site's files and sends them to any browser that requests them
- It finds the IP address for the domain name muggsofcompsci.net
- It runs the model that writes Code Coach's explanations
- It keeps the full history of every change to the site
MC 6. Mr. Mugg fixes a typo in a bench and makes a commit. Students still see the typo. What has not happened yet?
- The students have not turned off their wifi
- The commit has not been printed for the class
- The fix has not been deployed, so the host still sends the older files
- DNS has not been told about the typo
MC 7. Andre wants the city's bus schedule, so he enters the schedule site's domain name in his browser. Before the page can arrive, what is DNS's job?
- To send the bus schedule page to Andre's browser
- To carry Andre's request across the wifi to the host
- To give the bus schedule site its domain name
- To find the IP address that matches the domain name, so the browser knows where to send its request
MC 8. What is an IP address?
- The name people type for a site, such as muggsofcompsci.net
- A number that the internet uses to find one device, such as a host
- The path after the domain name, such as /cs1/bench
- A password that lets a browser open a site
MC 9. A student's Code Coach question crosses the school wifi on its way to the class endpoint over HTTPS. What does HTTPS protect?
- It makes sure Code Coach's explanation is correct
- It encrypts the question and the answer while they travel, so others on the network cannot read them
- It hides the bench page's code from the student who opened it
- It makes the request reach Mistral's server faster
MC 10. Where is Code Coach's API key kept, and why?
- On the class endpoint, because all of the bench page's code reaches the browser, where a key could be copied
- In the bench page's code, hidden where students do not look
- On each student's Chromebook, beside the course code
- Inside the system prompt, so the model can check it
CR 1. (Study guide entries 1 to 4) Write entries for client, server, memory and system prompt. For each one, write the term, one sentence of meaning in your own words, and one example you chose yourself.
Write your answer in your lab notebook, labeled CR 1.
CR 2. (Study guide entries 5 to 8) Write entries for host, domain name and DNS, HTTPS, and API key. For each one, write the term, one sentence of meaning in your own words, and one example you chose yourself.
Write your answer in your lab notebook, labeled CR 2.
The classwork form is not linked yet. Use Station View and write your answers in your lab notebook with the item labels.
CR 3. Look at the code below. Give the value of address.indexOf(".") and the value of address.substring(4, 11). Then say which part of the address is the domain's name.
1String address = "www.example.com"; 2System.out.println(address.indexOf(".")); 3System.out.println(address.substring(4, 11));
Write your answer in your lab notebook, labeled CR 3.
CR 4. The class endpoint is down. What does a student see on the bench, and which jobs still work? Explain why, using the parts of the tool.
Write your answer in your lab notebook, labeled CR 4.
Read It Like the Exam
Open the bench, do its six jobs, then paste your credit code into the credit-code form. You can turn in up to three codes per bench; your best score is your grade.
Bench Basics opens during your class period.
The classwork form is not linked yet. Use Station View and write your answers in your lab notebook with the item labels.
This opens during your class period.