Ch 04: Bit Manipulation and Shifts

198 Questions198 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS401 - Computer Architecture and Assembly Language Programming Examination Practice

Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 61 โ€“ 70 of 198 Questions
Page 7 of 20
Q61
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Illegal Register Subtraction in Effective Addressing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which addressing mode classification applies to the assembly line `mov ax, [bx - si]`?
๐Ÿ’ป assembly Snippet
mov ax, [bx - si] ; ILLEGAL: Subtraction inside memory brackets is not allowed
  1. A.Based Register Indirect
  2. B.Indirect
  3. C.Direct
  4. D.illegal
Q62
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Illegal 8-bit Register in Memory Brackets)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What syntax error is present in the 16-bit x86 assembly instruction `mov ax, [BL]`?
๐Ÿ’ป assembly Snippet
mov ax, [bl] ; ILLEGAL: BL is an 8-bit register and cannot serve as memory index pointer
  1. A.8-bit registers cannot be used inside memory addressing brackets
  2. B.AX must be replaced with EAX
  3. C.BL is an immediate constant
  4. D.Segment register is missing
Q63
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Illegal 8-Bit Memory Offset Pointer)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly instruction `mov ax, [bl]`, why is an error generated during assembly?
๐Ÿ’ป assembly Snippet
mov ax, [bl] ; ILLEGAL: 8-bit register BL cannot be used inside memory brackets
  1. A.Address offset registers inside brackets must be 16-bit registers
  2. B.Address must be 8bit
  3. C.Address must be 4bit
  4. D.Moving an 8-bit memory operand to a 16-bit register is illegal without zero/sign extension
Q64
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Illegal Dual Index Register Combination)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What syntax error occurs in the assembly instruction `mov ax, [SI+DI]`?
๐Ÿ’ป assembly Snippet
mov ax, [si + di] ; ILLEGAL: Cannot combine two index registers simultaneously
  1. A.Two index registers cannot be used together as a memory address
  2. B.An index register cannot be used as a memory address
  3. C.Destination register AX is invalid
  4. D.None of the Given
Q65
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (LES Far Pointer Instruction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The `LES` instruction loads a 32-bit far memory pointer into a specified general register and which segment register?
๐Ÿ’ป assembly Snippet
les di, [far_ptr] ; Loads offset into DI and segment into ES
  1. A.ES
  2. B.DS
  3. C.SS
  4. D.CS
Q66
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (LDS Far Pointer Instruction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The `LDS` instruction loads a 32-bit far memory pointer into a specified general register and which segment register?
๐Ÿ’ป assembly Snippet
lds si, [far_ptr] ; Loads offset into SI and segment into DS
  1. A.ES
  2. B.DS
  3. C.SS
  4. D.CS
Q67
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Effective Address Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
All memory addressing mechanisms in iAPX88 (such as base, index, or offset) perform calculation to return a 16-bit offset value called the __________ address.
๐Ÿ’ป assembly Snippet
mov ax, [bx + si + 4] ; Effective Address EA = BX + SI + 4
  1. A.effective
  2. B.faulty
  3. C.indirect
  4. D.direct
Q68
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (Four Core Segment Registers)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write down the full names and primary roles of the four 16-bit segment registers in the x86 processor architecture.
Q69
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (Physical Address Calculation with Wraparound)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Given `BX = 0x0100`, `DS = 0xFFF0`, and memory operand `[BX + 0x0100]`, step-by-step calculate the resulting 20-bit physical RAM memory address.
๐Ÿ’ป assembly Snippet
; DS = 0xFFF0, BX = 0x0100
; EA = 0x0100 + 0x0100 = 0x0200
; Physical Address = 0xFFF00 + 0x0200 = 0x100100 -> 0x0100 (20-bit wraparound)
Q70
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (FS and GS Segment Registers)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 80386 and later x86 processors, `FS` and `GS` are two additional __________ registers added to expand segmented data addressing.
  1. A.segment registers
  2. B.segment selectors
  3. C.stack pointers
  4. D.register pointers