FAME WORLD EDUCATIONAL HUB
Python Questions
o [Link] is Python? What are the benefits of using Python
o [Link] is a dynamically typed language?
o [Link] is an Interpreted language?
o [Link] is PEP 8 and why is it important?
o [Link] is Scope in Python?
o [Link] are lists and tuples? What is the key difference between the two?
o [Link] are the common built-in data types in Python?
o [Link] is pass in Python?
o [Link] are modules and packages in Python?
o [Link] are global, protected and private attributes in Python?
o [Link] is the use of self in Python?
o [Link] is __init__?
o [Link] is break, continue and pass in Python?
o [Link] are unit tests in Python?
o [Link] is docstring in Python?
o [Link] is slicing in Python?
o [Link] how can you make a Python Script executable on Unix?
o [Link] is the difference between Python Arrays and lists?
o [Link] is memory managed in Python?
o [Link] are Python namespaces? Why are they used?
o [Link] is Scope Resolution in Python?
o [Link] are decorators in Python?
o [Link] are Dict and List comprehensions?
o [Link] is lambda in Python? Why is it used?
o [Link] do you copy an object in Python?
o [Link] is the difference between xrange and range in Python?
o [Link] is pickling and unpickling?
o [Link] are generators in Python?
o [Link] is PYTHONPATH in Python?
o [Link] is the use of help() and dir() functions?
o [Link] is the difference between .py and .pyc files?
o [Link] Python is interpreted?
o [Link] are arguments passed by value or by reference in python?
o [Link] are iterators in Python?
o [Link] how to delete a file in Python?
o [Link] split() and join() functions in Python?
o [Link] does *args and **kwargs mean?
o [Link] are negative indexes and why are they used?
o [Link] do you create a class in Python?
o [Link] does inheritance work in python? Explain it with an example.
o [Link] do you access parent members in the child class?
o [Link] access specifiers used in python?
o [Link] it possible to call parent class without its instance creation?
o [Link] is an empty class created in python?
o [Link] between new and override modifiers.
o [Link] is finalize used?
o [Link] is init method in python?
o [Link] will you check if a class is a child of another class?
o [Link] do you know about pandas?
o [Link] pandas dataframe.
o [Link] will you combine different pandas dataframes?
o [Link] you create a series from the dictionary object in pandas?
o [Link] will you identify and deal with missing values in a dataframe?
o [Link] do you understand by reindexing in pandas?
o [Link] to add new column to pandas dataframe?
o [Link] will you delete indices, rows and columns from a dataframe?
o [Link] you get items of series A that are not available in another series B?
o [Link] will you get the items that are not common to both the given series
A and B?
o [Link] importing data from different sources, can the pandas library
recognize dates?
o [Link] do you understand by NumPy?
o [Link] are NumPy arrays advantageous over python lists?
o [Link] are the steps to create 1D, 2D and 3D arrays?
o [Link] are given a numpy array and a new column as inputs. How will you
delete the second column and replace the column with a new column value?
o [Link] will you efficiently load data from a text file?
o [Link] will you read CSV data into an array in NumPy?
o [Link] will you sort the array based on the Nth column?
o [Link] will you find the nearest value in a given numpy array?
o [Link] will you reverse the numpy array using one line of code?
o [Link] will you find the shape of any given NumPy array?
o [Link] between a package and a module in python.
o [Link] are some of the most commonly used built-in modules in Python?
o [Link] are lambda functions?
o [Link] can you generate random numbers?
o [Link] you easily check if all characters in the given string is alphanumeric?
o [Link] are the differences between pickling and unpickling?
o [Link] GIL.
o [Link] PYTHONPATH.
o [Link] PIP.
o [Link] there any tools for identifying bugs and performing static analysis in
python?
o [Link] between deep and shallow copies.
o [Link] is main function in python? How do you invoke it?
o [Link] python function which takes a variable number of arguments.
o [Link] (Write a program) which takes a sequence of numbers and check if
all numbers are unique.
o [Link] a program for counting the number of every character of a given
text file.
o [Link] a program to check and return the pairs of a given array A whose
sum value is equal to a target value N.
o [Link] a Program to add two integers >0 without using the plus operator.
87) Explain help() and dir() functions in Python.
88) How do you get a list of all the keys in a dictionary?
89) What is slicing?
90) How would you declare a comment in Python?
91) How will you check if all characters in a string are alphanumeric?
92) How will you capitalize the first letter of a string?
93) With Python, how do you find out which directory you are currently in?
94) How do you insert an object at a given index in Python?
95) And how do you reverse a list?
96) What is the Python interpreter prompt?
97) How does a function return values?
98) How would you define a block in Python?
99) Why do we need break and continue in Python?
100) Will the do-while loop work if you don’t end it with a semicolon?
101) In one line, show us how you’ll get the max alphabetical character from a string.
102) What is Python good for?
103) Can you name ten built-in functions in Python and explain each in brief?