Generations of Programming Languages
Generations of Programming Languages
Low-Level Languages
Examples:
1. Machine Language:
o Directly understood by the computer's hardware.
o Consists of binary code (0s and 1s).
o Example: 10110000 01100001 (represents a machine instruction).
2. Assembly Language:
o A step above machine language.
o Uses mnemonic codes and labels instead of binary.
o Example: MOV AL, 61h (moves the hexadecimal value 61 into the AL
register).
Advantages:
Disadvantages:
High-Level Languages
Examples:
1. Python:
o General-purpose language with easy-to-read syntax.
o Example: print("Hello, World!")
2. Java:
o Object-oriented language that is platform-independent.
o Example: System.out.println("Hello, World!");
3. C++:
o Combines procedural and object-oriented programming.
o Example: std::cout << "Hello, World!" << std::endl;
Advantages:
1. Ease of Use: Easier to learn and write due to abstraction from hardware details.
2. Portability: Code can run on different platforms with little or no modification.
3. Development Speed: Faster development and debugging process.
Disadvantages:
Summary