🚀 Middle School
| IGCSE • Computer Science

Programming

Scratch.

1 Lesson 1 MCQ 1 Mnemonic
+25
XP
Available to earn
1
Lesson

Programming — Lesson

1) Hook — The Cricket Captain’s Secret Code

Imagine you are the captain of your school cricket team. You want to tell your players exactly what to do — when to bowl, when to run, and when to field — but without shouting on the field. So, you create a secret code with simple instructions that everyone understands. This secret code is like a program in computer science! Just like your players follow your instructions to win the match, a computer follows the instructions in a program to solve problems.

2) Core Concepts — What is Programming?

Programming is the process of writing instructions that a computer can understand and execute. These instructions are called code. When you write code, you tell the computer exactly what to do, step by step.

Example: Suppose you want to tell a robot to make a cup of chai. Your program might look like this:

  • Boil water
  • Add tea leaves
  • Pour water into cup
  • Add sugar and milk
  • Stir well

The robot follows these steps exactly, just like a computer follows a program.

Basic Programming Terms

Term Meaning Example
Program A set of instructions for a computer A recipe for making chai
Code The language used to write a program Python, Scratch, Java
Algorithm Step-by-step plan to solve a problem Steps to solve a Sudoku puzzle
Bug An error in the program Robot spills tea because of wrong instruction

How Programming Works (Simple Flow)

Think of programming like giving instructions to a Bollywood dance troupe for a performance:

  • Write: You write the dance steps (program code).
  • Test: You practice the dance to check for mistakes (debugging).
  • Run: The troupe performs on stage (computer executes the program).

3) Key Formulas/Rules

Rule 1: Programming is all about giving clear, step-by-step instructions.

Rule 2: Computers only understand specific programming languages (like Python, C++, Java).

Rule 3: Every program must be tested to find and fix bugs (errors).

Rule 4: Algorithms are the blueprint before writing actual code.

4) Did You Know?

Did you know that the first computer programmer was an Indian mathematician named Ada Lovelace in the 1800s? She wrote the first algorithm intended to be processed by a machine — way before computers existed! Just like Sachin Tendulkar was the “Master Blaster” in cricket, Ada was the “Master Programmer” of her time.

5) Exam Tips

  • Read questions carefully: Understand what the program should do before writing code or explaining.
  • Use proper terminology: Words like program, code, algorithm, bug, debugging are often asked.
  • Draw flowcharts or write pseudocode: They help explain your logic clearly.
  • Watch out for common mistakes: Mixing steps, missing instructions, or confusing algorithm with code.
  • Practice sample questions: Board exams often ask to write simple algorithms or explain programming terms.

Remember, programming is like learning a new language — the more you practice, the better you become. Keep coding, and soon you’ll create your own “winning strategies” just like your cricket captain!

2
MCQ Practice

Programming — Mcq

3
Memory Trick

Programming — Mnemonic

Mnemonic 1: PRO-GRAM-MING 🖥️🏏

  • Plan your code like a cricket captain’s strategy 🏏
  • Repeat steps until perfect, just like practice shots 🏏
  • Organize your commands neatly, like Bollywood dance moves 💃
  • Give clear instructions, like a director on set 🎬
  • Run your program and watch the magic happen ✨
  • Always debug errors, like fixing a broken dholak 🥁
  • Make your code simple and sweet, like your favourite mithai 🍬
  • Memory helps — keep practicing daily 📚
  • Input data carefully, like a chef adding spices 🍲
  • Never give up, just like your favourite cricket player 🏏
  • Go ahead and create something amazing! 🚀

Mnemonic 2: Hindi Fun Phrase 🎉

"प्रोग्रामिंग है आसान, जैसे चाय में शक्कर डालना!"

Translation: Programming is easy, like adding sugar to tea! ☕🍬

Tip: Think of writing code as simple and sweet as making your perfect cup of chai — just mix the right ingredients (commands) and enjoy the result!

Mnemonic 3: Acronym - CODE 🖱️🎮

  • Create your plan (like setting a Bollywood movie script 🎥)
  • Order your commands (like lining up for a cricket match 🏏)
  • Debug errors (like fixing your bike chain 🚲)
  • Execute and enjoy! (like watching your favourite movie 🎬)
Interactive

Mission: Master This Topic!

Reinforce what you learned with fun activities

🎯

Ready to Battle? Test Your Knowledge!

Practice MCQs, build combos, climb the leaderboard!

Start Practice

Loading...

Hey! 🔥 Your 7-day streak is at risk. Complete one quick quest today?

Streak broken? No worries. Recover with bonus XP by completing a quest now.