Machine-translated by Google. Questions are authored in English.
Top

Discussion

A source to source translator produces

  • A.an executable file that can be loaded and then run immediately by anyone
  • B.a stream of tokens for consumption by a separate parser
  • C.a program in another high level language rather than machine code
  • D.relocatable object code from a high level source program

Answer: C

Correct answer: a program in another high level language rather than machine code

A source-to-source translator, or transpiler, takes a program in one high-level language and emits an equivalent one in another - TypeScript to JavaScript, or a modern dialect to an older one.

It performs the same analysis phases as any compiler; only the synthesis differs, producing readable source instead of machine code. The output must then be compiled or interpreted in the usual way, so the translator does not produce anything executable on its own.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.