CS Professional · Artificial Intelligence, Data Analytics and Cyber Security - Laws and Practice · Computer Hardware and Software
A programmer writes a routine in a language whose statements use mnemonics such as ADD and MOV, one mnemonic usually mapping to one machine instruction, and uses an assembler to convert it. A second programmer writes in a language using English-like statements that are independent of the processor and needs a compiler. Which statement is correct?
The first programmer uses assembly language, a low-level, processor-specific language translated by an assembler, while the second uses a high-level, machine-independent language translated by a compiler. Machine language is binary and needs no assembler, so the other options misclassify them.
- AThe first uses a high-level language and the second uses a low-level language
- BBoth use machine language, differing only in the translator
- CThe first uses assembly language, a low-level language, and the second uses a high-level languageCorrect
- DThe first uses a fourth-generation language and the second uses binary code
Explanation
Assembly language uses mnemonics mapped nearly one-to-one to machine instructions, is processor-specific, and needs an assembler; it is low-level. English-like, machine-independent languages needing a compiler or interpreter are high-level. The first option reverses the categories.
Did you get it right without looking?
One question tells you little. A timed set on Computer Hardware and Software shows your real accuracy, how long you take and where you lose marks.
More Computer Hardware and Software questions
- A Bengaluru start-up wants to run its own customer database on virtual machines rented from a cloud vendor, installing and patching the oper…
- A bank's developer discovers that a source-code listing in a low-level language uses mnemonics such as ADD and MOV, which are converted to m…
- In the von Neumann architecture, which feature distinguishes it from a design that has separate memories for instructions and data?
- A firm distributes software whose source code is publicly available under a licence permitting users to study, modify and redistribute it. T…
- A manufacturing plant in Pune installs smart sensors on machines that analyse vibration data locally on a nearby gateway device and send onl…
- Under the Information Technology Act, 2000, tampering with computer source code is an offence when the code is required to be kept or mainta…