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.