Topic C C++ Python Remarks
Data Types✅ ✅ ✅ Common in all
Expression✅ ✅ ✅ Common in all
Input / Ou ✅ ✅ ✅ Different syntax, same concept
Decision Ma ✅ ✅ ✅ Common logic, syntax varies
Looping Sta✅ ✅ ✅ Common in all
Arrays ✅ ✅ 🔸 Native in C/C++, list-like in Python
One/Two Di✅ ✅ 🔸 Python uses nested lists
Strings ✅ ✅ ✅ Python has more powerful built-ins
String Oper✅ ✅ ✅ More intuitive in Python
Pointers ✅ ✅ ❌ Not in Python
Pointer Ari✅ ✅ ❌ Not applicable to Python
Pointers an✅ ✅ ❌ Not in Python
Functions ✅ ✅ ✅ Common in all
Pass by Va ✅ ✅ ✅ Python uses object references
Recursion ✅ ✅ ✅ Supported in all
Structures ✅ ✅ ❌ Python uses classes instead
Unions ✅ ✅ ❌ No union type in Python
Storage Cla✅ ✅ ❌ Not applicable in Python
Preprocesso ✅ ✅ ❌ Only in C/C++
File Handli ✅ ✅ ✅ Common in all
Lists / Tupl❌ ❌ ✅ Python only
Object-Ori ❌ ✅ ✅ C lacks OOP
Classes / O❌ ✅ ✅ C++/Python only
Encapsulati❌ ✅ ✅ OOP concept
Constructor❌ ✅ ✅ Python uses __init__
Static / C ❌ ✅ ✅ Python supports static via decorators
Member Fu❌ ✅ ✅ OOP only
References❌ ✅ ✅ Python uses object references
This Pointe❌ ✅ ✅ Python uses self instead
Function a ✅ ✅ ✅ First-class functions in Python
Copy Const❌ ✅ ❌ Not in Python
Polymorph❌ ✅ ✅ Python is dynamically polymorphic
Function / ❌ ✅ 🔸 Limited support via dunder methods
Inheritanc ❌ ✅ ✅ OOP only
Virtual / A ❌ ✅ ✅ Python uses abc module
Dynamic Me ✅ ✅ ✅ Automatic in Python
Nested Cla❌ ✅ ✅ Supported in both
Exception ❌ ✅ ✅ Not native in C
Question Options Answer
Which of thC, Python, C
Which langC, C++, PytC
Which languC, C++, Py Python
Which of t C, C++, PytC++
In which laC, C++, Py Python
Which langC, C++, PytC++
Which langC, C++, PytPython
What is thethat, self, self
Which langC, C++, Py Python
Which langC, C++, Py C++