Difficulty: Easy
Correct Answer: True
Explanation:
Introduction / Context:Labels provide symbolic names for addresses in assembly programs, improving readability and enabling relocatable code. They are commonly attached to instruction lines or data declarations.
Given Data / Assumptions:
Concept / Approach:A label identifies the address of the line it annotates. Control flow instructions (for example, jumps, calls) or data references can then target that label rather than hardcoding numeric addresses.
Step-by-Step Solution:
1) Author writes LABEL: at the start of a line.2) The assembler assigns the current location counter to LABEL.3) Elsewhere, instructions like JNZ LABEL use the resolved address of LABEL.4) If lines move, the label stays correct, aiding maintenance.Verification / Alternative check:Examine an assembled listing: labels expand to absolute addresses in machine code.
Why Other Options Are Wrong:False would ignore the fundamental purpose of labels in assembly.
Common Pitfalls:Reusing the same label name, or assuming labels imply scope like high-level languages (they typically do not).
Final Answer:True
Discussion & Comments