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 Assembler — ConceptLanguage translators convert programs from one representation into another. A compiler handles high-level source, whereas an assembler handles…
- A.
Operating System
- B.
Compiler or Assembler
- C.
only Assembler
- 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
High-level source passes through a compiler and can become assembly or object code.
Assembly language passes through an assembler and becomes object code.
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