Given below are two statements : one is labelled as Assertion (A) and the…

2022

Given below are two statements : one is labelled as Assertion (A) and the other is labelled as Reason (R):

Assertion (A): A load-and-go assembler avoids the overhead of writing the object program out and reading it back in.
Reason (R): This can be done with either one-pass or two pass assembler.

In the light of the above statements, choose the correct answer from the options given below :

  1. A.

    Both (A) and (R) are true and (R) is the correct explanation of (A),

  2. B.

    Both (A) and (R) are true but (R) is (NOT) the correct explanation of (A)

  3. C.

    (A) is true but (R) is false

  4. D.

    (A) is false but (R) is true

Attempted by 87 students.

Show answer & explanation

Correct answer: C

Final Answer is - (A) is true but (R) is false.

Assertion (A): "A load-and-go assembler avoids the overhead of writing the object program out and reading it back in."

  • Status: True.

  • Reasoning: This is the exact definition of a load-and-go system. By placing the machine code directly into memory for execution, it eliminates the need to generate an object file, write it to secondary storage, and then have a loader read it back.

Reason (R): "This can be done with either one-pass or two pass assembler."

  • Status: False.

  • Reasoning: In standard system software theory (e.g., Leland Beck's definitions), a Load-and-Go assembler is inherently a One-Pass Assembler.

    • Since the goal is speed and immediate execution, the system scans the source code once and generates code in memory.

    • Two-Pass assembler scans the code once to build a symbol table and a second time to generate code. This double scanning is generally not used in "Load-and-Go" systems because it adds processing overhead that the load-and-go philosophy tries to avoid. Therefore, Load-and-Go is strictly associated with single-pass architecture in this context.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor