Introduction to Programming Languages: Meaning and Types of Visual-Based Programming Languages Primary 4 (Basic 4) First Term Week 8 Information Technology – Computer Studies
INTRODUCTION TO PROGRAMMING LANGUAGES: MEANING AND TYPES OF VISUAL-BASED PROGRAMMING LANGUAGES
INFORMATION TECHNOLOGY (COMPUTER STUDIES)
PRIMARY 5 – FIRST TERM – WEEK 8
THEME – BASIC COMPUTER OPERATIONS
PREVIOUS LESSON – Internet Browsers: Meaning, Types and Uses of Internet Browsers Primary 5 (Basic 5) First Term Week 6 Information Technology – Computer Studies
TOPIC – VISUAL-BASED PROGRAMMING LANGUAGES
LEARNING AREA
1. Introduction
2. Meaning and Types of Visual-Based Programming Languages
3. Uses of Visual-Based Programming Languages
4. Practical Activities
5. Weekly Assessment: Test Questions and Answers/Assignment
6. Summary
LEARNING OBJECTIVES
By the end of the lesson, pupils should be able to:
1. Explain the meaning of a programming language.
2. Explain the meaning of a visual-based programming language.
3. Identify different types of visual-based programming languages.
4. State the uses of visual-based programming languages.
5. Appreciate the importance of visual programming in learning computer coding.
ENTRY BEHAVIOUR
Pupils have previously learned how to open and use computer applications such as Microsoft Excel. They understand that different software applications are created to perform different tasks.
This lesson builds on that knowledge by introducing programming languages, especially visual-based programming languages, which use colourful blocks, pictures, and simple commands to create computer programs without typing complex codes.
INSTRUCTIONAL MATERIALS
The teacher will teach the lesson with the aid of:
1. Desktop or laptop computer
2. Projector (if available)
3. Scratch application or Scratch website
4. Blockly application or website
5. Charts showing programming blocks
6. Whiteboard and marker
METHOD OF TEACHING
Choose a suitable and appropriate methods for the lessons.
Note – Irrespective of choosing methods of teaching, always introduce an activities that will arouse pupil’s interest or lead them to the lessons.
REFERENCE MATERIALS
1. Scheme of Work
2. 9 – Years Basic Education Curriculum
3. Course Book
4. All Relevant Material
5. Online Information
CONTENT OF THE LESSON
INTRODUCTION
Computers do not understand human language. They only understand instructions written in special languages called programming languages. Some programming languages use colourful blocks that pupils can drag and join together to create programs. These are called visual-based programming languages.
In this lesson, pupils will learn the meaning of programming languages, the meaning of visual-based programming languages, their types, and their uses.
LESSON 1 – MEANING OF A PROGRAMMING LANGUAGE
A programming language is a special language used to write instructions that tell a computer what to do.
It helps people create computer programs, games, websites, animations, and applications.
MEANING OF A VISUAL-BASED PROGRAMMING LANGUAGE
A visual-based programming language is a type of programming language that uses pictures, colourful blocks, icons, and drag-and-drop commands instead of typing many text codes.
It makes programming easy and fun, especially for beginners and children.
TYPES OF VISUAL-BASED PROGRAMMING LANGUAGES
Some common visual-based programming languages are:
1. Scratch – Scratch is a visual programming language developed by the Massachusetts Institute of Technology (MIT). It allows users to create animations, games, and stories by joining colourful programming blocks.
2. Blockly – Blockly is a visual programming language developed by Google. It uses drag-and-drop blocks to teach programming concepts and can also generate text-based programming code.
3. Alice – Alice is a visual programming language that helps users create 3D animations, stories, and simple games by dragging and dropping programming blocks.
4. MIT App Inventor – MIT App Inventor is a visual programming language used to create simple Android mobile applications without writing complex code.
5. Snap! – Snap! is an advanced version of Scratch. It allows learners to create more complex programs while still using colourful drag-and-drop blocks.
LESSON 2 – USES OF VISUAL-BASED PROGRAMMING LANGUAGES
Visual-based programming languages are used to:
1. Create simple computer programs.
2. Develop animations.
3. Design interactive stories.
4. Create educational games.
5. Build simple mobile applications.
6. Learn programming easily.
7. Develop problem-solving skills.
8. Improve creativity and logical thinking.
IMPORTANCE OF VISUAL-BASED PROGRAMMING LANGUAGES
Visual-based programming languages help pupils to:
1. Learn programming easily.
2. Develop creative thinking.
3. Improve logical reasoning.
4. Build confidence in coding.
5. Prepare for advanced programming languages.
6. Solve problems using computers.
7. Create fun and interactive projects.
LESSON 3 – VISUAL-BASED PROGRAMMING LANGUAGES: PRACTICAL ACTIVITIES
The teacher demonstrates the following practical activities using a computer with Scratch or another visual programming application:
1. Turn on the computer.
2. Open the Scratch application or visit the Scratch website (if Internet is available).
3. Identify the Scratch interface, including the:
- Stage
- Sprite
- Blocks Palette
- Coding Area
- Sprite List
4. Demonstrate how to drag and drop programming blocks into the Coding Area.
5. Join two or more blocks together to form a simple program.
6. Click the Green Flag to run the program.
7. Show how the sprite moves or performs an action based on the blocks used.
8. Demonstrate how to stop the program using the Stop button.
9. Display other visual programming applications such as Blockly, Alice, MIT App Inventor, and Snap! using pictures or screenshots.
10. Explain that visual programming uses colourful blocks instead of typing complex codes.
PUPIL’S ACTIVITIES
1. Observe the Scratch interface.
2. Identify the Stage, Sprite, Blocks Palette, and Coding Area.
3. Drag and drop simple programming blocks.
4. Join the blocks correctly.
5. Run the program by clicking the Green Flag.
6. Observe the movement or action performed by the sprite.
7. Mention other examples of visual-based programming languages shown by the teacher.
WEEKLY ASSESSMENT: TEST QUESTIONS AND ANSWERS/ASSIGNMENT
A. Multiple Choice Questions (5 Marks)
1. A programming language is used to ______.
A. play music
B. print documents only
C. browse the Internet
D. give instructions to a computer
2. A visual-based programming language uses ______.
A. only numbers
B. only typed text
C. colourful blocks and pictures
D. only symbols
3. Which of the following is a visual-based programming language?
A. Scratch
B. Microsoft Word
C. Excel
D. Paint
4. Scratch was developed by ______.
A. Apple
B. Microsoft
C. MIT
D. Yahoo
5. Which visual programming language was developed by Google?
A. Scratch
B. Blockly
C. Alice
D. Snap!
B. Fill in the Blanks (5 Marks)
6. A ______ language is used to write instructions for a computer.
7. Scratch uses colourful ______ instead of typing many codes.
8. ______ is used to create simple Android mobile applications.
9. ______ is an advanced version of Scratch.
10. Visual programming makes coding easier for ______.
C. True or False (5 Marks)
11. Scratch is a Microsoft PowerPoint. ______
12. Blockly was developed by Google. ______
13. Visual programming languages use only typed text. ______
14. Alice can be used to create 3D animations. ______
15. Visual programming helps beginners learn coding easily. ______
D. Match Column A with Column B (5 Marks)
Column A – Column B
16. Scratch – A. Developed by Google
17. Blockly – B. Advanced version of Scratch
18. Alice – C. Developed by MIT – 19. MIT App Inventor
D. Creates Android apps
20. Snap! – E. Creates 3D animations
ANSWER KEYS
1. D – Give instructions to a computer
2. A – Colourful blocks and pictures
3. A – Scratch
4. C – MIT
5. B – Blockly
6. programming
7. blocks
8. MIT App Inventor
9. Snap!
10. beginners
11. False
12. True
13. False
14. True
15. True
16. C – Developed by MIT
17. A – Developed by Google
18. E – Creates 3D animations
19. D – Creates Android apps
20. B – Advanced version of Scratch
SUMMARY
In this lesson, pupils learned that a programming language is a special language used to write instructions that tell a computer what to do.
They also learned that a visual-based programming language uses colourful blocks, pictures, icons, and drag-and-drop commands instead of typing complex text codes. This makes programming easier for beginners, especially children.
Pupils identified common visual-based programming languages, including:
- Scratch
- Blockly
- Alice
- MIT App Inventor
- Snap!
They also learned the uses of visual-based programming languages, such as creating animations, games, interactive stories, simple mobile applications, and learning programming concepts.
Finally, pupils understood the importance of visual-based programming languages. They help learners develop creativity, logical thinking, problem-solving skills, confidence in coding, and prepare them for learning advanced text-based programming languages in the future.
PRESENTATION
To deliver the lesson, the teacher adopts the following steps:
Step 1: Introduction – The teacher asks pupils how a computer knows what to do when they play a game or open an application. The teacher explains that computers work by following instructions written in programming languages.
Pupils’ Activities: Pupils discuss how computers follow instructions to perform different tasks.
Step 2: Meaning of a Programming Language – The teacher explains that a programming language is a special language used to write instructions that tell a computer what to do.
Pupils’ Activities: Pupils explain the meaning of a programming language in their own words.
Step 3: Meaning of a Visual-Based Programming Language – The teacher explains that a visual-based programming language uses colourful blocks, pictures, and drag-and-drop commands instead of typing many text codes.
Pupils’ Activities: Pupils identify why visual programming is easier for beginners.
Step 4: Types of Visual-Based Programming Languages – The teacher introduces and explains the following visual-based programming languages:
- Scratch
- Blockly
- Alice
- MIT App Inventor
- Snap!
The teacher displays their logos or screenshots and briefly explains what each one is used for.
Pupils’ Activities: Pupils identify each visual programming language and mention its use.
Step 5: Uses and Importance of Visual-Based Programming Languages – The teacher explains that visual programming languages are used to:
- Create games.
- Create animations.
- Design interactive stories.
- Build simple mobile applications.
- Learn programming.
The teacher also explains their importance, such as improving creativity, logical thinking, and problem-solving skills.
Pupils’ Activities: Pupils discuss the uses and importance of visual programming.
Step 6: Group Activity – The teacher divides the class into four groups and assigns the following activities:
- Group 1: Explain the meaning of a programming language and a visual-based programming language.
- Group 2: Identify and describe five visual-based programming languages.
- Group 3: List and explain five uses of visual-based programming languages.
- Group 4: Demonstrate how to drag and join simple blocks in Scratch (or identify the main parts of the Scratch interface if computers are unavailable).
Each group presents its work before the class.
Pupils’ Activities: Pupils discuss, complete the assigned activities, and present their findings.
Step 7: Lesson Summary – The teacher reviews the meaning of programming languages, the meaning of visual-based programming languages, their types, uses, and importance.
Pupils’ Activities: Pupils answer oral questions and summarise the lesson.
Step 8: Evaluation – The teacher asks oral and written questions to assess pupils’ understanding of programming languages and visual-based programming languages.
Pupils’ Activities: Pupils answer the evaluation questions and participate actively in the lesson.
CONCLUSION
To conclude the lesson for the week, the teacher revises the entire lesson and links it to the following week’s lesson.
NEXT LESSON
LESSON EVALUATION
Teacher asks pupils,
1. What is a programming language?
2. What is a visual-based programming language?
3. Mention five examples of visual-based programming languages.
4. State five uses of visual-based programming languages.
5. Mention five importance of visual-based programming languages.
6. Who developed:
(a) Scratch?
(b) Blockly?
7. Differentiate between a programming language and a visual-based programming language.
8. Why is Scratch suitable for beginners?
9. Mention three projects that can be created using Scratch or other visual programming languages.
10. Demonstrate your understanding by opening the Scratch application, identifying the Stage, Sprite, Blocks Palette, and Coding Area, then drag and join simple blocks to make the sprite perform an action.