Which language translator produces object code and an error report?
Correct answer: B. Compiler
- A. Assembler
- B. Compiler
- C. Interpreter
- D. Device Driver
Explanation
The correct answer is (B) Compiler. Compiler translates source code written in a high-level language (e.g., C++, Java, Python) into machine code (object code) that the computer can directly understand and execute. During the compilation process, the compiler also checks for syntax errors in the source code and generates an error report if any are found. This allows the programmer to identify and fix errors before attempting to run the program.
Last updated
About Hardware and Software
Hardware includes the physical components of a computer, such as the CPU, motherboard, registers, memory, storage devices and peripheral equipment. Software covers system software, application software, utilities, drivers and firmware, with attention to how the operating system manages hardware and how software differs from the physical equipment it controls.
Practise Hardware and Software
290 free Hardware and Software MCQs from Computer Science and IT, each with the correct answer and an explanation. Unlimited attempts, no account needed.
Exams that ask Computer Science and IT questions like this
Computer Science and IT is on 40 papers prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for every one of them.