Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

221 - Quiz07

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

Is it possible for the INC instruction to set the Carry flag?

a)

yes

b)

no

2.

The following instructions will set the Overflow flag:

a)

no

b)

yes

3.

If AL contains +127 and you add 3 to AL, the Overflow flag

a)

no

b)

yes

4.

Suppose BX and DX contain positive integers. If adding them produces a negative result, the Overflow flag will be set

a)

no

b)

yes

5.

The Overflow flag will never be set when adding a positive integer to a negative integer

a)

no

b)

yes

6.

Which instructions will increment val2?

a)

add 1, val2

b)

inc 1, val2

c)

inc val2

d)

add val2, 1

7.

If val4 is incremented by 1 using the ADD instruction, what will be the values of the Over- flow and Sign flags?

a)

SF=0 OF=0

b)

SF=0 OF=1

c)

SF=1 OF=0

d)

SF=1 OF=1

8.

Where indicated, values of the Carry, Sign, Zero, and Overflow flags after the instruction has executed:

a)

CF = 1 SF = 1 ZF = 0 OF = 1

b)

CF = 0 SF = 1 ZF = 0 OF = 0

c)

CF = 0 SF = 1 ZF = 0 OF = 1

d)

CF = 1 SF = 0 ZF = 1 OF = 0

9.

Where indicated, values of the Carry, Sign, Zero, and Overflow flags after the instruction has executed:

a)

CF = 1 SF = 1 ZF = 0 OF = 1

b)

CF = 0 SF = 1 ZF = 0 OF = 0

c)

CF = 0 SF = 1 ZF = 0 OF = 1

d)

CF = 1 SF = 0 ZF = 1 OF = 0

10.

Where indicated, values of the Carry, Sign, Zero, and Overflow flags after the instruction has executed:

a)

CF = 1 SF= 0 ZF = 1 OF = 0

b)

CF = 0 SF = 1 ZF = 0OF = 1

c)

CF = 1 SF = 1 ZF = 0 OF = 1

d)

CF = 0 SF = 1 ZF = 0 OF = 0

11.

Is it possible for the NEG instruction to set the Overflow flag

a)

no

b)

yes