Home / CSE MCQs / Assembly Language ::

CSE MCQs :: Assembly Language

  1. The instructions like MOV or ADD are called as ______
  2. A.
    OP-Code
    B.
    Operators
    C.
    Commands
    D.
    None of the mentioned

  3. A single two pass assembler does which of the following in the first pass
  4. A.
    It allicates space for the literals
    B.
    It computes the total length of the program
    C.
    It builds the symbol table for the symbols and their values
    D.
    All of the above

  5. DEBUG is able to troubleshoot only
  6. A.
    .EXE files
    B.
    .OBJ files
    C.
    .EXE file and .OBJ file
    D.
    .EXE flie and .LST file

  7. The purpose of the ORIGIN directive is __________
  8. A.
    To indicate the starting position in memory, where the program block is to be stored
    B.
    To indicate the starting of the computation code
    C.
    To indicate the purpose of the code
    D.
    To list the locations of all the registers used

  9. The last statement of the source program should be _______
  10. A.
    Stop
    B.
    Return
    C.
    OP
    D.
    End

  11. In a two pass assembler, adding literals to literal table and address resolution of local symbols are done using?
  12. A.
    First pass and second respectively
    B.
    Both second pass
    C.
    Second pass and first respectively
    D.
    Both first pass

  13. A machine language instruction format consists of
  14. A.
    Operand field
    B.
    Operation code field
    C.
    Operation code field & operand field
    D.
    None of the mentioned

  15. The listing file is identified by
  16. A.
    source file name
    B.
    extension .LSF
    C.
    source file name and an extension .LSF
    D.
    source file name and an extension .LST

  17. The extension file that is must for a file to be accepted by the LINK as a valid object file is
  18. A.
    .OBJ file
    B.
    .EXE file
    C.
    .MASM file
    D.
    DEBUG file

  19. What is the content of Stack Pointer?
  20. A.
    Address of the current instruction
    B.
    Address of the next instruction
    C.
    Address of the top element of the stack
    D.
    None of these