Programming Languages – Short Study Notes
1. What is a Programming Language?
A programming language is a formal language used to communicate instructions to a computer. It
allows programmers to express algorithms and data structures in a way that a machine can
understand and execute. Examples include C, C++, Java, Python, and JavaScript.
2. Types of Programming Languages
1 Procedural Languages – Focus on procedures or functions (e.g., C).
2 Object-Oriented Languages – Based on objects and classes (e.g., Java, C++).
3 Functional Languages – Emphasize functions and immutability (e.g., Scheme).
4 Logic Languages – Based on formal logic (e.g., Prolog).
3. Compiler vs Interpreter
A compiler translates the entire source code into machine code before execution, while an
interpreter translates and executes code line by line. Compiled programs generally run faster,
whereas interpreted programs are easier to debug.
4. Importance of Studying Programming Languages
Studying programming languages helps us understand language design principles, improves
problem-solving skills, and makes it easier to learn new languages in the future.
Prepared by: Student Notes (Original Content)