Computer Science

Classes 1 – 12 · Ages 6–18
And He taught man that which he knew not. (96:5)
Foundations · Programming · Web · Data · AI · Ethics · Islamic Perspectives

Learning Objectives

Grade 1 My First Computer

What is a Computer?

A computer is an electronic machine that can receive, process, store, and output information. It follows instructions to perform tasks quickly and accurately.

Computers are used everywhere – at home, at school, in hospitals, and even in space! They help us learn, play, communicate, and solve problems.

Think About It

What are some computers you use?

Desktop computers – Used at home or school.
Laptops – Portable computers you can carry.
Tablets – Touchscreen computers.
Smartphones – Small computers in your pocket!

Parts of a Computer

  • Monitor – The screen that shows you information, like a TV.
  • Keyboard – A board with letters and numbers you use to type.
  • Mouse – A device you move to control the cursor on the screen.
  • CPU (Central Processing Unit) – The "brain" of the computer that processes information.
  • Speakers – For listening to sounds and music.
🖥️ Monitor Shows information
⌨️ Keyboard Type letters & numbers
🖱️ Mouse Move the cursor
🧠 CPU The brain
Main Parts of a Computer
Activity

Draw a picture of a computer and label its main parts: monitor, keyboard, mouse, and CPU.

Bonus: Can you name one thing you can do with each part?

Reflect

Allah has given humans the ability to create amazing tools like computers. The Qur'an says: "And He taught man that which he knew not." (96:5). Computers are a blessing that we should use wisely and responsibly.

Key Takeaway

A computer is an electronic machine that processes information. The main parts are the monitor, keyboard, mouse, and CPU. Computers help us learn, work, and communicate. We should use them responsibly and be grateful for this blessing.

Grade 2 Using the Computer

Turning On and Using a Computer

To use a computer, you first need to boot it up – this means turning it on and waiting for it to load the operating system.

  • Step 1: Press the power button on the CPU or laptop.
  • Step 2: Wait for the computer to start up (you'll see a logo and then the desktop).
  • Step 3: Use the mouse to move the cursor and click on icons.
  • Step 4: Use the keyboard to type letters and numbers.
Think About It

What is the Desktop?

The desktop is the main screen you see after the computer starts. It has icons (small pictures) that you can click to open programs, files, or folders.

What is a Folder?

A folder is like a digital container that holds files, just like a real folder holds papers.

Basic Computer Skills

  • Clicking and Double-Clicking – A single click selects an item; a double-click opens it.
  • Drag and Drop – Click and hold, then move the mouse to move an item.
  • Right-Clicking – Click the right mouse button to see a menu of options.
  • Scrolling – Use the scroll wheel or scroll bar to move up and down on a page.
🖱️ Click Select
🖱️ Double-Click Open
🖱️ Drag & Drop Move
🖱️ Right-Click Options
Basic Mouse Skills
Activity

Practice these skills on a computer:

1. Click on an icon to select it.
2. Double-click on a folder to open it.
3. Drag an icon to move it to a different place.
4. Right-click on the desktop and explore the menu.

Write down what you learned.

Reflect

Using a computer is a skill that requires practice and patience. The Prophet ﷺ said: "Seeking knowledge is an obligation upon every Muslim." Learning to use technology is part of seeking knowledge in today's world.

Key Takeaway

To use a computer, you need to know how to boot it up and use the mouse and keyboard. The desktop is the main screen, and folders hold files. Basic skills include clicking, double-clicking, dragging, dropping, and right-clicking. Practice makes perfect!

Grade 3 Working with Documents

What is a Document?

A document is a file that contains text, images, or other information. You can create documents using programs like Microsoft Word or Google Docs.

Basic Document Skills

  • Creating a New Document – Open a word processor and click "New" or "Blank Document."
  • Typing Text – Use the keyboard to type letters, numbers, and symbols.
  • Saving a Document – Click "Save" and give your document a name.
  • Opening a Document – Click "Open" and find your saved file.
  • Printing a Document – Click "Print" to make a paper copy.
Think About It

Practice typing a short story about yourself.

Include your name, your age, your favorite subject, and what you like to do.

Then save it with a name like "My_Story"!

Document Formatting

  • Changing Fonts – Make text look different by choosing a font.
  • Changing Size – Make text bigger or smaller.
  • Bold, Italic, Underline – Make text stand out.
  • Inserting Images – Add pictures to your document.
Activity

Create a "My Favorite Things" document.

Include:
1. A title using a large font.
2. A list of your favorite things.
3. A picture (if you can find one).
4. Save it with a name.

Bonus: Change the font color of your title.

Reflect

Writing and saving documents is a valuable skill that helps us share information. The Qur'an encourages us to write and preserve knowledge. "Read! And your Lord is the Most Generous, Who taught by the pen." (96:3-4)

Key Takeaway

A document is a file with text and images. You can create, save, open, and print documents. Formatting helps make documents look better. Document skills are essential for school and work.

Grade 4 Spreadsheets & Presentations

What is a Spreadsheet?

A spreadsheet is a program that organizes data in rows and columns. You can use it for calculations, budgets, and data analysis. Microsoft Excel and Google Sheets are popular spreadsheet programs.

Basic Spreadsheet Skills

  • Cells, Rows, and Columns – A cell is where you enter data; rows go across, columns go down.
  • Entering Data – Type numbers, text, or formulas into cells.
  • Simple Formulas – Use formulas to add, subtract, multiply, or divide. Example: =A1+B1 adds the values in cells A1 and B1.
Think About It

Create a budget for your weekly allowance.

Column A: Item (e.g., Snacks, Toys, Savings)
Column B: Cost (e.g., 20, 50, 30)
Formula: =SUM(B2:B4) – This adds all the costs!

What is a Presentation?

  • A presentation is a series of slides used to share information. Microsoft PowerPoint and Google Slides are common tools.
  • Slides – Each page of a presentation is a slide.
  • Adding Text – Type information on each slide.
  • Adding Images – Insert pictures to make slides more interesting.
  • Transitions – Add effects between slides.
📊 Spreadsheet Rows & Columns
📈 Formulas Calculations
📽️ Presentation Slides
🎨 Transitions Effects
Spreadsheets & Presentations
Activity

Create a 3-slide presentation about yourself.

Slide 1: Title – "All About Me"
Slide 2: My Family – Add a picture or text.
Slide 3: My Hobbies – List what you like to do.

Bonus: Add a transition between slides.

Reflect

Spreadsheets help us organize and analyze information. Presentations help us communicate and share ideas. These are valuable skills that help us in school, work, and life. Use them to serve others and share knowledge.

Key Takeaway

Spreadsheets organize data in rows and columns and can do calculations. Presentations share information using slides. Both are powerful tools for learning and communication. Practice using them to become more confident.

Grade 5 Internet & Digital Citizenship

What is the Internet?

The internet is a global network of computers that connects people and information from all over the world. It allows us to communicate, learn, and share with others instantly.

Using the Internet Safely

  • Personal Information – Never share personal details like your full name, address, phone number, or school online without permission.
  • Passwords – Keep your passwords secret and use strong ones (mix of letters, numbers, and symbols).
  • Stranger Danger – Never agree to meet someone you only know online.
  • Think Before You Click – Be careful about clicking on links or downloading files from unknown sources.
"The internet is a powerful tool, but with great power comes great responsibility." — Inspired by digital citizenship principles

Digital Citizenship

  • Be Kind Online – Treat others with respect in comments, messages, and posts.
  • Think Before You Post – Once something is online, it's hard to remove. Think about how your words might affect others.
  • Respect Others' Work – Don't copy others' work without permission. Give credit when you use someone else's ideas.
Story: The Kind Post

A student named Ahmed saw a friend's post online that was unkind. Instead of ignoring it, he sent a private message to his friend and said: "I saw your post. Are you okay? Let's talk about it."

His friend was struggling and appreciated Ahmed's kindness. They talked and worked through the problem together.

The lesson: Be a positive influence online. Use the internet to support and uplift others, not to hurt them.

Activity

Create a "Digital Citizenship Pledge" for yourself.

Include:
1. One rule about protecting your personal information.
2. One rule about being kind to others online.
3. One rule about respecting others' work.

Share your pledge with your family.

Reflect

The internet is a blessing from Allah that connects us to the world. But it also has risks. The Qur'an says: "And do not throw yourselves into destruction..." (2:195). Using the internet safely is a way to protect ourselves and others. Be a responsible digital citizen.

Key Takeaway

The internet connects people globally but comes with responsibilities. Protect your personal information, use strong passwords, and think before you click. Be a kind and respectful digital citizen by treating others well online.

Grade 6 Introduction to Programming

What is Programming?

Programming is the process of giving instructions to a computer to perform tasks. These instructions are written in a programming language.

Programming helps us create software, apps, websites, and games. It's like giving directions to a very fast and literal assistant.

Block-Based Programming

  • Scratch – A visual programming language where you drag and snap blocks together to create programs. It's a great way to start learning programming concepts.
  • Blocks – Each block represents a command, like "move," "say," or "repeat."
  • Sprites – Characters or objects in Scratch that you can program to move and interact.
🔵 Motion Move, turn, glide
🔵 Looks Say, think, change size
🔵 Events When clicked, key pressed
🔵 Control Repeat, if, wait
Scratch Block Categories
Try This in Scratch

Create a simple animation:

1. Choose a sprite (like a cat).
2. Add a "when green flag clicked" block.
3. Add a "move 10 steps" block.
4. Add a "say Hello!" block.
5. Click the green flag to run your program!

Activity

Create a Scratch project that tells a short story.

Include:
1. At least two sprites.
2. A conversation between them using "say" blocks.
3. Some motion (like moving across the screen).
4. A "when green flag clicked" block to start.

Share your project with a classmate.

Reflect

Programming is a way to create and solve problems. The Qur'an says: "And He taught man that which he knew not." (96:5). Just as Allah taught us, we can use programming to teach computers and serve humanity.

Key Takeaway

Programming is giving instructions to a computer. Scratch is a block-based programming language that makes it easy to start. Blocks represent commands like move, say, and repeat. Programming is a creative and powerful skill that you can develop.

Grade 7 Python Basics: Variables & Data Types

What is Python?

Python is a popular programming language known for being readable and beginner-friendly. It's used in web development, data science, artificial intelligence, and more.

Python is a text-based language, which means you type commands instead of dragging blocks. Let's learn the basics!

Variables

  • A variable is a container that holds data. You can store numbers, text, or other types of information.
  • Example:
    name = "Ahmed"
    age = 12
    height = 1.45
Try This

In Python, type these lines:

name = "Fatima"
age = 11
print("My name is", name)
print("I am", age, "years old")

What happens when you run it?

Data Types

  • Strings – Text, written in quotes. Example: "Hello"
  • Integers – Whole numbers. Example: 10, -5
  • Floats – Decimal numbers. Example: 3.14, 0.5
  • Booleans – True or False values.
📝 String "Hello"
🔢 Integer 42
🔢 Float 3.14
⚖️ Boolean True / False
Python Data Types
Activity

Write a Python program that stores and displays information about yourself.

Use variables for:
1. Your name (string)
2. Your age (integer)
3. Your height (float)
4. Whether you like coding (boolean)

Print all the information using print() statements.

Reflect

Learning to code is like learning a new language – the language of computers. The Qur'an says: "And of His signs is the creation of the heavens and the earth and the diversity of your languages..." (30:22). Just as languages connect people, programming languages connect us to technology.

Key Takeaway

Python is a text-based programming language. Variables store data like names, numbers, and booleans. Data types include strings, integers, floats, and booleans. Use print() to display information. Practice makes perfect!

Grade 8 Python: Conditions & Loops

Conditions (If Statements)

Conditions allow your program to make decisions based on whether something is true or false. This is done using if statements.

age = 15
if age >= 18:
    print("You are an adult")
else:
    print("You are a minor")
Try This

Write a program that checks if a number is even or odd:

num = int(input("Enter a number: "))
if num % 2 == 0:
    print("Even")
else:
    print("Odd")

Loops (Repeating Code)

  • For Loops – Repeat code a specific number of times.
    for i in range(5):
        print("Hello!", i)
  • While Loops – Repeat code while a condition is true.
    count = 0
    while count < 5:
        print("Count:", count)
        count = count + 1
❓ If Decision making
🔄 For Repeat fixed times
🔄 While Repeat while true
Conditions & Loops in Python
Activity

Write a Python program that:

1. Asks the user to guess a number between 1 and 10.
2. Uses an if statement to check if the guess is correct.
3. Uses a while loop to let the user try again until they get it right.

Bonus: Give hints like "Too high" or "Too low."

Reflect

In programming, we repeat tasks and make decisions. This is similar to life – we make choices and sometimes have to try again. The Qur'an says: "And be patient, for indeed, Allah is with the patient." (8:46). Perseverance is key in both programming and life.

Key Takeaway

If statements allow programs to make decisions. For loops repeat code a set number of times. While loops repeat code while a condition is true. Practice using these to build interactive and dynamic programs.

Grade 9 Data Structures & Algorithms

What are Data Structures?

Data structures are ways to organize and store data in a computer so it can be used efficiently. They are essential for writing efficient programs.

Lists in Python

  • A list is a collection of items in order.
    fruits = ["apple", "banana", "orange"]
    print(fruits[0])     # Output: apple
  • Common operations:
    fruits.append("grape")     # Add an item
    fruits.remove("banana")   # Remove an item
    print(len(fruits))     # Get the length
    print("apple" in fruits)   # Check if item exists
Try This

Create a list of your favorite movies and display them:

movies = ["The Lion King", "Aladdin", "Toy Story"]
for movie in movies:
    print(movie)

Algorithms

  • An algorithm is a step-by-step procedure for solving a problem.
  • Example: Linear Search – Find an item in a list by checking each item one by one.
    def linear_search(list, target):
        for item in list:
            if item == target:
                return True
        return False
Activity

Write a Python program that:

1. Creates a list of 10 numbers.
2. Asks the user for a number to search for.
3. Uses a linear search to find the number.
4. Prints "Found" or "Not Found."

Bonus: Implement a binary search (if you can).

Reflect

Allah has created the universe with order and structure. The Qur'an says: "And everything with Him is by measure." (13:8). Data structures help us organize information just as Allah has organized creation. Efficiency in algorithms is a way of honoring this divine order.

Key Takeaway

Data structures organize data efficiently. Lists are ordered collections of items. Algorithms are step-by-step solutions to problems. Learning data structures and algorithms is essential for becoming a skilled programmer.

Grade 10 Web Development: HTML & CSS

What is Web Development?

Web development is the process of building websites and web applications. It involves three main technologies: HTML (structure), CSS (style), and JavaScript (interactivity).

HTML: The Structure of Web Pages

  • HTML (HyperText Markup Language) is used to create the structure of web pages.
  • Elements: Tags like <h1>, <p>, and <div> define different parts of a page.
<!DOCTYPE html>
<html>
<head>
    <title>My Website</title>
</head>
<body>
    <h1>Welcome to My Website</h1>
    <p>This is my first webpage.</p>
</body>
</html>
Try This

Create a simple HTML page about your favorite hobby.

Include:
1. A title using <h1>.
2. A paragraph using <p>.
3. A list using <ul> and <li>.
4. An image using <img> (optional).

CSS: Styling Web Pages

  • CSS (Cascading Style Sheets) controls the appearance of web pages – colors, fonts, layouts, and more.
  • Selectors: Target HTML elements to style them.
    h1 {
        color: blue;
        font-size: 36px;
    }
    p {
        color: gray;
        font-family: Arial;
    }
📄 HTML Structure
🎨 CSS Style
⚡ JavaScript Interactivity
The Three Pillars of Web Development
Activity

Create a simple webpage about yourself.

Include:
1. An HTML structure with headings, paragraphs, and lists.
2. CSS to style your page (colors, fonts, margins).
3. A title in the browser tab.

Save the file as "my_page.html" and open it in a browser.

Reflect

The web is a powerful tool for sharing information and connecting with others. The Qur'an says: "And We have made some of you as a trial for others..." (25:20). When we create websites, we have the opportunity to share beneficial knowledge and serve humanity.

Key Takeaway

HTML provides the structure of web pages using tags. CSS styles web pages with colors, fonts, and layouts. Together, they form the foundation of web development. Practice creating and styling pages to build your skills.

Grade 11 Databases & Cybersecurity

What is a Database?

A database is an organized collection of data that can be easily accessed, managed, and updated. Databases are used in almost every application, from social media to banking.

SQL: The Language of Databases

  • SQL (Structured Query Language) is used to manage and query relational databases.
  • Basic SQL Commands:
    -- Create a table
    CREATE TABLE Students (
        id INTEGER PRIMARY KEY,
        name TEXT,
        age INTEGER
    );

    -- Insert data
    INSERT INTO Students VALUES (1, 'Ahmed', 16);

    -- Query data
    SELECT * FROM Students WHERE age > 15;
Think About It

How are databases used in your daily life?

Social Media: Stores your profile, posts, and friends.
Online Shopping: Stores products, orders, and customer information.
Education: Stores student records and grades.

Databases are everywhere!

Cybersecurity

  • Cybersecurity is the practice of protecting computers, networks, and data from unauthorized access, attacks, and damage.
  • Common Threats:
    • Viruses – Malicious programs that can harm your computer.
    • Phishing – Fake emails or messages that try to steal your information.
    • Hacking – Unauthorized access to systems.
  • Protection Measures:
    • Use strong, unique passwords.
    • Keep software updated.
    • Be careful with email attachments and links.
    • Use antivirus software.
🛡️ Confidentiality Data privacy
🛡️ Integrity Data accuracy
🛡️ Availability Data access
The CIA Triad: Cybersecurity Goals
Story: The Phishing Attempt

A student named Yusuf received an email that looked like it was from his school, asking him to click a link and enter his password. He noticed the email address was slightly different from the school's official address.

Instead of clicking, he forwarded it to his teacher. The teacher confirmed it was a phishing attempt. Yusuf had protected his information by being careful.

The lesson: Always verify the source before sharing personal information.

Activity

Create a cybersecurity awareness poster.

Include:
1. Tips for creating strong passwords.
2. How to recognize phishing emails.
3. The importance of keeping software updated.
4. A reminder to think before clicking.

Share your poster with your class.

Reflect

In Islam, we are taught to protect ourselves and our communities. The Qur'an says: "And do not throw yourselves into destruction..." (2:195). Cybersecurity is a form of self-protection in the digital age. We have a responsibility to safeguard our data and respect others' privacy.

Key Takeaway

Databases organize data and are managed using SQL. Cybersecurity protects computers, networks, and data from threats. Common threats include viruses, phishing, and hacking. Protect yourself with strong passwords, updates, and vigilance.

Grade 12 AI, Machine Learning & The Future

What is Artificial Intelligence?

Artificial Intelligence (AI) is the field of computer science that focuses on creating machines that can think and act like humans. AI can solve problems, recognize patterns, and make decisions.

Machine Learning

  • Machine Learning (ML) is a subset of AI where computers learn from data rather than being explicitly programmed.
  • Types of Machine Learning:
    • Supervised Learning: Learning from labeled data. Example: Training a model to recognize cats from labeled images.
    • Unsupervised Learning: Finding patterns in unlabeled data. Example: Grouping customers by purchasing behavior.
    • Reinforcement Learning: Learning through trial and error. Example: Training an AI to play chess.
"AI is the next great technological revolution, and it will transform every aspect of our lives." — Inspired by technology leaders

Applications of AI

  • Healthcare: Diagnosing diseases and discovering new medicines.
  • Transportation: Self-driving cars and traffic optimization.
  • Education: Personalized learning and intelligent tutoring systems.
  • Finance: Fraud detection and automated trading.
  • Communication: Language translation and chatbots.
🧠 AI Intelligent machines
📊 ML Learning from data
🧠 DL Neural networks
AI, Machine Learning & Deep Learning

Islamic Ethics and Technology

  • Justice ('Adl) – AI systems must be fair and unbiased. "And act justly..." (49:9)
  • Privacy – AI should respect people's privacy. "And do not spy..." (49:12)
  • Responsibility – Humans are accountable for how they use AI. "And whoever does good, it is for his own soul..." (45:15)
  • Purpose – Technology should be used to serve humanity and not to harm.
Story: AI for Good

A group of Muslim students created an AI-powered app that helps people with disabilities navigate public spaces. The app uses computer vision to detect obstacles and provide guidance.

The students were inspired by the Islamic value of serving others. They said: "We wanted to use technology to help people, just as the Prophet ﷺ helped others."

The lesson: Technology is a tool. When used with good intentions, it can benefit all of humanity.

Activity

Research an AI application that benefits society.

Answer these questions:
1. What is the AI application?
2. How does it help people?
3. What ethical considerations does it involve?
4. How does it align with Islamic values?

Write down your findings and share them with your class.

Reflect

AI and technology are gifts from Allah that can be used for good or harm. The Qur'an says: "And We have certainly honored the children of Adam..." (17:70). As Muslims, we have a responsibility to use technology ethically and to benefit all of humanity. Let us be leaders in using AI for good.

Key Takeaway

Artificial Intelligence (AI) is creating intelligent machines. Machine Learning is teaching computers to learn from data. AI is used in healthcare, transportation, education, and more. As Muslims, we must ensure that AI is fair, private, responsible, and purposeful. The future of technology is in our hands.

Computer Science – Complete!

You've journeyed through 12 years of Computer Science – from learning basic computer parts to understanding AI and machine learning. You've explored hardware, software, programming, web development, data, cybersecurity, and artificial intelligence. You are now equipped with the knowledge and skills to thrive in the digital age. May Allah bless your journey and make you a leader in using technology for good!

Grade 1 Grade 2 Grade 3 Grade 4 Grade 5 Grade 6 Grade 7 Grade 8 Grade 9 Grade 10 Grade 11 Grade 12