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

Python Interview Questions: What Are Python Modules? What Are Python Modules?

This document contains a list of Python interview questions covering key topics such as features of Python, data types, memory management, classes, modules, functions, errors, file handling, inheritance, encapsulation, polymorphism, algorithms and the Flask web framework. Questions range from basic concepts like variables and data types to more advanced topics like algorithms, OOP principles and web development with Flask.

Uploaded by

naveen katta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
68 views2 pages

Python Interview Questions: What Are Python Modules? What Are Python Modules?

This document contains a list of Python interview questions covering key topics such as features of Python, data types, memory management, classes, modules, functions, errors, file handling, inheritance, encapsulation, polymorphism, algorithms and the Flask web framework. Questions range from basic concepts like variables and data types to more advanced topics like algorithms, OOP principles and web development with Flask.

Uploaded by

naveen katta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

Python Interview Questions

• What are the key features of python?


• Differentiate between Java and Python.
• Does python only interpretes and not compile? If No Justify
• How is Python interpreted?
• What are the different types of data types python provides
• What is the difference between list and tuple?
• How is memory managed in Python?
• How do you check whether the two variables are pointing to the same object in Python?
• Explain join() and split() in Python
• What are python modules?
• What are python modules?
• What is a lambda function?
• How do you copy an object in Python? Explain shallow copy and Deep copy.
• Explain a few methods to implement Functionally Oriented Programming in Python. I.e
map, filter, reduce
• Explain zip method
• what is difference between print and return
• what is formal parameters
• what is actual parameters
• what is default parameters
• what is required parameters
• What is global variable
• what is local variable
• what is variable length arguments
• How does break, continue and pass work?
• What does [::-1] do
• What are python iterators?
• What are the generators in python?
• What is the difference between range() and xrange() functions in Python?
• What are global, protected and private attributes in Python?
• What is a class
• what is a attribute
• what is a method
• what is an object
• what is self in class
• what is a constructor
• what is a class variable
• what is a instance variable
• What is pickling and unpickling?
• What is the difference between Python Arrays and lists?
• What happens in the background when you run a Python file?
• When do you choose a list over a tuple?
• How do you convert a list of integers to a comma separated string?
a = [1,2,3,4,5,6,7,8]
>>> numbers = ','.join(str(i) for i in a)
• What does *args and **kwargs mean?
• Differentiate between the append() and extend() methods of a list.
• How can the ternary operators be used in python?
• What advantages do NumPy arrays offer over (nested) Python lists?
• Name some standard Python errors you know?
• How Python supports encapsulation with respect to functions?
• What is PEP8?
• What mode is used for both writing and reading in binary format in file.?
• How is Multithreading achieved in Python?
• What is the process of compilation and linking in python?
• Does python support multiple inheritance?
• Define encapsulation in Python?
• What is Polymorphism in Python?
• How do you do data abstraction in Python?
• How to create an empty class in Python?
• Write a program in Python to execute the Bubble sort algorithm.
• Write a one-liner that will count the number of capital letters in a file. Your code should
work even if the file is too big to fit in memory.
• Write a sorting algorithm for a numerical dataset in Python.
• Explain what Flask is and its benefits?

You might also like