The compiler converts a program into

Basic Concepts of Computers ·Previously asked in JKSSB Constable (Executive / Armed / IRP / SDRF) 2024

View the full solved paper: JKSSB Constable 2024 - Set A

Question

The compiler converts a program into

  1. A. C Language
  2. B. Assembly Language
  3. C. Binary Language (Correct answer)
  4. D. BASIC

Correct Answer

Option C — Binary Language

Detailed Solution & Explanation

The correct answer is Binary Language.

Key Points

  • A compiler translates high-level source code into machine language, which is expressed in binary (0s and 1s) and executed directly by the processor.
  • It translates the entire program at once, producing an executable file, whereas an interpreter translates and runs line by line.
  • An assembler performs the related job of converting assembly language into machine code.
  • Machine language is the only form the CPU can execute without further translation.

Additional Information

  • The essential contrast, asked in nearly every computer-awareness section:
    • A compiler translates the whole program at once, reporting all errors together and producing a separate executable file. Execution is faster. (C, C++)
    • An interpreter translates and runs one line at a time, stopping at the first error. Execution is slower but debugging is easier. (Python, older BASIC)
  • An assembler is a third translator, converting assembly language into machine code.
  • Java uses a hybrid route: source is compiled to bytecode, which the JVM then interprets — which is why it is sometimes offered as a trick option.

Topics covered: Software Programming