On 5/26/2017 1:03 AM, Aarusha wrote:
PYTHON INTERVIEW QUESTIONS

Mindmajix has compiled Python Interview questions which would benefit the 
learners to attend the Python interviews.

Q. How is Python executed?

It depends on the implementation (interpreter or compiler).

Python files are compiled to bytecode.

CPython compiles to cpython bytecode.
Jython compiles to Java.
Iron Python compiles to C#.
Cython and others compiles to C (or C++) which is compiled to machine code.
PyPy compiles to ?? or via JIT to machine code.
Multiple implementations compile to Javascript.


 which is then executed by the host.
Alternate Answer:
Type python <sourcefile>.pv at the command line.

.py

Q. What is the difference between .py and .pyc files?

.py files are Python source files. .pyc files are the compiled bvtecode files 
that is generated by the Python compiler

Q. How do you invoke the Python interpreter for interactive use?

python or pythonx.y where x.y are the version of the Python interpreter desired.

Only if OS uses pythonx.y.  On Windows, "py -x.y"

Checkout more here! https://mindmajix.com/python-interview-questions

Q. How are Phon [???] blocks defined?

Q. What is the Pthon interpreter prompt?

Site needs proofreading.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to