Q6. What is interpreter?

Ans: It does not do lot of conversion, it reads the program and directly execute on the computer. Hence, this is relatively faster than compiler.

 

Q7. What is compiler?

Ans: Compiler reads your program written in high level language e.g. Java Code and it is known as source file and once source file is compiled it will be converted into object code(also executable). This executable need not be converted in any other form. Now you will have run time environment where you can run this executable on any operating system. 

 

Q8. Is Python an Interpreter or compiler language?

Ans: Python is an interpreter language. Hence, it is not required to be compiled and then executer (as in case of Java you have to do this).

 

Q9. What is the extension of the Python source file?

Ans : Python source file has .py extension like test.py , is a python file.

 

Q10. What all types of errors in a Python program?

Ans: There are mainly three types of errors.

  • Syntax Error: It is any syntactical error in the program. E.g. (8.value, is not correct)
  • Runtime Error
  • Semantic Error

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