0% found this document useful (0 votes)
15 views2 pages

Programming Topics Comparison and MCQs

The document compares C, C++, and Python across various programming concepts, highlighting similarities and differences in data types, functions, object-oriented programming, and more. It notes that while all three languages share common elements, Python has unique features such as powerful string operations and dynamic memory management. Additionally, certain concepts like pointers and unions are not applicable in Python.

Uploaded by

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

Programming Topics Comparison and MCQs

The document compares C, C++, and Python across various programming concepts, highlighting similarities and differences in data types, functions, object-oriented programming, and more. It notes that while all three languages share common elements, Python has unique features such as powerful string operations and dynamic memory management. Additionally, certain concepts like pointers and unions are not applicable in Python.

Uploaded by

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

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++

You might also like