Program
Program
Example:
Start
Add 2 numbers
Show result
Stop
Flowchart:
Uses symbols (e.g., ovals for Start/End, rectangles for processes, diamonds for decisions).
Pseudocode:
Looks like code but is easy to read.
Start
Input A, B
Sum = A + B
Print Sum
End
These help to plan and understand the steps before writing real code
What is a program in relation to an algorithm? In what order does an algorithm solve a
problem?
A program is the implementation of an algorithm in a programming language.
🧪 Python Example
python
CopyEdit
# This is a simple program
a = 5
b = 3
sum = a + b
print("The sum is:", sum)
When you run the above code, it becomes a process in your computer’s memory.
The computer uses CPU and RAM to complete the task.
Algorithm is the idea → Program is the written form → Process is the action (execution).
Difference Between Programming and Coding
Term Description Urdu Meaning Example
Writing
Writing lines of code in a specific programming
Coding کوڈ لکھنا print("Hello") in
language (like Python, Java, etc.)
Python
✅ In Simple Words:
🎯 Example:
🧠 Analogy:
🧠 In Simple Words:
Primitives are the basic types of values your code can work with — like numbers, letters, or
true/false.
📘 Urdu Meaning:
Primitive data types کا مطلب ہے بنیادی ڈیٹا اقسام — یعنی سب سے سادہ اور بنیادی اقسام جن سے دوسرے پیچیدہ ڈیٹا
بنائے جاتے ہیں۔
💡 Python Example:
python
CopyEdit
x = 5 # Integer (primitive)
pi = 3.14 # Float (primitive)
letter = 'A' # Character (primitive, part of string in Python)
is_valid = True # Boolean (primitive)