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.
Report an error
The more specific you are, the faster it gets fixed. A source beats an opinion.
Prefer email? [email protected]
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.
Discussion
Stuck on an option, or know a faster way to get there? Ask or explain it here.
No comments yet. Be the first to explain this one.
Exams that ask Computer Science and IT questions like this
Computer Science and IT is on 85 papers prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for every one of them.
More Hardware and Software questions
Which term is used to describe the length of a register?
A program that produces binary code of a given assembly language program is called
How many bits are used in three address instruction formats?
Which instruction format is used by commercial computers?
The time required for the fetching and execution of one simple machine instruction is
Which of the following is an example of instruction format?