Python Interview Questions (3)
Python Interview Questions (3)
INTERVIEW QUESTIONS
CONCEPT
1) what is python
• In Python, Arrays and Lists have the same way of storing data.
Arrays can hold single data type elements and lists can hold any
data type elements.
10) what are the generators?
• When positive indices are applied then the search begins from
left to right whereas when negative indices are applied then the
search begins from right to left
15) what is the use of relational, assignment, and membership
operators in python?
• Every object in python remains relevant in a specific area that is defined to it, which is
called scope.There are different type of scope that are created during code execution in
python and that is,
• Local scope
• Global scope
• Module-level scope
• Outermost scope
22) What is Polymorphism in Python?
• The map() function in Python has two parameters, function and iterable.
• The map() function takes a function as an argument and then applies that
function to all the elements of an iterable, passed to it as another
argument. It returns an object list of results.
25) what does *args and **kwargs mean?
• A for loop is used when we know how many times the code
should run.That particular piece of code will iterate “n”
number of times.
• while loop is used in code to repeat some statements, and it
runs until a condition is false. It is almost similar to “if
statement” except that it does not run only once.
34) which databases are supported by python?