Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Logic and Shift Operations Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

True or False: The AND instruction performs a bitwise AND between two operands and stores the result in the source operand.

a)

True

b)

False

2.

True or False: The NOT instruction inverts each bit of the operand.

a)

True

b)

False

3.

True or False: In a logical shift left operation, the bits shifted out are replaced by zeros on the right.

a)

True

b)

False

4.

True or False: The XOR instruction sets a bit to 1 if the bits in the operands are identical.

a)

True

b)

False

5.

True or False: Arithmetic right shifts replicate the sign bit into the empty bit positions.

a)

True

b)

False

6.

True or False: The OR instruction performs a bitwise AND between the operands.

a)

True

b)

False

7.

True or False: A rotate operation, such as ROL, wraps bits around instead of discarding them.

a)

True

b)

False

8.

True or False: The TEST instruction performs a bitwise AND between two operands and affects the status flags without altering the operands.

a)

True

b)

False

9.

True or False: Logical shifts can be used to isolate specific fields within a binary word.

a)

True

b)

False

10.

True or False: The SHR instruction shifts the operand left, inserting 0s into the lower bits.

a)

True

b)

False