Computer Science

Assertion (A): Python uses an interpreter to convert source code to object code.

Reasoning (R): Python interpreter scans and translates the whole program into machine code in one go.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Getting Started

3 Likes

Answer

A is true but R is false.

Explanation
Python uses an interpreter to convert source code into object code. The Python interpreter does not scan and translate the whole program into machine code in one go. Instead, it interprets the code line by line, converting each line into machine code and executing it immediately.

Answered By

3 Likes


Related Questions