Computer Science
Grade 9
20 min
Asking Permission
Asking Permission
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define copyright, Creative Commons, and open source in the context of digital assets.
Analyze the license of a digital asset (image, code, music) to determine its usage rights.
Formulate a clear and respectful request for permission to use a copyrighted digital asset.
Differentiate between attribution and permission and correctly apply both.
Explain the ethical importance of asking for user consent before collecting personal data in a program.
Apply a systematic process to legally and ethically incorporate third-party assets into a programming project.
Ever found the PERFECT image or code snippet online for your project and just... took it? 🤔 Let's talk about why that's a risky move!
This lesson explores the critical digital citizenship skill...
2
Key Concepts & Vocabulary
TermDefinitionExample
CopyrightThe exclusive legal right given to the creator of an original work (like code, a photo, or a song) to decide how it can be used and distributed. By default, most things you find online are copyrighted.You write a Python script to sort a list in a unique way. You automatically own the copyright to that specific code.
Creative Commons (CC)A set of public copyright licenses that allow creators to give others permission to share, use, and build upon their work, under certain conditions.A photographer uploads a photo to Flickr with a CC BY license, meaning you can use it for free as long as you give them credit (attribution).
Open SourceSoftware for which the original source code is made freely available and may be redistributed and modified, often with a specifi...
3
Core Syntax & Patterns
The Asset Permission Workflow
1. Identify Asset -> 2. Find License -> 3. Analyze Conditions -> 4. If necessary, Request Permission -> 5. Fulfill Conditions (e.g., Attribute)
Use this step-by-step process whenever you want to use a digital asset (image, sound, code snippet) you did not create yourself. It ensures you are acting legally and ethically.
The User Data Consent Pattern
1. Inform (What data?) -> 2. Explain (Why?) -> 3. Request (Ask for explicit 'Yes/No') -> 4. Respect (Honor the user's choice)
When your program needs to access a user's personal data (like name, location, contacts), you must follow this pattern to get their informed consent. This is a fundamental principle of privacy-respecting software.
1 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 building a weather app. It uses an open-source library (MIT license) for charts, pulls images from a NASA feed (public domain), and asks for the user's location (personal data). What is the correct sequence of actions to ensure you have all necessary permissions?
A.Ask for location, add attribution for the chart library, use NASA images.
B.During development: note the need for chart library attribution and to use NASA images. At runtime: implement the User Data Consent Pattern for location before accessing it.
C.Email NASA for permission, email the chart library author for permission, and ask the user for their location.
D.Bundle all requests into one 'Terms of Service' agreement that the user must accept to open the app.
Challenging
A user initially grants your app permission to access their contacts. Later, they go into the settings and revoke that permission. Your app has already saved a copy of their contact list to its private storage. Based on the 'Respect' principle, what must your app do?
A.Immediately and permanently delete the cached copy of the contact list.
B.Keep the list but stop accessing it for new updates.
C.Ignore the revocation, as permission was already granted once.
D.Ask the user to confirm their choice five times before deleting the data.
Challenging
You are designing the consent screen for an app that needs access to the camera (to scan QR codes) and location (to tag photos). Which design best follows the 'User Data Consent Pattern'?
A.single pop-up: 'This app needs permissions to work. [Allow] [Deny]'
B.Two separate, sequential pop-ups: The first explains why camera access is needed and asks for permission. The second does the same for location.
C.screen that says 'By using this app, you agree to give us access to your camera and location.' with a single 'Continue' button.
D.The app crashes with an error message 'Permission Required' if the user denies access from the operating system's default pop-up.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free