Interview questions
Python interview questions – page 4
168 questions. Tap “Show answer” to check yourself.
-
Rules for local and global variables in python?
-
Do they know a tuple/list/dict when they see it?
-
When do you use list vs. tuple vs. dictionary vs. set?
-
Does python support switch or case statement in Python? If not what is the reason for the same?
-
Why was the language called as Python?
-
What is used to represent Strings in Python? Is double quotes used for String representation or single quotes used for String representation in Python?
-
What is the method does join() in python belong?
-
In python, are there any databases to DB packages?
-
Why does delegation performed in Python?
-
What is the function of "self"?
-
How the string does get converted to a number?
-
What is the function of negative index?
-
Write a program to check whether the object is of a class or its subclass.
-
What are the commands that are used to copy an object in Python?
-
What is the difference between deep and shallow copy?
-
Write a program to find out the name of an object in python.
-
How can the ternary operators be used in python?
-
What are the ways to write a function using call by reference?
-
Describe how exceptions are handled in python.
-
What is used to create Unicode string in Python?
-
When to use list vs. tuple vs. dictionary vs. set?
-
Explain the disadvantages of python
-
please give the code for these 1 2 4 7 11 16...
-
Define python?
-
Who created the Python programming language?
-
1) How to validate ip address using regex 2)program to increment ip address in python Please find answers to above questions thanks in advance.
-
How does global value mutation used for thread-safety?
-
Write a program to read and write the binary data using python?
-
What is the process to run sub-process with pipes that connect both input and output?
-
What are the different ways to generate random numbers?