Which of the following symbols is used to write a comment in assembly program?

2022

Which of the following symbols is used to write a comment in assembly program?

  1. A.

    @

  2. B.

    $

  3. C.

    ;

  4. D.

    %

Attempted by 70 students.

Show answer & explanation

Correct answer: C

In assembly programming, the semicolon symbol (;) is used to denote comments. Any text following a semicolon on a line is ignored by the assembler and does not affect program execution.

Explore the full course: Dsssb Tgt Computer Science Paper 2