Which shift operation inserts a zero from the left (MSB), moves every bit one position to the right, and copies the rightmost bit (LSB) into the Carry Flag?
Ch 04: Bit Manipulation and Shifts
Covers bitwise logic manipulations, clearing/setting/toggling specific bits, arithmetic vs logical shifts, fast multiplication and division algorithms by powers of 2, and extended-precision math.
198 Questions198 MCQs0 Short Questions0 Long Questions
SEMESTER PASS
CS401 - Computer Architecture and Assembly Language Programming Examination Practice
Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.
Showing 11 โ 20 of 198 Questions
Page 2 of 20
Which rotation instruction inserts the Carry Flag into the left (MSB), moves every bit one position to the right, and drops the rightmost bit (LSB) into the Carry Flag?
The SHL (Shift Logical Left) and SAL (Shift Arithmetic Left) assembly instructions perform identical binary bit operations. (True/False)
Which shift operation inserts a zero bit from the right (LSB), moves every bit one position to its left, and drops the most significant bit (MSB) into the Carry Flag?
In a bitwise XOR (Exclusive OR) logical operation, the output bit is 1 under which condition?
In a bitwise AND logical operation, the output bit is 1 under which condition?
When the divisor operand of a DIV instruction is 16-bits (a word), where is the implied dividend stored?
When the divisor operand of a DIV instruction is 16 bits, what is the bit size of the implied dividend stored in DX:AX?
Suppose the AL register contains the decimal value 5. After executing two bitwise left shift (SHL) operations, what value will AL hold?
For the execution of the 8-bit division instruction `DIV BL`, in which register is the implied dividend stored?