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 31 โ€“ 40 of 198 Questions
Page 4 of 20
Q31
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Illegal Dual Base Register Combination)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In 16-bit x86 indirect memory addressing, combining two base registers simultaneously (e.g., `[bx+bp]`) inside memory brackets is invalid/illegal syntax.
๐Ÿ’ป assembly Snippet
mov ax, [bx + bp] ; ILLEGAL: Cannot combine two base registers
  1. A.True
  2. B.False
Q32
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (CS:IP Default Pairing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
By default in x86 architecture, the Code Segment register (CS) is implicitly associated with which offset register to form full instruction memory addresses (CS:IP)?
  1. A.SS
  2. B.BP
  3. C.CX
  4. D.IP
Q33
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Effective Address Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
All indirect memory addressing mechanisms in the iAPX88 architecture combine registers and displacements to compute and return a 16-bit offset value called the __________ address.
๐Ÿ’ป assembly Snippet
mov ax, [bx + si + 4] ; EA = BX + SI + 4
  1. A.Effective address
  2. B.Physical address
  3. C.Direct address
  4. D.None of the given
Q34
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Direct Addressing Fixed Offset)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In direct addressing mode, the memory address offset specified directly within the instruction is __________.
๐Ÿ’ป assembly Snippet
mov ax, [1234] ; Direct addressing mode with fixed displacement 1234
  1. A.Fixed
  2. B.Variable
  3. C.Register
  4. D.Empty
Q35
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Direct Addressing Mode)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which addressing mode is utilized in the assembly instruction `mov [1234], ax`?
๐Ÿ’ป assembly Snippet
mov [1234], ax ; Direct addressing mode
  1. A.Direct addressing
  2. B.Base register indirect
  3. C.Base+index
  4. D.None of the given
Q36
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Illegal Register Subtraction in Addressing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In 16-bit x86 assembly language, subtracting an index register from a base register inside indirect memory brackets (e.g., `[bx - si]`) is syntactically invalid/illegal.
๐Ÿ’ป assembly Snippet
mov ax, [bx - si] ; ILLEGAL: Subtraction of registers in EA is not allowed
  1. A.True
  2. B.False
Q37
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (CS:IP Default Pairing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
By default in x86 architecture, the Code Segment register (CS) is implicitly associated with which offset register to form full instruction addresses (CS:IP)?
  1. A.SS
  2. B.BP
  3. C.CX
  4. D.IP
Q38
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Direct Addressing Fixed Offset)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In direct memory addressing mode, the memory address displacement provided within the instruction is __________.
๐Ÿ’ป assembly Snippet
mov ax, [1234] ; Direct addressing with fixed displacement 1234
  1. A.Fixed
  2. B.Variable
  3. C.Register
  4. D.Empty
Q39
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Addressing Modes (Effective Address Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
All indirect memory addressing mechanisms in iAPX88 return a 16-bit offset value called the __________ address.
  1. A.Effective address
  2. B.Physical address
  3. C.Direct address
  4. D.None of the given
Q40
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ 4.1. Segmented Memory Model (BP Implicit SS Pairing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
By default in x86 architecture, the Base Pointer register (`BP`) is implicitly associated with which segment register for memory addressing?
๐Ÿ’ป assembly Snippet
mov ax, [bp + 4] ; Implicitly uses SS segment register (SS:BP)
  1. A.CS
  2. B.IP
  3. C.SS
  4. D.SP