0% found this document useful (0 votes)
17 views

Introduction to Programming Languages

Uploaded by

asha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Introduction to Programming Languages

Uploaded by

asha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Introduction to Programming

Languages
Cracking the Code - Your Journey into
Programming Languages
• Welcome to the World of Secret Languages!
• Activity: Decode this message:
• Copy
• 3 15 13 16 21 20 5 18 19 19 16 5 1 11 9 14 3
15 4 5
• (Hint: A=1, B=2, C=3, etc.)
• Answer: COMPUTERS SPEAK IN CODE
The Ultimate Secret Language:
Programming
• Just like our number code, computers have
their own languages
• These languages allow us to command
incredibly powerful machines
What is a Programming Language?
• A formal language designed to communicate
instructions to a computer
• Consists of a set of rules (syntax) and
meanings (semantics)
Brief History of Programming Languages

• 1940s: Machine Code


• 1950s: Assembly Language
• 1950s-1960s: FORTRAN, COBOL, LISP
• 1970s: C, Smalltalk, Prolog
• 1980s: C++, Ada
• 1990s: Python, Java, JavaScript
• 2000s and beyond: C#, Go, Swift, Rust
• Today: AI assisted coding
Components of a Programming Language

• Syntax
• Semantics
• Standard Library
• Compiler/Interpreter
Types of Programming Languages
• Low-level languages (e.g., Assembly)
• High-level languages (e.g., Python, Java)
Compiled vs Interpreted Languages
• Compiled:
• Example: C++
• Converted directly to machine code
• Generally faster execution
• Interpreted:
• Example: Python
• Executed line by line
• Generally easier to debug
Simple Example: Hello World
• Python:
• print("Hello, World!")
• C++:
• #include <iostream>
• int main() {
• std::cout << "Hello, World!" << std::endl;
return 0;
• }
Why Learn About Programming Languages?

• Choose the right tool for the job


• Understand language design principles
• Adapt to new languages more easily
• Appreciate language evolution

You might also like