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 131 โ€“ 140 of 198 Questions
Page 14 of 20
Q131
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Rotation Instructions (RCR)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a Rotate Through Carry Right (RCR) instruction applied to a 16-bit word, how many total bits form the rotation ring?
๐Ÿ’ป assembly Snippet
rcr ax, 1
  1. A.16 bits rotation
  2. B.1 bit rotation
  3. C.17 bits rotation
  4. D.8 bits rotation
Q132
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SHR) and DivisionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Suppose register AL contains the decimal value 35. What decimal value will AL hold after performing a bitwise logical right shift by one place (SHR AL, 1)?
๐Ÿ’ป assembly Snippet
mov al, 35
shr al, 1
  1. A.35
  2. B.70
  3. C.140
  4. D.17
Q133
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SHR) and Integer DivisionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Suppose register BL contains the decimal value 5. What decimal value will BL hold after executing a single bitwise logical right shift (SHR BL, 1)?
๐Ÿ’ป assembly Snippet
mov bl, 5
shr bl, 1
  1. A.3
  2. B.2
  3. C.5
  4. D.10
Q134
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SAR vs SHR)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What happens to the Most Significant Bit (MSB) of the destination operand after executing the SAR (Shift Arithmetic Right) instruction?
๐Ÿ’ป assembly Snippet
mov al, 0x80
sar al, 1
  1. A.The MSB is replaced by a 0
  2. B.The MSB is replaced by a 1
  3. C.The MSB retains its original value (sign extension)
  4. D.The MSB is replaced by the value of the Carry Flag
Q135
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Unsigned Division (DIV) Instruction FormsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many basic operand forms does the unsigned division instruction (DIV) support in 8088 assembly language based on operand size?
๐Ÿ’ป assembly Snippet
div bl
div bx
  1. A.Two forms
  2. B.Three forms
  3. C.Four forms
  4. D.One form
Q136
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Unsigned Division (DIV) Operand RulesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the operand of a DIV instruction is 16 bits wide, what is the bit-width of the implied dividend?
๐Ÿ’ป assembly Snippet
div bx
  1. A.8 bits
  2. B.16 bits
  3. C.32 bits
  4. D.64 bits
Q137
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Divide Overflow Exception and INT 0Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What condition occurs when a division operation produces a quotient that is too large to fit in the destination register?
๐Ÿ’ป assembly Snippet
mov ax, 1000
mov bl, 1
div bl
  1. A.Divide logical error
  2. B.Divide overflow error
  3. C.Divide syntax error
  4. D.An illegal instruction
Q138
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SHL) and MultiplicationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Suppose decimal number 35 is converted to binary and shifted left by two bit positions (35 << 2). What will be the resulting decimal value?
๐Ÿ’ป assembly Snippet
mov al, 35
shl al, 2
  1. A.35
  2. B.70
  3. C.140
  4. D.17
Q139
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Logical Right Shift (SHR) MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Examine the bit shift operation: 0 -> [1 1 0 1 0 0 0] -> C (where 0 enters the MSB and the LSB exits into the Carry Flag). Which assembly instruction performs this operation?
๐Ÿ’ป assembly Snippet
0 -> [1 1 0 1 0 0 0] -> C
  1. A.SHL (Shift Logical Left)
  2. B.SAR (Shift Arithmetic Right)
  3. C.SHR (Shift Logical Right)
  4. D.SAL (Shift Arithmetic Left)
Q140
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Logical Left Shift (SHL) MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Examine the bit shift operation: C <- [1 1 0 1 0 0 0] <- 0 (where the MSB exits into the Carry Flag and 0 enters the LSB). Which assembly instruction performs this operation?
๐Ÿ’ป assembly Snippet
C <- [1 1 0 1 0 0 0] <- 0
  1. A.SHL (Shift Logical Left)
  2. B.SAR (Shift Arithmetic Right)
  3. C.SHR (Shift Logical Right)
  4. D.SAL (Shift Arithmetic Left)