Language levels: The statement “LDA B” is written in which category of computer language?

Difficulty: Easy

Correct Answer: Assembly language

Explanation:


Introduction / Context:
Computer languages exist at multiple abstraction layers. Recognizing which layer a specific statement belongs to helps you choose the right tools (assembler, compiler) and understand how code maps onto hardware.


Given Data / Assumptions:

  • Statement: “LDA B”.
  • LDA is a classic mnemonic meaning “Load Accumulator,” and “B” is a symbolic operand/register.


Concept / Approach:
Assembly language uses human-readable mnemonics (like LDA, MOV, ADD) and symbolic operands that translate 1:1 or nearly so into machine instructions. Machine language is numeric opcodes and operands. High-level languages use English-like syntax and abstractions (if, while, functions, types) with no direct 1:1 mapping to opcodes.


Step-by-Step Solution:
Identify mnemonic pattern: LDA is not a binary opcode; it is a mnemonic.Operand “B” resembles a register symbol, consistent with assembly usage.Therefore the statement is assembly language.


Verification / Alternative check:
Assembling “LDA B” would produce a specific numeric opcode sequence; compilers for high-level languages would never accept raw mnemonics as valid source.


Why Other Options Are Wrong:
(a) Machine language is purely numeric (binary/hex). (c) High-level languages do not use processor mnemonics. (d) “All of the above” cannot be true as categories are mutually exclusive.


Common Pitfalls:
Equating assembly with machine language due to their close relationship; they are distinct representations.


Final Answer:
Assembly language.

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion