Programming Languages:
High-Level vs Low-Level
DENNIS B. ASAMOAH COURTESY MAGIC
SCHOOL AI
Learning Intentions
• Explore and understand the characteristics of high-level languages
• Explore and understand the characteristics of low-level languages
• Compare and contrast different programming language types
• Identify real-world applications of both language types
Review Questions
• What is the main difference between high-level and low-level languages?
• Give an example of a high-level language and explain why it's considered
high-level
• Why might a programmer choose to use a low-level language?
• Which type of language would be better for creating a simple calculator
app?
What are Programming Languages?
• Programming languages are special languages used to give instructions to
computers
• They act as a bridge between human understanding and machine operations
• Different types serve different purposes
• Two main categories: High-level and Low-level languages
High-Level Languages
• Closer to human language
• Easier to read and write
• Examples: Python, Java, JavaScript
• Uses simple commands like "print" or "input"
• Automatically handles memory management
• More beginner-friendly
Example of High-Level Language (Python)
name = input("What is your name? ")print("Hello, " + name + "!")
• Notice how readable and straightforward the code is
• Similar to writing English instructions
• Hides complex machine operations
Low-Level Languages
• Closer to machine language
• More difficult to read and write
• Examples: Assembly language, Machine code
• Requires detailed hardware knowledge
• Manual memory management
• More control over hardware
Example of Low-Level Language (Assembly)
section .datamsg db 'Hello!',0xasection .textglobal _start_start:mov edx,6mov
ecx,msg
• Notice the complexity and technical nature
• Directly controls computer hardware
• Less intuitive than high-level languages
Comparison 9
Dennis B. Asamoah, Courtesy Magic School Ai
High-Level Languages: Low-Level Languages:
• Easy to learn • Difficult to learn
• Platform independent • Platform dependent
• Less efficient • More efficient
• Slower execution • Faster execution
Summary
• High-level languages prioritize human readability
• Low-level languages prioritize machine efficiency
• Both types have important roles in programming
• Choice depends on project requirements
• Understanding both helps make better programming decisions