Ch 08: String Instructions and Primitives

307 Questions307 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 231 โ€“ 240 of 307 Questions
Page 24 of 31
Q231
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ CX Counter Register FunctionalityEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 CPU architecture, the CX register is primarily used as a:
๐Ÿ’ป assembly Snippet
mov cx, 10
rep movsb
  1. A.Counter register
  2. B.Base register
  3. C.Extra segment register
  4. D.Accumulator register
Q232
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Immediate Operand RestrictionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language instructions, a constant (immediate value) can never be used as a:
๐Ÿ’ป assembly Snippet
mov 5, ax
  1. A.Source operand
  2. B.Destination operand
  3. C.Immediate operand
  4. D.Offset operand
Q233
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Illegal Base-Base Addressing Mode ([BX+BP])Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is an illegal instruction in 8088 assembly language?
๐Ÿ’ป assembly Snippet
mov ax, [bx+bp]
  1. A.MOV AX, [BX+BP]
  2. B.MOV AX, [BX+SI]
  3. C.MOV AX, [BP+DI]
  4. D.MOV AX, [BX+4]
Q234
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ ROR (Rotate Right) Instruction MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In which operation does every bit move one position to the right, with the bit dropped from the rightmost position (LSB) inserted into the leftmost position (MSB) and also copied into the Carry Flag?
๐Ÿ’ป assembly Snippet
ror ax, 1
  1. A.RCR
  2. B.RCL
  3. C.ROR
  4. D.ROL
Q235
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ RCR (Rotate through Carry Right) Instruction MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In which operation is the Carry Flag inserted from the left (into MSB), moving every bit one position to the right, with the rightmost bit (LSB) dropped into the Carry Flag?
๐Ÿ’ป assembly Snippet
rcr ax, 1
  1. A.RCR
  2. B.ROL
  3. C.RCL
  4. D.ROR
Q236
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Illegal Segment Register MOV InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is NOT a valid instruction in 8088 assembly language?
๐Ÿ’ป assembly Snippet
mov cs, 0xb800
  1. A.MOV AX, 0xB800
  2. B.MOV DS, AX
  3. C.MOV CS, 0xB800
  4. D.MOV ES, AX
Q237
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Bi-directional Data Bus ArchitectureEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Regarding signal flow direction between the processor and peripheral devices, the System Data Bus is:
  1. A.Uni-directional
  2. B.Bi-directional
  3. C.Non-directional
  4. D.None of the given
Q238
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ SAR MSB Sign PreservationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of an SAR (Shift Arithmetic Right) instruction on an operand, what happens to the Most Significant Bit (MSB)?
๐Ÿ’ป assembly Snippet
sar al, 1
  1. A.The MSB is replaced by 0
  2. B.The MSB retains its original value
  3. C.The MSB is replaced by 1
  4. D.The MSB is replaced by the value of CF
Q239
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ SAR (Shift Arithmetic Right) MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which operation shifts every bit one position to the right, replicates the original Most Significant Bit (sign bit) at the MSB position, and drops the rightmost bit into the Carry Flag?
๐Ÿ’ป assembly Snippet
sar ax, 1
  1. A.Shift Logical Right (SHR)
  2. B.Shift Arithmetic Right (SAR)
  3. C.Shift Arithmetic Left (SAL)
  4. D.Shift Logical Left (SHL)
Q240
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ CMP Instruction Implied SubtractionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which internal arithmetic operation is executed by a simple CMP instruction?
๐Ÿ’ป assembly Snippet
cmp ax, bx
  1. A.Addition
  2. B.Subtraction
  3. C.Multiplication
  4. D.Division