Q41. What is the dictionary in Python?

Ans: Dictionary is a key value pair and will be used inside this {}. For instance, see below name as key and age as value.

 

{“Amit”:32,  “Rakesh”:37,  ”Jayesh”:42}

 

You cannot have duplicate keys in dictionary. Also, key should be immutable.

 

Q42. What is global variable?

Ans: A variable, which can be defined outside the function and can be accessed from any function is known as global variables.

 

Q43. Which module, you can use to debug Python code?

Ans : There is a module called pdb, which you can use for debugging.

 

Q44. Which tool you can use, which can help you to find the bugs in your Python source code?

Ans: You can use PyChecker tool, this will help you find the issue with your source code and also help you to do static analysis for Python.

 

Q45. Is there any tool or library which I can use to convert my Python code as windows executables or windows exe?

Ans: You can use py2exe tool, it convert the Python scripts into windows executables or exe and to run it you don’t have to explicitly install the python on your windows machine.

Why Dont you prepare for Python Certifications and Interview Questions with 250+ Questions and Answer : Check Here

Real Exam Number of Questions: 70 Questions
Real Exam Pass Score: 70%
Time Allotted: 90 minutes to complete exam