Computer Science
Grade 4
20 min
Servers: Storing Information
Introducing servers as computers that store information for others to access.
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define what a server is and its main job.
Explain the difference between a client and a server.
Identify at least three types of information (data) that are stored on servers.
Describe the simple process of a client 'requesting' and a server 'responding'.
Draw a simple diagram showing how their computer connects to a server over a network.
Give a real-world example of using a server, like watching a video or playing an online game.
Have you ever wondered where your favorite online game saves your progress, or where a YouTube video lives before you click play? 🤔 Let's find out!
In this lesson, we'll discover the secret computers called 'servers' that work behind the scenes. We'll learn how they store almost al...
2
Key Concepts & Vocabulary
TermDefinitionExample
ServerA special, powerful computer that is always on and connected to the internet. Its job is to store and share information with other computers.The computer at YouTube that holds all the cat videos is a server. When you want to watch one, your computer asks that server for the video.
ClientYour computer, tablet, or phone that you use to 'ask' for information from a server.When you use your iPad to open the Roblox app, your iPad is the client.
NetworkA group of connected computers that can talk to each other. The internet is the biggest network in the world!The Wi-Fi in your house is a small network that connects your devices to the giant network of the internet.
DataAny kind of information that can be stored on a computer, like pictures, videos, words, g...
3
Core Syntax & Patterns
The Client-Server Pattern
Clients ASK, Servers RESPOND.
This is the most important rule for how the internet works. Your computer (the client) always starts the conversation by asking for something. The server's job is to listen for those questions and send back the right answers.
The Data Storage Rule
Servers store data for many clients to share.
Instead of everyone needing their own copy of a giant video or game, a server stores one copy that anyone with permission can access. This saves space and makes sure everyone sees the same, updated information.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
You are designing a simple online chat app. The server needs to store information. Which of these pieces of data is LEAST necessary for the server to store permanently?
A.Each user's username and password
B.Each user's list of friends
C.The exact time a user is typing a message, but hasn't sent it yet
D.The history of sent chat messages
Challenging
A game's server has a function `add_friend(current_user, new_friend)`. When you click 'Add Friend', this function runs on the server. What is the most logical first step in the function's algorithm?
A.Check if `new_friend` is a valid user in the game's database
B.Immediately shut down the server to save the change
C.Send a message to every player in the game
D.Change the game's background music
Challenging
When you save a file in an online document editor, your computer sends the data to the server. The server's algorithm is: 1. Receive data. 2. Save data to disk. 3. Send a "Save Successful" message back to your computer. Why is step 3 so important?
A.It makes the server's hard drive bigger
B.It tells all other users what you wrote in your document
C.It is required to change the font of your document
D.It lets you know for sure that your work was not lost during the transfer
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free