Assembly Language quiz questions

Assembly Language interview questions

  • 1.

    The AX register full name is:

    1. Accumulator register

    2. Counter register

    3. Base register

    Answer
  • 2.

    The result of logical operation: 1 AND 1

    1. logic 1

    2. logic 0

    Answer
  • 3.

    How many bits in one byte?

    1. 8 bits

    2. 16 bits

    3. 32 bits

    Answer
  • 4.

    How many bytes in one word

    1. 1 byte

    2. 2 byte

    3. 4 byte

    Answer
  • 5.

    Memory segments can start every:

    1. 1 paragraph (16 bytes)

    2. 1 word (2 bytes)

    3. 1 byte

    Answer
  • 6.

    What is the value of AX register after executing, MOV AX,456h, CMP AX,456h

    1. 456h

    2. Zero

    3. Unknown

    Answer
  • 7.

    The instruction AND AH,11110111 is equivalent to:

    1. Sub AH, 8, if 4th bit of AH is set

    2. Sub AH, 8, if 4th bit of AH is cleared

    3. Sub AH, 4, if 4th bit of AH is set

    Answer
  • 8.

    What about the Stack segment in .COM program during execution:

    1. Must be defined explicitly in the program

    2. DOS uses the high area of the COM program for the Stack

    3. There is no stack for .COM program during execution

    Answer
  • 9.

    To write assembly program that generates .COM program, how many segment you can use:

    1. Only Code

    2. Code ; Data

    3. Code ; Data ; Stack

    Answer
  • 10.

    To increment both AL, AH registers:

    1. INC AX

    2. INC AL INC AH

    3. both (a) and (b) are correct

    Answer
  • 11.

    The statement AGE DB 25

    1. Instructs the processor to store the value 25 into AX register

    2. Instructs the assembler to store the value 25 into RAM, and use AGE as a reference

    3. Both correct

    Answer
  • 12.

    The max size of .COM program:

    1. Any size

    2. 1 paragraph (16 bytes)

    3. 1 segment (64k bytes)

    Answer
  • 13.

    The debug command U

    1. Retrieve the assembly program instructions from the disk

    2. Retrieve the assembly program instructions from the RAM

    3. Convert the machine code stored in memory into assembly equivalent

    Answer
  • 14.

    the debug command: -E F000:0 1 2 3

    1. Has no effect, because that location in ROM

    2. Will write three bytes (1,2,3) starting at location F000:0

    3. Depends on the processor

    Answer
  • 15.

    Consider the program segment:

    Age DB 100

    MOV Age,123

    What is the memory-addressing mode of the first operand in the MOV instruction?

    1. Immediate addressing mode

    2. direct addressing mode

    3. Indirect addressing mode

    Answer
  • 16.

    To display the contents of 100 bytes starting at physical address 00000 using the debug:

    1. –d 0 FF

    2. –d 0:0 FF

    3. –d 0:0 0:FF

    Answer
  • 17.

    The assembly directive is a command to:

    1. The Assembler program

    2. The Microprocessor

    3. both (a) and (b) are correct

    Answer
  • 18.

    The multiple Segment:Offset representations for a unique physical address is:

    1. Advantage for 8086 processor to provide flexibility

    2. disadvantage for 8086 processor, it make it harder to program

    3. Has no effect

    Answer
  • 19.

    The limitation on The maximum memory space addressable by 8086 processor because:

    1. It has only 14 registers

    2. The register size was 16 bits

    3. The address bus width was 20 bits

    Answer
  • 20.

    Who generates PSP for .COM programs:

    1. DOS generates PSP automatically preceding a COM program in the memory

    2. The program itself

    3. DOS load it from the disk

    Answer

© 2017 QuizBucket.org