Programming Languages - Summary Notes
A programming language is a way to give instructions to a computer.
It uses a set of rules, syntax, and commands to help create software and applications.
Programming languages are divided into two types: Low-level and High-level languages.
Low-Level Languages
• Machine Language: Uses 0s and 1s. Directly understood by hardware. Very hard to use.
• Assembly Language: Uses symbols (mnemonics). Easier than machine language. Needs an
assembler to convert to machine code.
• Advantages: Faster, needs less memory, allows access to hardware features.
• Still used in special cases like embedded systems or device drivers.
High-Level Languages (HLLs)
• Use English-like words (e.g., print, if, while).
• Examples: C, Java, Python, Visual Basic.
• Easier to learn, write, debug and maintain.
• Need compiler or interpreter to run.
Procedural and Structured Languages
• Modular programming: divide code into smaller parts (modules).
• Easy to design, debug, and update.
• Key features:
• - Sequence: Code runs in a specific logical order.
• - Selection: Use of if, else-if, switch to make choices.
• - Repetition: Loops like for and while for repeating tasks.
• Examples: FORTRAN, BASIC, C, Pascal, ALGOL.
Object-Oriented Programming Languages (OOP)
• Based on objects (e.g., student, car, building).
• Objects have properties (color, size) and actions (drive, stop).
• Helps build large software more easily.
• Examples: C++, Java, Visual Basic.
Uses of Low-Level Languages
1 Operating System Development
2 Device Drivers
3 Embedded Systems (e.g. IoT devices)
4 Firmware Development
5 Real-Time Systems (robotics, aerospace)
6 Security Tools (firewalls, encryption)
7 Game Development (performance critical areas)
Uses of High-Level Languages
1 App Development (desktop, mobile, web)
2 Web Development
3 Data Analysis & Scientific Research
4 AI and Machine Learning
5 Automation and Scripting
6 Game Development (gameplay logic, UI)
7 Database Management
8 Engineering Simulations
9 Business Software
10 Educational Tools