Question:

Explain how Python does Compile-time and Run-time code checking?

Answer:

Python performs some amount of compile-time checking, but most of the checks such as type, name, etc are postponed until code execution. Consequently, if the Python code references a user -defined function that does not exist, the code will compile successfully. In fact, the code will fail with an exception only when the code execution path references the function which does not exists.


Keywords:

© 2017 QuizBucket.org