Interview questions
Python interview questions
168 questions. Tap “Show answer” to check yourself.
-
Explain indexing and slicing operation in sequences
-
What is a Lambda form? Explain about assert statement?
-
Explain the role of repr function.
-
Explain pickling and unpickling.
-
What is LIST comprehensions features of Python used for?
-
Explain the dictionary in Python.
-
How do we share global variables across modules in Python?
-
How can we pass optional or keyword parameters from one function to another in Python?
-
Explain how python is interpreted.
-
Is python the right choice for Web based Programming?
-
Given a text file (FILE1) with lots of words (ex, an ebook), and another file (FILE2) with a list of blacklist words (slangs, porn, etc.), write a program to find the top 100 words(most frequent 100 words) from FILE1 which are not present in FILE2.
-
Where can I get the study material for python
-
What are the key features of Python?
-
Which is better Python or ruby?
-
Is Python similar to ruby?
-
When is not a good time to use python generators?
-
What does the list comprehension do?
-
How do you check the presence of the key in python dictionary?
-
How to run a Python CGI script in Wamp?
-
Why does Python have a maximum recursion depth?
-
What are some common uses of Pickling in Python?
-
Print the length of each line in the file 'file.txt' not including any whitespaces at the end of the lines?
-
Is there a switch or case statements in python?if not what is the reason for the same?
-
Write a script to connect to MySql database using Python?
-
What type of a language is python? Interpreted or Compiled?
-
What is a CGI script in Python?
-
What is composition in python?
-
What is a metaclass in Python?
-
Multiply all elements of a list without writing a loop?
-
What is PEP8?