Types of Text-Based Programming Languages and Uses

TOPIC: Types of Text-Based Programming Languages and Uses
SUBTOPIC: Introduction to Text-Based Languages
CLASS: Primary 5
DATE: ____________________
PERIOD: ____________________
DURATION: 40 minutes

LEARNING OBJECTIVES:

By the end of the lesson, pupils should be able to:

  1. Define text-based programming languages.
  2. Identify examples of text-based languages.
  3. State their uses.

KEY VOCABULARY WORDS:

  • Text-based – Programming written with words/codes.
  • HTML – Used to create web pages.
  • CSS – Used to design web pages.
  • Python – A simple language for beginners.
  • Java / PHP / C++ – Common coding languages.

INSTRUCTIONAL MATERIALS:

  • Projector showing sample codes
  • Chart comparing text-based vs visual programming
  • Whiteboard

INTRODUCTORY ACTIVITY:

  • Teacher shows a line of HTML code: <h1>Hello World!</h1>.
  • Pupils guess what it does.

CONTENT OF THE LESSON:

What Is Text-Based Programming?

Text-based programming means writing instructions for the computer using words, symbols, and commands (called code).

Instead of using blocks or pictures (like in Scratch), you type lines of code to tell the computer what to do.

It’s like giving the computer a recipe, but using special words and rules.

Examples of Text-Based Languages and What They’re Used For:

Language

What It’s Used For

HTML

It builds the structure of websites (like the skeleton)

CSS

It makes websites look nice with colors and styles

Python

It is great for beginners. It is used for games, apps, and robots

Java

It is used to create mobile apps and some websites

PHP

It helps build interactive websites (like login systems)

C++

It used for making video games and fast computer programs

Importance of Text-Based Language

  • Helps people build websites, games, and apps
  • Used by real programmers around the world
  • Helps you think logically and solve problems

Example:

print(“Hello”)

 

CLASS EXERCISE 1:

List three text-based programming languages.

CLASS EXERCISE 2:

Fill in the blanks:

  1. HTML is used to make __________.
  2. A simple coding language for beginners is __________.

ASSIGNMENT (MCQs):

  1. Which of these is a text-based language? (a) Scratch (b) Python (c) Alice (d) Minecraft
  2. HTML is used for: (a) Animations (b) Cooking (c) Web pages (d) Movies
  3. CSS means: (a) Creative Style Sheet (b) Cascading Style Sheet (c) Computer Storage System (d) Code Style Software
  4. Which of these is NOT a text-based language? (a) PHP (b) Java (c) Scratch (d) C++
  5. Python is popular because: (a) It is simple (b) It is hard (c) It is a browser (d) It is an image
Types of Text-Based Programming Languages and Uses
Scroll to top
Don`t copy text!
0
Would love your thoughts, please comment.x
()
x