Types_of_Programming_Languages
Types_of_Programming_Languages
1. Introduction
Programming languages are classified based on their features, functionality, and usage. They are
used to give instructions to a computer to perform tasks.
A) Low-Level Languages
Low-level languages are closer to machine code and provide high efficiency and direct hardware
interaction.
2. Assembly Language
- Uses short, mnemonic codes instead of binary.
- Requires an assembler to convert it into machine code.
- Faster and more efficient than high-level languages.
Example:
MOV AX, 5
ADD AX, 3
B) High-Level Languages
High-level languages are user-friendly and closer to human language.
Example in C:
#include <stdio.h>
int main() {
printf('Hello, World!');
return 0;
}
Example in Python:
class Car:
def __init__(self, brand):
self.brand = brand
def show(self):
print('Car Brand:', self.brand)
my_car = Car('Toyota')
my_car.show()
Example in Python:
def add(x, y):
return x + y
print(add(5, 3))
4. Scripting Languages
- Used for automation and web development.
- Examples: JavaScript, Python, PHP.
Example in JavaScript:
console.log('Hello, World!');
5. Markup Languages
- Define data presentation rather than logic.
- Examples: HTML, XML.
Example in HTML:
<h1>Hello, World!</h1>
4. Conclusion
Programming languages differ based on use cases and functionality. High-level languages are
easier to use, while low-level languages provide more control over hardware.