Skip to main content

Computer Architecture & Assembly Language MCQs with Answers

Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.

Multiple Choice Questions

Q151: Which byte in a word is used for the foreground and background colors in display memory?
  • A: First
  • B: Second
  • C: Third
  • D: Fourth
View Answer
B

Q152: In the attribute byte, what does bit 7 represent?
  • A: Intensity of background
  • B: Blinking of foreground character
  • C: Red component of background
  • D: Green component of foreground
View Answer
B

Q153: How many colors can be displayed for the foreground in video memory attributes?
  • A: 8
  • B: 16
  • C: 4
  • D: 32
View Answer
B

Q154: In Assembly language, how do you load the video memory segment into ES?
  • A: mov es, ax
  • B: mov ds, ax
  • C: mov cs, ax
  • D: mov ss, ax
View Answer
A

Q155: Which instruction is used to clear the screen in Assembly language?
  • A: mov word [es:di], 0x0720
  • B: mov [es:di], 0x00
  • C: mov es, 0xB800
  • D: int 0x21
View Answer
A

Q156: What does the instruction mov word [es:0], 0x0741 do?
  • A: Clears the screen
  • B: Displays 'A' in white on black
  • C: Displays '0' in green on blue
  • D: Displays 'A' in green on blue
View Answer
B

Q157: What is the purpose of the DIV instruction in Assembly language?
  • A: Multiply two numbers
  • B: Divide a number
  • C: Add two numbers
  • D: Subtract two numbers
View Answer
B

Q158: How is the ASCII code for 'A' stored in memory?
  • A: 0x41
  • B: 0x30
  • C: 0x61
  • D: 0x20
View Answer
A

Q159: What is the result of executing mov word [es:160], 0x1230?
  • A: Prints 'A' on top left
  • B: Prints '0' on second line in green on blue
  • C: Clears the screen
  • D: Prints 'A' on the bottom right
View Answer
B

Q160: Which of the following is the correct syntax to declare the string 'abc' in Assembly language?
  • A: db 'abc'
  • B: db "abc"
  • C: db abc
  • D: db ['abc']
View Answer
A

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now