Branching

Lecture 8: Branching

261 Questions205 MCQs51 Short Questions5 Long Questions
Showing 101110 of 261 Questions
Page 11 of 27
Q101❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
How many explicit operands does the Add with Carry (`ADC`) instruction take in x86 assembly language syntax?
💻 assembly Snippet
adc ax, bx ; 2 explicit operands (AX and BX)
  1. A.two
  2. B.three
  3. C.Five
  4. D.Zero
Q102📝 Short Q📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In 8088 assembly language, the designation AX refers to the 16-bit Accumulator register. How are its individual upper and lower 8-bit bytes accessed?
💻 assembly Snippet
mov ah, 0x12 ; Accesses upper byte of AX
mov al, 0x34 ; Accesses lower byte of AX
Q103❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When two 16-bit numbers are added, the sum can be up to 17 bits long. This extra 17th bit that cannot fit in the target register is placed in the __________ where it can be used and tested.
💻 assembly Snippet
mov ax, 0xFFFF
add ax, 1 ; AX = 0x0000, Carry Flag (CF) = 1
  1. A.carry flag
  2. B.Parity Flag
  3. C.Auxiliary Carry
  4. D.Zero Flag
Q104❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: In Intel x86 assembly language syntax, instructions are written in the order `operation destination, source`.
💻 assembly Snippet
mov ax, bx ; Destination = AX, Source = BX
  1. A.TRUE
  2. B.FALSE
Q105❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
What exact operation is performed when the assembly instruction `add ax, bx` is executed?
💻 assembly Snippet
add ax, bx ; AX = AX + BX (AX updated, BX unchanged)
  1. A.Add the bx to ax and change the bx
  2. B.Add the ax to bx and change the ax
  3. C.Add the bx to ax and change the ax
  4. D.Add the bx to ax and change nothing
Q106❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In the assembly data definition statement `num1: db 5`, what size of memory is allocated for `num1`?
💻 assembly Snippet
num1: db 5 ; Allocates 1 byte of memory initialized to 5
  1. A.1byte
  2. B.4bit
  3. C.16bit
  4. D.2byte
Q107❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: Executing `mov ax, 0` will set the Zero Flag (`ZF = 1`).
💻 assembly Snippet
mov ax, 0 ; Does NOT modify flags (ZF remains unchanged)
xor ax, ax ; Modifies flags (sets ZF = 1)
  1. A.True
  2. B.False
Q108📝 Short Q📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
List the names of three x86 status or control flags in the FLAGS register that are NOT used for arithmetic/mathematical operations.
💻 assembly Snippet
cli ; Clears Interrupt Flag (IF)
cld ; Clears Direction Flag (DF)
Q109❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In x86 assembly language architecture, the Index Registers (`SI` and `DI`) are primarily used to store __________.
💻 assembly Snippet
mov si, string_offset ; Stores memory address offset in SI
  1. A.Address
  2. B.Data
  3. C.Intermediate result
  4. D.Both data and addresses
Q110❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In x86 CPU architecture, the individual bits of which register work independently and individually to represent processor state and control conditions?
  1. A.Flags Register
  2. B.AX Register
  3. C.CS Register
  4. D.IP Register