wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Bit Manipulation Quiz 2

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Shift bits to the right to an unsigned byte, word, or double word in a register or memory,

a)

SHL

b)

SHR

c)

SAR

d)

SAL

2.

A logical shift instructions function contains signed numbers.

a)

TRUE

b)

FALSE

3.

A binary number 1111 is used in an arithmetic shift instructions. what is the equivalent value of the number in decimal?

a)

15

b)

-7

c)

16

d)

-1

4.

A binary number 1110 is used in a logical shift instruction. What is the decimal value of the number?

a)

14

b)

-2

c)

-8

d)

-14

5.

An arithmetic shift instructions function contains unsigned numbers.

a)

TRUE

b)

FALSE

6.

What is the final value of DL after the operations below?


MOV DL, 1010 1010

SHL DL, 2

a)

1010 1000

b)

0010 1010

c)

1010 1010

d)

0101 0101

7.

What is the final value of 10000000 in decimal after shifting it 6 times logically to the right?

a)

2

b)

12

c)

24

d)

4

8.

What is the final value of AH after the operations below?


MOV AH, 4AH

SHL AH, 3

a)

05H

b)

50H

c)

40H

d)

28H

9.

What is the final value of AL, CF, and OF after the SAL operation below is done?


MOV AL, F0H

SAL AL, 2

a)

AL = 00H, CF = 1, OF = 0

b)

AL = 0CH, CF = 1, OF = undefined

c)

AL = CCH, CF = 0, OF = 1

d)

AL = C0H, CF = !, OF = undefined

10.

A binary number 10000100 is a signed binary number. What is its decimal value?

a)

124

b)

-124

c)

-64

d)

64