In the name of ALLAH, the most beneficient, the most merciful

Computer Architecture and Assembly Language Programming (CS401)

Multiple Choice Questions (MCQs)

 

Objective Questions

Question

When a 32 bit number is divided by a 16 bit number, the quotient is of _______.

  1. 32 bits
  2. 16 bits
  3. 8 bits
  4. 4 bits

Answer: 2 Chapter No.  

Question

In the instruction MOV AX, 5 the number of operands are _______.

  1. 1
  2. 2
  3. 3
  4. 4

Answer: 1 Chapter No.  

Question

In DOS input buffer, number of characters actually read on return is stored in _______.

  1. 1st byte
  2. 2nd byte
  3. 3rd byte
  4. 4th byte

Answer: 2 Chapter No.  

Question

Which of the following is used to terminate a string in assembly language?

  1. !
  2. #
  3. $
  4. ;

Answer: 3 Chapter No.  

Question

In multitasking, which of the following interrupts is used as scheduler during context switching?

  1. INT 21
  2. INT 16
  3. INT 13
  4. INT 8

Answer: 4 Chapter No.  

Question

We can set the current file position in DOS using service number ________.

  1. 0x38
  2. 0x40
  3. 0x42
  4. 0x43

Answer: 3 Chapter No.  

Question

In the context of video services, if we want to set cursor position which of the following will be the value of AH?

  1. AH = 01h
  2. AH = 02h
  3. AH = 03h
  4. AH = 04h

Answer: 2 Chapter No.  

Question

Which of the following registers hold the page number for using the write string service of INT 10?

  1. AH
  2. BL
  3. CL
  4. BH

Answer: 4 Chapter No.  

Question

______ is the highest priority interrupt in interrupt controller.

  1. IRQ 0
  2. IRQ 1
  3. IRQ 2
  4. IRQ 3

Answer: 1 Chapter No.  

Question

The 'program segment prefix' for com files is of size:

  1. 64 bytes
  2. 128 bytes
  3. 256 bytes
  4. 512 bytes

Answer: 1 Chapter No.  

Question

"INT 13-BIOS disk services" generally uses which register to return the 'error code'?

  1. CF
  2. DL
  3. AH
  4. AL

Answer: 3 Chapter No.  

Question

Which of the following services of INT 10 is used for writing the string?

  1. 0x12
  2. 0x13
  3. 0x11
  4. 0x10

Answer: 2 Chapter No.  

Question

Which of the following INT 21 service is used to read character from standard input?

  1. 00
  2. 01
  3. 02
  4. 03

Answer: 2 Chapter No.  

Question

SP is associated with ____________ , by default.

  1. SS
  2. DS
  3. CS
  4. ES

Answer: 1 Chapter No. 2 

Question

Which bit of the attributes byte represents the red component of foreground color?

  1. 5
  2. 4
  3. 3
  4. 2

Answer: 4 Chapter No. 6 

Question

In STOSW instruction, when DF is clear, DI is ___________

  1. Incremented by 1
  2. Incremented by 2
  3. Decremented by 1
  4. Decremented by 2

Answer: 2 Chapter No. 7 

Question

Which of the following interrupts is Non maskable interrupt?

  1. INT 2
  2. INT 3
  3. INT 0
  4. INT 1

Answer: 1 Chapter No. 8 

Question

An 8 x 16 font is stored in ______________ bytes.

  1. 2
  2. 4
  3. 8
  4. 16

Answer: 4 Chapter No. 12 

Question

In DOS input buffer, the number of characters actually read on return is stored in ___________ byte.

  1. 3rd
  2. 4th
  3. 1st
  4. 2nd

Answer: 4 Chapter No. 12 

Question

Which of the following gives the more logical view of the storage medium?

  1. BIOS
  2. DOS
  3. Both
  4. None

Answer: 2 Chapter No. 13