Branching

Lecture 8: Branching

261 Questions205 MCQs51 Short Questions5 Long Questions
Showing 91100 of 261 Questions
Page 10 of 27
Q91❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In x86 processor architecture, the __________ is bit-wise significant, meaning each individual bit holds a distinct status flag or control signal.
  1. A.AX
  2. B.FS
  3. C.IP
  4. D.Flags Register
Q92❓ 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 overflow bit that cannot fit in the 16-bit target register is placed in the __________.
💻 assembly Snippet
mov ax, 0xFFFF
add ax, 1 ; AX becomes 0x0000, Carry Flag (CF) becomes 1
  1. A.carry flag
  2. B.Parity Flag
  3. C.Auxiliary Carry
  4. D.Zero Flag
Q93❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: In Intel x86 assembly language syntax, machine instructions are written in the format `operation destination, source`.
💻 assembly Snippet
mov ax, bx ; Destination = AX, Source = BX
  1. A.TRUE
  2. B.FALSE
Q94❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
What exact operation is performed when the assembly code `add ax, bx` is executed?
💻 assembly Snippet
add ax, bx ; AX = AX + BX (AX is updated, BX is 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
Q95❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In assembly language data definitions using the `db` (Define Byte) directive (e.g., `num1: db 5`), what size of memory is allocated?
💻 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
Q96❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Consider the following assembly program snippet: ```assembly [org 0x0100] mov ax, [num1] ; load first number in ax mov bx, [num2] ; load second number in bx add ax, bx ; _________________________ int 0x21 num1: dw 5 num2: dw 10 ``` Which of the following is the most appropriate code comment for line 4 (`add ax, bx`)?
💻 assembly Snippet
add ax, bx ; accumulate sum in ax
  1. A.No comments will be present
  2. B.; accumulate sum in add
  3. C.; accumulate sum in ax
  4. D.; accumulate sum in bx
Q97❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In NASM assembly language, a string or character sequence can be defined using which of the following valid syntax forms?
💻 assembly Snippet
str1: db 'abc'            ; Enclosed string literal
str2: db 'a', 'b', 'c'    ; Character list
str3: db 0x61, 0x62, 0x63 ; Hexadecimal ASCII bytes
  1. A.db 0x61, 0x61, 0x63
  2. B.db 'a', 'b', 'c'
  3. C.db 'abc'
  4. D.All of the above
Q98❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When performing 16-bit division using `DIV reg16` (dividing the 32-bit dividend in `DX:AX`), where is the resulting 16-bit quotient stored?
💻 assembly Snippet
div bx ; Quotient stored in AX (16-bit), remainder in DX (16-bit)
  1. A.16bit
  2. B.17bit
  3. C.32bit
  4. D.64bit
Q99❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
The division operation performed by the x86 processor via the __________ instruction is integer division (truncating remainders) and not floating-point division.
💻 assembly Snippet
div bl ; Performs integer division on AX by BL
  1. A.DIV instruction
  2. B.ADC instruction
  3. C.SSB instruction
  4. D.DIVI instruction
Q100❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Which x86 assembly instruction performs unsigned multiplication of a source operand with the accumulator register (`AL` or `AX`)?
💻 assembly Snippet
mul bl ; AX = AL * BL (8-bit unsigned multiplication)
mul bx ; DX:AX = AX * BX (16-bit unsigned multiplication)
  1. A.Multi
  2. B.DIV
  3. C.MUL
  4. D.Move