Introduction to Programming Languages: Visual-Based and Text-Based Programming Languages Primary 4 (Basic 4) Third Term Week 9 Information Technology – Computer Studies
INTRODUCTION TO PROGRAMMING LANGUAGES: VISUAL-BASED AND TEXT-BASED PROGRAMMING LANGUAGES
INFORMATION TECHNOLOGY (COMPUTER STUDIES)
PRIMARY 4 – THIRD TERM – WEEK 9
THEME – BASIC COMPUTER OPERATIONS
PREVIOUS LESSON – Microsoft Excel: Meaning and How to Launch Microsoft Excel Primary 4 (Basic 4) Third Term Week 8 Information Technology – Computer Studies
TOPIC – INTRODUCTION TO PROGRAMMING LANGUAGES
LEARNING AREA
1. Introduction
2. Visual-Based and Text-Based Programming Languages
3. Differences Between Visual-Based and Text-Based Programming Languages
4. Importance of Programming Languages
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. State the meaning of visual-based programming languages.
3. State the meaning of text-based programming languages.
4. Give examples of visual-based and text-based programming languages.
5. Differentiate between visual-based and text-based programming languages.
ENTRY BEHAVIOUR
Pupils have previously learned that coding is the process of writing instructions for a computer. They also used simple coding tools such as Scratch or Blockly to create basic programs.
This lesson builds on that knowledge by introducing programming languages. Pupils will learn that there are different ways of writing computer programs, including visual-based programming languages, which use blocks or pictures, and text-based programming languages, which use typed commands and symbols.
INSTRUCTIONAL MATERIALS
The teacher will teach the lesson with the aid of:
1. Computer or laptop
2. Projector (if available)
3. Scratch application
4. Charts showing examples of programming languages
5. Whiteboard and marker
6. Pictures of coding blocks and text-based code
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
People communicate with one another using different languages. In the same way, computers understand instructions written in programming languages. These programming languages help programmers create computer programs, websites, games, and mobile applications.
In this lesson, pupils will learn the meaning of programming languages, the difference between visual-based and text-based programming languages, and examples of each.
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.
Programmers use programming languages to create computer programs, websites, games, and mobile applications.
VISUAL-BASED PROGRAMMING LANGUAGES
Visual-based programming languages are programming languages that use pictures, symbols, or blocks instead of typing many commands.
They are easy for beginners and children to learn because users drag and drop coding blocks to create programs.
Examples of Visual-Based Programming Languages
- Scratch
- Blockly
- MIT App Inventor
- Tynker
TEXT-BASED PROGRAMMING LANGUAGES
Text-based programming languages are programming languages in which users type commands, keywords, numbers, and symbols to write programs.
These languages require learners to type the correct instructions using the keyboard.
Examples of Text-Based Programming Languages
- Python
- Java
- C++
- JavaScript
- BASIC
LESSON 2 – DIFFERENCES BETWEEN VISUAL-BASED AND TEXT-BASED PROGRAMMING LANGUAGES
1. Visual-Based Programming Languages
- Use blocks, pictures, or symbols.
- Coding is done by dragging and dropping blocks.
- Easy for beginners and children.
- Fewer typing errors.
Text-Based Programming Languages
- Use typed words, commands, and symbols.
- Coding is done by typing instructions.
- Require knowledge of programming rules.
- Used to create more advanced computer programs.
LESSON 3 – IMPORTANCE OF PROGRAMMING LANGUAGES
Programming languages help people to:
1. Create computer programs.
2. Develop websites.
3. Design computer games.
4. Build mobile applications.
5. Control robots and smart devices.
6. Solve problems using computers.
7. Improve logical thinking and creativity.
CHOOSING THE RIGHT PROGRAMMING LANGUAGE
1. Children and beginners should start with visual-based programming languages such as Scratch and Blockly.
2. As learners gain more experience, they can learn text-based programming languages such as Python, Java, and C++.
WEEKLY ASSESSMENT: TEST QUESTIONS AND ANSWERS/ASSIGNMENT
A. Multiple Choice Questions (5 Marks)
1. A programming language is used to ______.
A. play music
B. write instructions for a computer
C. print documents
D. draw pictures
2. Which of the following is a visual-based programming language?
A. Python
B. Java
C. Scratch
D. C++
3. Which of the following is a text-based programming language?
A. Blockly
B. Scratch
C. Tynker
D. Python
4. Visual-based programming languages mainly use ______.
A. blocks and pictures
B. only numbers
C. only calculators
D. paper and pencil
5. Which of the following is suitable for beginners?
A. Scratch
B. Java
C. C++
D. JavaScript
B. Fill in the Blanks (5 Marks)
6. A ______ language is used to write instructions for a computer.
7. Scratch is a ______-based programming language.
8. Python is a ______-based programming language.
9. Visual-based programming languages use ______ instead of typing many commands.
10. Programmers use programming languages to create computer ______.
C. True or False (5 Marks)
11. Python is a visual-based programming language. ______
12. Scratch is a text-based programming language. ______
13. Blockly uses drag-and-drop coding blocks. ______
14. Visual-based programming languages are difficult for beginners. ______
15. Programming languages help people create websites and games. ______
D. Match Column A with Column B (5 Marks)
Column A – Column B
16. Scratch – A. Uses drag-and-drop blocks
17. Blockly – B. Visual-based programming language
18. Python – C. Easy for beginners
19. Java – D. Text-based programming language
20. Visual-based programming – E. Text-based programming language
ANSWER KEYS
1. B – Write instructions for a computer
2. C – Scratch
3. D – Python
4. A – Blocks and pictures
5. A – Scratch
6. programming
7. visual
8. text
9. blocks
10. programs
11. False
12. False
13. True
14. False
15. True
16. B – Visual-based programming language
17. A – Uses drag-and-drop blocks
18. E – Text-based programming language
19. D – Text-based programming language
20. C – Easy for beginners
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 the two main types of programming languages:
- Visual-based programming languages, which use blocks, pictures, or symbols to create programs. Examples include Scratch, Blockly, MIT App Inventor, and Tynker.
- Text-based programming languages, which require users to type commands, keywords, and symbols to create programs. Examples include Python, Java, C++, JavaScript, and BASIC.
Pupils learned the differences between visual-based and text-based programming languages. They understood that visual-based programming languages are easier for beginners because they use drag-and-drop blocks, while text-based programming languages require typing and are used to create more advanced computer programs.
Finally, pupils learned that programming languages are used to create computer programs, websites, computer games, mobile applications, and to control robots and smart devices. They also understood that beginners are encouraged to start learning programming with visual-based programming languages before progressing to text-based programming languages.
PRESENTATION
To deliver the lesson, the teacher adopts the following steps:
Step 1: Introduction – The teacher asks pupils how they gave instructions to the computer when using Scratch or Blockly. The teacher explains that computers understand instructions written in programming languages.
Pupils’ Activities: Pupils recall their previous coding lessons and discuss how they created simple programs.
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: Visual-Based Programming Languages – The teacher explains that visual-based programming languages use blocks, pictures, or symbols instead of typing commands. The teacher demonstrates simple coding using Scratch or Blockly.
Examples:
- Scratch
- Blockly
- MIT App Inventor
- Tynker
Pupils’ Activities: Pupils identify the visual coding blocks and observe how they are connected to create a program.
Step 4: Text-Based Programming Languages – The teacher explains that text-based programming languages require users to type commands using the keyboard.
Examples:
- Python
- Java
- C++
- JavaScript
- BASIC
The teacher displays a simple example of typed code.
Pupils’ Activities: Pupils observe the text-based code and compare it with Scratch blocks.
Step 5: Differences Between Visual-Based and Text-Based Programming Languages – The teacher explains the differences by comparing Scratch blocks with a simple Python program.
Pupils’ Activities: Pupils identify the differences between the two types of programming languages.
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 give four examples.
- Group 2: Identify and explain visual-based programming languages.
- Group 3: Identify and explain text-based programming languages.
- Group 4: Compare visual-based and text-based programming languages and state when each is commonly used.
Each group presents its work before the class.
Pupils’ Activities: Pupils discuss, complete the assigned tasks, and present their findings.
Step 7: Lesson Summary – The teacher reviews the meaning of programming languages, the two main types, their examples, differences, and their uses.
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 the differences between visual-based and text-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. What is a text-based programming language?
4. Mention four examples of visual-based programming languages.
5. Mention five examples of text-based programming languages.
6. State five differences between visual-based and text-based programming languages.
7. Why are visual-based programming languages suitable for beginners?
8. State five uses of programming languages.
9. Which type of programming language would you recommend for a Primary 4 pupil? Give a reason for your answer.
10. Demonstrate your understanding by identifying a visual-based programming language and a text-based programming language, then explain how each one is used to create computer programs.