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

Python FAQs: Concepts, Differences & Examples

The document contains a comprehensive list of frequently asked questions related to Python programming, categorized into sections such as 'Mostly Asked Questions', 'Common Questions', 'Tricky Questions', and 'Advance Questions / Rarely asked'. Each section covers various topics including data structures, memory management, inheritance, and advanced concepts like multiprocessing and operator overloading. This serves as a useful resource for individuals preparing for Python-related interviews or seeking to enhance their understanding of the language.

Uploaded by

Rohit Chandoriya
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)
13 views2 pages

Python FAQs: Concepts, Differences & Examples

The document contains a comprehensive list of frequently asked questions related to Python programming, categorized into sections such as 'Mostly Asked Questions', 'Common Questions', 'Tricky Questions', and 'Advance Questions / Rarely asked'. Each section covers various topics including data structures, memory management, inheritance, and advanced concepts like multiprocessing and operator overloading. This serves as a useful resource for individuals preparing for Python-related interviews or seeking to enhance their understanding of the language.

Uploaded by

Rohit Chandoriya
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

Mostly Asked Questions

1 Difference Between List and Tuple


2 What is Decorator? Explain with example.
3 Difference Btw List Comprehension and Dict Comprehension
4 How is Memory Managed In Python?
5 Diff btw Generators and Iterators
6 What is __init__ in python?
7 Difference Between Modules and Packages in Python
8 Diff Btw Range and Xrange?
9 What are generators. Explain it with example.
10 What are inbuild types available in Python - explain mutable and immutable

Common Questions
1 Explain Ternary Operator in Python?
2 What is Inheritance In Python
3 Diff Btw Local and Global Variable in Python
4 Explain Break, Continue and Pass Statement
5 What is 'self' keyword in python?
6 Diff btw pickling and unpickling?
7 Explain Function of list, set, tuple or dictionary?
8 What are python iterators?
9 Explain type conversion in python. (int(), float(), ord(), ocy(), str())
10 What does *args and **kwargs mean? expain
11 What is "Open" and "With" statement in python?
12 Different ways to read and write in a file in python?
13 What is Pythonpath?
14 How exception handled in python - Try,Except, Else and Finally etc
15 Diff btw Python 2.0 & Python 3.0
16 What is PIP in python
17 Where is Python used?
18 How to use F string and format or replacement operator?
19 Diff btw Abstration and Encapsulation.
20 How to get list of all keys in a dictionary?

Tricky Questions
1 Does python support multiple inheritnce. (Diamond Problem)
2 How to initialize empty list, tuple, dict or set?
3 Diff btw .py and .pyc
4 How slicing works in string manupulation. i.e [::-1] explain.
5 How can you concatenate two tuples
6 Diff btw Python Arrays and Lists
7 Diff btw _abc, __abc, ___abc___ in python?
8 How to read multiple value from single input? --- By Split()
9 How to copy and delete a dictionary
10 Diff Btw Anonymous and Lambda function

Advance Questions / Rarely asked


1 How to achieve multiprocessing and multithreading in python?
2 What is GIL. Explain
3 How class and object created in python?
4 Explain Namespace and its types in python
5 Explain recursion by Reversing a list.
6 What are unittests in Python
7 How to use Map, filter and reduce in python?
8 How an object be copied in python
9 What does term MONKEY PATCHING refer to in python?
10 Diff btw Shallow copy and deep copy
11 What is operator overloading & Dunder Method.
12 Draw Pattern.

You might also like