A compiler is used to convert which of the following into object code that can be executed?
AHigh-level language ✓ Correct
BLow-level language
CAssembly language
DNatural language
Correct answer: (A) High-level language
Explanation
A compiler translates a whole high-level language program into executable object code at once.
Low-level language is already close to machine code and is handled by an assembler, not a compiler.
Assembly language is converted to machine code by an assembler rather than a compiler.
Natural language is human speech and is not directly compiled into object code.
The compiler checks the entire source for errors before producing the object file.
An interpreter differs by executing high-level code line by line instead of compiling it whole.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →