Object code can be produced by which program or programs?

2010

Object code can be produced by which program or programs?

Answer: B. Compiler or AssemblerConceptLanguage translators convert programs from one representation into another. A compiler handles high-level source, whereas an assembler handles…

  1. A.

    Operating System

  2. B.

    Compiler or Assembler

  3. C.

    only Assembler

  4. D.

    only Compiler

Attempted by 162 students.

Show answer & explanation

Correct answer: B

Concept

Language translators convert programs from one representation into another. A compiler handles high-level source, whereas an assembler handles assembly-language instructions.

Object code is machine-oriented, often relocatable code that a linker can combine before an executable is loaded.

Application

The question asks which translation program can produce object code. A compiler can emit object code from high-level source, and an assembler can emit object code from assembly language.

Contrast

  • Operating System manages resources and execution services; it is not a source-language translator.

  • only Assembler excludes compiler toolchains that emit object code.

  • only Compiler excludes the assembler stage that also produces object modules.

Cross-check

  1. High-level source passes through a compiler and can become assembly or object code.

  2. Assembly language passes through an assembler and becomes object code.

  3. Object modules pass to a linker, which combines them into an executable form.

Therefore, the best answer among the given choices is Compiler or Assembler.

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…