Question 69 of 319
Which of the following programming languages needs no translator for it to run?
- A. High-Level Language
- B. Low Level Language
- C. Machine Language
- D. Assembly Language
Correct Answer:
C
Explanation
The correct option is
C. Machine Language.
Detailed Explanation
- Understanding Programming Languages:
- Programming languages can be categorized into different levels based on their abstraction from machine code. The two main categories are high-level languages and low-level languages.
- High-level languages (like Python, Java, and C++) are designed to be easy for humans to read and write. They require a translator (compiler or interpreter) to convert the code into machine language that the computer can understand.
-
Low-level languages are closer to machine language and include assembly language and machine language itself.
-
Machine Language:
- Machine language is the lowest level of programming language and consists of binary code (0s and 1s) that the computer's hardware can directly execute.
-
Since machine language is the native language of the computer's CPU, it does not require any translation. The CPU can directly interpret and execute the instructions written in machine language.
-
Why Other Options Are Incorrect:
- A. High-Level Language:
- High-level languages are designed for ease of use and readability. They require a translator (compiler or interpreter) to convert the code into machine language before it can be executed by the computer. Therefore, they cannot run without a translator.
- B. Low Level Language:
- Low-level languages include both machine language and assembly language. While machine language does not need a translator, assembly language does. Assembly language is a symbolic representation of machine language and requires an assembler to convert it into machine code. Thus, it cannot run without a translator.
- D. Assembly Language:
- Assembly language is a low-level programming language that uses mnemonics and symbols to represent machine-level instructions. It is more human-readable than machine language but still requires an assembler to translate it into machine code. Therefore, it cannot run without a translator.
Summary of Key Points
- Machine Language is the only programming language that does not require a translator to run, as it is directly executed by the CPU.
- High-Level Languages and Assembly Language both require translation (compilation or assembly) to convert their code into machine language.
- Understanding the hierarchy of programming languages helps clarify why machine language is unique in its ability to run without translation.
Revision Summary
- Machine language is the only language that runs directly on the hardware without a translator.
- High-level languages and assembly language require compilers or assemblers to convert code into machine language.
- Machine language consists of binary code, while assembly language uses mnemonics.
- Recognizing the differences between these language types is crucial for understanding how programs are executed on computers.