Last reviewed: 2 November 2026
Updated November 2026. These visual programming Grade 9 notes cover sub-strand 2.2 of Grade 9 Pre-Technical Studies: what visual programming is, where it is used to solve problems, the main parts of a block-based tool such as Scratch, and how to build a simple interactive story, game or animation step by step. Short practice questions with answers are at the end.
The scope comes from the Visual Programming sub-strand in the KICD Grade 9 Pre-Technical Studies curriculum design, which places it under Strand 2.0, Communication in Pre-Technical Studies, with about 15 lessons. The design expects learners to explain application areas, create an application, and use visual programming to solve day-to-day problems.
On this page
- What Is Visual Programming?
- Application Areas of Visual Programming
- Parts of a Block-Based Programming Environment
- Visual Programming Grade 9 Notes: Key Ideas
- Worked Project: A Three-Question Quiz Game
- Practice Questions With Answers
- Common Mistakes
- Grade 9 Pre-Technical Studies and KJSEA
- Frequently Asked Questions
What Is Visual Programming?
Visual programming is a way of writing computer programs by arranging graphical blocks, icons or flowchart shapes instead of typing lines of code. Each block stands for an instruction, such as “move 10 steps” or “say Hello”, and blocks snap together only in ways that make sense, so beginners avoid typing errors and can focus on logic.
A widely used free example is Scratch, made by the MIT Media Lab, which runs in a web browser or as an offline app. Other block-based tools work in a similar way, so the ideas below apply to whichever tool your school uses.
Application Areas of Visual Programming
- Games: simple quiz, maze or catching games.
- Interactive stories: characters talk, move and respond to clicks.
- Animations: cartoons, greeting cards and moving posters.
- Education: maths drills, spelling quizzes and science simulations.
- Problem solving in daily life: a calculator for shopping totals, a timer for study breaks, or a quiz that teaches road safety.
- Controlling devices: block-based tools are also used to program robots and small boards in robotics clubs.
Parts of a Block-Based Programming Environment
| Part | What it is (Scratch example) |
|---|---|
| Stage | The area where the program runs and you see the result |
| Sprite | A character or object that you program, such as the Scratch cat |
| Backdrop | The background picture on the stage |
| Block palette | The list of blocks, grouped by colour: Motion, Looks, Sound, Events, Control, Sensing, Operators and Variables |
| Scripts (code) area | Where you drag and join blocks to make a script |
| Green flag and stop sign | Start and stop the program |
Visual Programming Grade 9 Notes: Key Ideas
- Sequence: blocks run in order from top to bottom.
- Events: a script starts when something happens, for example “when green flag clicked” or “when this sprite clicked”.
- Loops: “repeat 10” or “forever” run blocks again and again.
- Conditions: “if … then … else” lets the program make decisions, such as checking whether an answer is correct.
- Variables: named stores for values that change, such as score or lives.
- Input and output: “ask … and wait” takes an answer from the user; “say” shows a message.
Worked Project: A Three-Question Quiz Game
- Plan: decide the problem. Here, a quiz that helps Grade 6 pupils revise multiplication.
- Set up: choose a backdrop and a sprite. Create a variable called score.
- Start: under “when green flag clicked”, add “set score to 0” and “say Welcome to the quiz! for 2 seconds”.
- Question 1: “ask What is 6 × 7? and wait”, then “if answer = 42 then change score by 1 and say Correct! else say The answer is 42”.
- Questions 2 and 3: repeat the pattern with new questions.
- Finish: “say join You scored, score” so the sprite reports the result.
- Test and debug: run it, try right and wrong answers, and fix any block that gives the wrong result.
- Share: show it to classmates and improve it from their feedback, for example by adding sounds or a timer.
The same plan, build, test and improve steps work for an interactive story (sprites take turns to “say” lines, triggered by broadcasts) or an animation (switch costumes inside a “repeat” loop with short waits).
Practice Questions With Answers
- Define visual programming. Answer: creating computer programs by arranging graphical blocks or icons instead of typing text code.
- Give three application areas of visual programming. Answer: any three of games, interactive stories, animations, educational quizzes and simulations, and controlling robots.
- What is a sprite? Answer: a character or object on the stage that is controlled by scripts.
- Which programming idea makes blocks run again and again? Answer: a loop, such as “repeat” or “forever”.
- Why is a variable used in a quiz game? Answer: to store and update a value that changes, such as the score.
Common Mistakes
- Forgetting an event block at the top, so the script never starts.
- Not resetting the score to 0 at the start, so marks carry over from the last run.
- Skipping testing with wrong answers.
Grade 9 Pre-Technical Studies and KJSEA
Visual programming sits beside oblique projection in the Communication strand. KJSEA assesses Pre-Technical Studies through a written paper and a project: the KNEC 2026 KJSEA timetable listed 912/1 Pre-Technical Studies (1 hour 40 minutes) and the 912/2 project (one month). See the full sub-strand list on our Grade 9 Pre-Technical Studies curriculum page and revise safety, tools and drawing with the Pre-Technical Studies revision guide.
Try a timed Grade 9 Pre-Technical Studies practice paper (912/1), practise on the Grade 9 CBC Challenge, or start coding with our coding for kids lesson 1. All Grade 9 subjects are on the Grade 9 notes hub.
Frequently Asked Questions
What is visual programming in Grade 9 Pre-Technical Studies?
It is building programs by joining graphical blocks instead of typing code. Grade 9 learners use it to create games, interactive stories and animations that solve day-to-day problems.
Which software is used for visual programming?
Block-based tools such as Scratch are common because they are free and run in a browser or offline. Schools may use any similar tool; the ideas of sprites, events, loops and variables are the same.
What are the application areas of visual programming?
Games, interactive stories, animations, educational quizzes and simulations, simple everyday tools such as calculators and timers, and programming robots.
Can I download these visual programming notes as a PDF?
Yes. Use your browser’s print option and choose “Save as PDF”.
Want marked practice? The first five questions are free. A Day Pass (KSh 20) unlocks the full Grade 9 Pre-Technical Studies practice papers with worked answers for a day, and the Monthly Pass (KSh 500) opens every grade and subject for a month. Compare passes.