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 141 โ€“ 150 of 198 Questions
Page 15 of 20
Q141
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SHL Mechanics)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The bit-shifting operation illustrated by 'C <- | 1 | 1 | 0 | 1 | 0 | 0 | 0 | <- 0' represents which shift instruction?
๐Ÿ’ป assembly Snippet
shl al, 1
  1. A.SHL (Shift Logical Left)
  2. B.SAR (Shift Arithmetic Right)
  3. C.SHR (Shift Logical Right)
  4. D.SAL (Shift Arithmetic Left)
Q142
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SHR Mechanics)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The bit-shifting operation illustrated by '0 -> | 1 | 1 | 0 | 1 | 0 | 0 | 0 | -> C' represents which shift instruction?
๐Ÿ’ป assembly Snippet
shr al, 1
  1. A.SHL (Shift Logical Left)
  2. B.SAR (Shift Arithmetic Right)
  3. C.SHR (Shift Logical Right)
  4. D.SAL (Shift Arithmetic Left)
Q143
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Logic Instructions (AND Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the instruction 'AND AX, BX' is executed on 16-bit registers, how many individual bitwise AND operations are performed simultaneously?
๐Ÿ’ป assembly Snippet
and ax, bx
  1. A.16 AND operations
  2. B.17 AND operations
  3. C.32 AND operations
  4. D.8 AND operations
Q144
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Operations (SHR vs SAL)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the statement true or false: 'SHR (Shift Logical Right) and SAL (Shift Arithmetic Left) perform the exact same operation'?
  1. A.True
  2. B.False
Q145
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Rotate Right (ROR) Instruction MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the operational function and bit movement of the Rotate Right (ROR) instruction in 8088 assembly language.
๐Ÿ’ป assembly Snippet
ror ax, 1
Q146
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ SHR vs SAR Bitwise Shift InstructionsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary difference between the SHR (Shift Logical Right) and SAR (Shift Arithmetic Right) instructions?
๐Ÿ’ป assembly Snippet
shr al, 1
sar bl, 1
Q147
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Left (SHL/SAL) and Carry FlagEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During a Left Shift operation (SHL or SAL), what happens to the Most Significant Bit (MSB) that is shifted out from the left?
๐Ÿ’ป assembly Snippet
shl al, 1
  1. A.It will be dropped completely
  2. B.It will go into the Carry Flag (CF)
  3. C.It will rotate to the rightmost position
  4. D.It will always become 1
Q148
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Left Shift as MultiplicationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If the decimal value 35 is shifted two bit positions to the left (35 << 2), what is the resulting decimal value?
๐Ÿ’ป assembly Snippet
mov al, 35
shl al, 2
  1. A.35
  2. B.70
  3. C.140
  4. D.17
Q149
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Bitwise Shift Logical Right (SHR)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If register BL contains decimal 5 (00000101b), what integer value will BL hold after executing a logical right shift operation ('SHR BL, 1')?
๐Ÿ’ป assembly Snippet
mov bl, 5
shr bl, 1
  1. A.2
  2. B.3
  3. C.5
  4. D.10
Q150
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 4๐Ÿท๏ธ Shift Arithmetic Right (SAR) Sign PreservationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During the execution of the SAR (Shift Arithmetic Right) instruction, what happens to the Most Significant Bit (MSB / sign bit)?
๐Ÿ’ป assembly Snippet
sar al, 1
  1. A.The MSB is replaced by 0
  2. B.The MSB is replaced by 1
  3. C.The MSB retains its original value (sign preservation)
  4. D.The MSB is replaced by the current value of CF