Computer Science
Grade 5
20 min
Privacy Settings
Privacy Settings
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Analyze a privacy setting using IF/THEN/ELSE conditional logic.
Model a privacy choice as a binary state (0 for OFF, 1 for ON).
Design a loop to apply a single privacy rule to a list of items, like photos or friends.
By the end of a this lesson, students will be able to explain how multiple conditions (using AND/OR) create more specific privacy rules.
Map real-world privacy options (like 'Friends Only' or 'Public') to computational instructions.
Identify the data permissions requested by a third-party application.
Have you ever wondered how a game knows exactly which friends to show your high score to, and which to hide it from? 🤔 It's not magic, it's code!
In this lesson, we'll explore the advanced computer science be...
2
Key Concepts & Vocabulary
TermDefinitionExample
Granular ControlThe ability to set very specific and detailed rules for who can see your information. Instead of just 'on' or 'off', you can make rules for individual people or groups.On a photo sharing site, you set a picture of your dog to 'Public', but a picture from your family vacation to a special 'Family' list. That's granular control.
Default SettingThe privacy setting that is automatically applied if you don't choose a different one. It's the computer's starting choice for you.When you first install a new app, its default setting for sharing your activity might be 'ON'. You have to go into the settings to change it.
Third-Party App PermissionWhen you give an app or website created by one c...
3
Core Syntax & Patterns
The Complex Conditional Pattern
IF (condition_A AND condition_B) THEN [action]
Use this to create very specific rules. Both conditions must be true for the action to happen. For example, 'Show this post IF the user is a 'Friend' AND they are in the 'Close Friends' list'.
The Bulk Action Loop
FOR EACH [item] IN [list] DO [action]
Use this to apply one setting to many things at once without having to click on each one. For example, 'FOR EACH photo in my 'Vacation 2024' album, DO set visibility to 'Family Only'.
The Binary State Toggle
setting_value = 1 (ON) or setting_value = 0 (OFF)
This is how computers store simple 'yes' or 'no' choices. It's an efficient way to represent a setting like...
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
A new "smart speaker" device is always listening for a wake word (like "Hey, Computer"). To answer your questions, it must send a recording of your voice to the company's servers for analysis. What is the biggest privacy trade-off you are making?
A.The speaker might not understand you if you talk too quietly.
B.You are allowing a private company to store and analyze recordings of your voice in your home.
C.The speaker uses a lot of electricity.
D.You can't use the speaker if the internet is down.
Challenging
You want to create a parental control setting with this logic: `IF (user_age < 13) AND (website_is_not_on_approved_list) THEN block_access`. A user who is 12 years old tries to visit a new website that is not on the approved list. What happens?
A.Access is granted because the user is 12.
B.Access is granted because the website is new.
C.Access is denied, but only if the user is on a school computer.
D.Access is denied because both conditions in the IF statement are true.
Challenging
Some messaging apps offer "end-to-end encryption." This privacy setting means only the sender and receiver can read the messages. How does this protect you in a way that a server-side "private" setting might not?
A.It makes the text bubbles a different color.
B.It automatically deletes messages after they are read.
C.It prevents even the company that runs the app from reading your messages.
D.It allows you to send messages to people you have blocked.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free