wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Processor Flow Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does the `MOVSB` instruction do in assembly?

a)

Moves a word from the source to the destination.

b)

Moves a byte from the source to the destination.

c)

Moves a byte from one register to another.

d)

Copies a byte from the destination to the source.

2.

Which register is typically used for string manipulation as the source index?

a)

BX

b)

SI

c)

AX

d)

DI

3.

The `REP` prefix is used with which type of instructions?

a)

String instructions

b)

Bitwise instructions

c)

Arithmetic instructions

d)

Control flow instructions

4.

Which flag is checked to determine if a string comparison using `CMP` was successful?

a)

Overflow Flag (OF)

b)

Zero Flag (ZF)

c)

Carry Flag (CF)

d)

Sign Flag (SF)

5.

What is the purpose of the `INT` instruction in assembly language?

a)

To perform arithmetic operations on integers.

b)

To define a new data type in assembly language.

c)

To allocate memory for variables.

d)

To generate a software interrupt for system calls or event handling.

6.

Which instruction is used to clear the carry flag?

a)

RLC

b)

SBC

c)

CLC

d)

STC

7.

What does the `LODSB` instruction do?

a)

The LODSB instruction loads a byte from memory into the AL register.

b)

The LODSB instruction loads a byte from the AL register into memory.

c)

The LODSB instruction stores a byte from the AL register into memory.

d)

The LODSB instruction loads a word from memory into the AX register.

8.

Which register is used as the destination index for string operations?

a)

RDI

b)

EDI

c)

AX

d)

ESI

9.

What is the effect of the `STC` instruction?

a)

Sets the zero flag (ZF) to 1.

b)

Increments the instruction pointer (IP) by 1.

c)

Clears the carry flag (CF) to 0.

d)

Sets the carry flag (CF) to 1.

10.

Which instruction is used to compare two strings in assembly?

a)

CMPSB

b)

CMP

c)

STRCMP

d)

COMPARE

11.

What does the `JC` instruction do?

a)

Halts the execution of the program immediately.

b)

Transfers control to the next instruction unconditionally.

c)

Transfers control to a specified address if the zero flag is set.

d)

Transfers control to a specified address if the carry flag is set.

12.

Which flag indicates an overflow in arithmetic operations?

a)

Zero Flag (ZF)

b)

Carry Flag (CF)

c)

Overflow Flag (OF)

d)

Sign Flag (SF)

13.

What is the purpose of the `CLI` instruction?

a)

To halt the CPU until further notice.

b)

To clear the interrupt flag and enable interrupts.

c)

To initiate a system reset.

d)

To disable all interrupts permanently.

14.

Which instruction is used to jump to a specific address based on a condition?

a)

Unconditional Jump Instruction

b)

Branch Instruction

c)

Conditional Jump Instruction

d)

Return Instruction

15.

What does the `SCASB` instruction do in assembly language?

a)

The `SCASB` instruction clears the AL register and sets the DI register to zero.

b)

The `SCASB` instruction adds a byte from the AL register to the address in the DI register.

c)

The `SCASB` instruction compares the AL register with a byte at the address in the DI register.

d)

The `SCASB` instruction moves a byte from the DI register to the AL register.