arrow
arrow
arrow
A high level source program must be translated first into a form that the machine can understand. This is done using a software called the:
Question

A high level source program must be translated first into a form that the machine can understand. This is done using a software called the:

A.

debugger

B.

assembler

C.

compiler

D.

controller

Correct option is C

​The correct answer is (c) compiler.

  • A high-level source program is written in a programming language like C, Java, or Python, which is human-readable but not directly understandable by a machine.
  • To execute such a program, it must be translated into machine code (binary instructions) that the computer's hardware can understand.
  • This translation is done by a software tool called a compiler.

Explanation of Other Options:

  • Debugger: A debugger is a tool used to identify and fix errors or bugs in a program. It does not translate high-level code into machine code.
  • Assembler: An assembler translates assembly language (a low-level language) into machine code, not high-level source programs.
  • Controller refers to hardware or software components that manage a device or process. It is unrelated to translating source programs.

Additional Information:

How a Compiler Works:

  • A compiler reads the source code, translates it into machine code (or an intermediate representation), and creates an executable file.
  • Example compilers: GCC for C/C++, javac for Java.

Difference Between Compiler and Interpreter:

  • A compiler translates the entire program at once, whereas an interpreter translates and executes the program line by line.

Free Tests

Free
Must Attempt

CBT-1 Full Mock Test 1

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon90 Mins
languageIcon English
Free
Must Attempt

RRB NTPC Graduate Level PYP (Held on 5 Jun 2025 S1)

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon90 Mins
languageIcon English
Free
Must Attempt

CBT-1 General Awareness Section Test 1

languageIcon English
  • pdpQsnIcon40 Questions
  • pdpsheetsIcon30 Marks
  • timerIcon25 Mins
languageIcon English
test-prime-package

Access ‘RRB NTPC’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
353k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow