This lesson note is designed for a 50-minute instructional period.
It follows the Nigerian National
Curriculum (NERDC) for SS3 Computer Science, focusing on the Week 1 topic of the second term.
Lesson Note: High-Level Languages (HLL)
Subject: Computer Science
Class: SS3
Duration: 50 Minutes
Topic: High-Level Programming Languages
1. Lesson Objectives
By the end of this lesson, students should be able to:
1. Define High-Level Languages (HLL).
2. State at least five characteristics of HLLs.
3. Classify HLLs based on their application areas.
4. Explain the difference between a Compiler and an Interpreter.
5. List common examples of HLLs and their uses.
2. Introduction (5 Minutes)
Imagine trying to give directions to a friend using only the numbers $0$ and $1$. It would be nearly
impossible and extremely slow! In the early days of computing, programmers had to write code in
Machine Language (binary). To make programming faster and more "human," High-Level Languages
were developed. These languages use English-like words and mathematical symbols that we can easily
understand.
3. Definition and Characteristics (10 Minutes)
Definition: A High-Level Language is a programming language that is designed to be easily understood,
written, and maintained by humans. It is "high" because it is far removed from the complex $0$s and
$1$s of the machine's hardware.
Key Characteristics:
Readability: They use English words (e.g., print, if, while) and standard math operators ($+, -,
*, /$).
Portability: Programs written on one computer can usually run on another with little to no
change (Machine Independent).
Abstraction: They hide the complex details of the computer's CPU and memory management
from the programmer.
Translation Required: Because computers only speak binary, HLLs must be translated using a
Compiler or Interpreter.
Problem-Oriented: They are designed to solve specific problems (business, science, web) rather
than manage specific hardware.
4. Classification of HLLs (10 Minutes)
HLLs are often categorized by the types of problems they are meant to solve:
Category Description Examples
Designed for complex mathematical and engineering FORTRAN, ALGOL,
Scientific
calculations. BASIC
Built for business data processing (e.g., payroll,
Commercial COBOL, SQL
banking).
General Versatile languages used for almost any kind of
Python, C++, Java, C#
Purpose software.
AI Languages Used for Artificial Intelligence and expert systems. LISP, PROLOG
Used to automate tasks or create interactive web
Scripting JavaScript, PHP, Ruby
content.
5. Translators: Compilers vs. Interpreters (10 Minutes)
Since the CPU cannot execute HLL directly, it needs a translator.
Comparison Table:
Feature Compiler Interpreter
Process Translates the entire program at once Translates and executes the program
Feature Compiler Interpreter
before running it. line-by-line.
No intermediate object code is
Output Generates an executable file (e.g., .exe).
created.
Faster execution after compilation is Slower execution because it translates
Speed
finished. as it goes.
Easier; stops as soon as it hits an error
Debugging Harder; all errors are shown at the end.
in a line.
Examples C, C++, Java, COBOL Python, JavaScript, BASIC
6. Common Examples & Their Uses (10 Minutes)
Python: Known for its simple syntax. Used in AI, Data Science, and Web Development.
Java: Famous for being "Write Once, Run Anywhere." Used for Android apps and large
enterprise systems.
FORTRAN (Formula Translation): The oldest HLL, still used by scientists for heavy number-
crunching.
COBOL (Common Business Oriented Language): Used by banks and government agencies for
large-scale data.
C++: A powerful language used for system software, game engines, and high-performance apps.
7. Conclusion (5 Minutes)
High-Level Languages have revolutionized the world by making it possible for millions of people to write
software without being hardware experts. While they are slower than machine code, their ease of use
and portability make them the backbone of modern technology.
Post-Lecture Evaluation Questions
Section A: Objective Questions
1. Which of the following is NOT a characteristic of a High-Level Language?
a) Machine Independent
b) Uses English-like words
c) Directly understood by the CPU
d) Requires a translator
2. A translator that converts the whole source code into machine code in one single step is called:
a) Assembler
b) Interpreter
c) Compiler
d) Linker
3. Which language is best suited for scientific and mathematical calculations?
a) COBOL
b) FORTRAN
c) LISP
d) SQL
4. One advantage of an Interpreter over a Compiler is:
a) It produces faster programs
b) It makes debugging easier
c) It requires more memory
d) It produces a standalone executable
Section B: Theory Questions
1. Define the term "Syntax" in the context of programming.
2. Differentiate between High-Level Languages and Low-Level Languages (give two differences).
3. Why is portability considered a major advantage of High-Level Languages?
4. Mention three examples of HLL and state one specific application for each.