Programming languages -> It is a set of instructions that are used to communicate with the computer. its serves as a bridge between humans understanding and machine operations.
because the computer only understands binary language(0,1) and it is difficult for humans to communicate with the computer in binary language. so, we need programming languages to communicate with the computer.
- Syntax -> It is a set of rules that defines the correct structur programs.
- Semantics -> It is the meaning of the program.
- Compiler / Interpreter -> It is a program that translates the source code into machine code.
-
Based on machine instructions:
Type Description Example low-level language Directly interact with hardware,dificult to understand. Machine Language high-level language Closer to humen language ,easier to write understand. Python, Java, C++ -
Based on Execution Method:
Type Description Example Compiled language It is translated into machine code before execution. C, C++ Interpreted language It is translated into machine code during execution. Python, Ruby Hybrid language It is a combination of compiled and interpreted languages. Java -
Based on programming paradigm :
Type Description Example Procedural programming It is a code writtin step by step C Functional programming Focuses on pure functions and immutability . Haskell,JavaScript Object-Oriented programming Code is structured using objects and class. Java, C++